/libcore/luni/src/test/java/tests/java/sql/ |
H A D | SqlDateTest.java | 29 for (String date : dates) { 30 Date.valueOf(date); 43 for (String date : invalidDates) { 45 Date.valueOf(date);
|
/libcore/ojluni/src/main/java/sun/util/calendar/ |
H A D | ImmutableGregorianDate.java | 32 private final BaseCalendar.Date date; field in class:ImmutableGregorianDate 34 ImmutableGregorianDate(BaseCalendar.Date date) { argument 35 if (date == null) { 38 this.date = date; 42 return date.getEra(); 50 return date.getYear(); 62 return date.isLeapYear(); 70 return date.getMonth(); 82 return date 85 setDayOfMonth(int date) argument 197 isSameDate(CalendarDate date) argument [all...] |
H A D | AbstractCalendar.java | 39 * have the common date numbering, starting from midnight the onset of 40 * Monday, January 1, 1 (Gregorian). It is called a <I>fixed date</I> 41 * in this class. January 1, 1 (Gregorian) is fixed date 1. (See 85 public void setEra(CalendarDate date, String eraName) { argument 92 date.setEra(e); 112 CalendarDate date = newCalendarDate(zone); 113 return getCalendarDate(millis, date); 116 public CalendarDate getCalendarDate(long millis, CalendarDate date) { argument 120 long days = 0; // fixed date 122 // adjust to local time if `date' ha 171 getTime(CalendarDate date) argument 203 getTimeOfDay(CalendarDate date) argument 213 getTimeOfDayValue(CalendarDate date) argument 258 isLeapYear(CalendarDate date) argument 260 getNthDayOfWeek(int nth, int dayOfWeek, CalendarDate date) argument 325 getFixedDate(CalendarDate date) argument 337 getCalendarDateFromFixedDate(CalendarDate date, long fixedDate) argument 340 validateTime(CalendarDate date) argument 362 normalizeTime(CalendarDate date) argument [all...] |
H A D | BaseCalendar.java | 162 // Cache for the fixed date of January 1 and year length of the 192 public boolean validate(CalendarDate date) { argument 193 Date bdate = (Date) date; 210 if (!validateTime(date)) { 218 public boolean normalize(CalendarDate date) { argument 219 if (date.isNormalized()) { 223 Date bdate = (Date) date; 226 // If the date has a time zone, then we need to recalculate 229 getTime(date); 266 date 273 normalizeMonth(CalendarDate date) argument 303 getYearLength(CalendarDate date) argument 307 getYearLengthInMonths(CalendarDate date) argument 322 getMonthLength(CalendarDate date) argument 340 getDayOfYear(CalendarDate date) argument 353 getFixedDate(CalendarDate date) argument 419 getCalendarDateFromFixedDate(CalendarDate date, long fixedDate) argument 472 getDayOfWeek(CalendarDate date) argument 531 isLeapYear(CalendarDate date) argument [all...] |
H A D | CalendarSystem.java | 42 * programming interface to deal with calendar date and time. 55 * because, for example, a Chinese calendar date can't be understood 179 public abstract CalendarDate getCalendarDate(long millis, CalendarDate date); argument 201 * @param date the <code>CalendarDate</code> from which the time 205 public abstract long getTime(CalendarDate date); argument 209 * <code>date</code>. This method does not perform the 214 public abstract int getYearLength(CalendarDate date); argument 222 public abstract int getYearLengthInMonths(CalendarDate date); argument 226 * date. This method does not perform the normalization with the 227 * specified calendar date 235 getMonthLength(CalendarDate date) argument 274 setEra(CalendarDate date, String eraName) argument 301 getNthDayOfWeek(int nth, int dayOfWeek, CalendarDate date) argument 304 setTimeOfDay(CalendarDate date, int timeOfDay) argument 317 validate(CalendarDate date) argument 331 normalize(CalendarDate date) argument [all...] |
H A D | LocalGregorianCalendar.java | 210 public Date getCalendarDate(long millis, CalendarDate date) { argument 211 Date ldate = (Date) super.getCalendarDate(millis, date); 246 public boolean validate(CalendarDate date) { argument 247 Date ldate = (Date) date; 270 public boolean normalize(CalendarDate date) { argument 271 if (date.isNormalized()) { 275 normalizeYear(date); 276 Date ldate = (Date) date; 278 // Normalize it as a Gregorian date and get its millisecond value 319 millis = super.getTime(date); 343 normalizeMonth(CalendarDate date) argument 348 normalizeYear(CalendarDate date) argument 376 getCalendarDateFromFixedDate(CalendarDate date, long fixedDate) argument [all...] |
H A D | Gregorian.java | 72 public Date getCalendarDate(long millis, CalendarDate date) { argument 73 return (Date) super.getCalendarDate(millis, date);
|
H A D | JulianCalendar.java | 129 public Date getCalendarDate(long millis, CalendarDate date) { argument 130 return (Date) super.getCalendarDate(millis, date); 185 public void getCalendarDateFromFixedDate(CalendarDate date, long fixedDate) { argument 186 Date jdate = (Date) date; 217 * Returns the normalized Julian year number of the given fixed date. 224 public int getDayOfWeek(CalendarDate date) { argument 227 long fixedDate = getFixedDate(date);
|
H A D | CalendarDate.java | 34 * in time by calendar date and time fields that are multiple cycles 102 * Sets the era of the date to the specified era. The default 189 public CalendarDate setDayOfMonth(int date) { argument 190 if (dayOfMonth != date) { 191 dayOfMonth = date; 373 * Returns whether the specified date is the same date of this 377 public boolean isSameDate(CalendarDate date) { argument 378 return getDayOfWeek() == date.getDayOfWeek() 379 && getMonth() == date [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | DateToStringBenchmark.java | 27 Date date; field in class:DateToStringBenchmark 33 date = new Date(0); 35 calendar.setTime(date); 41 date.toString(); 47 new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy").format(date); 53 ((SimpleDateFormat) format.clone()).format(date);
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
H A D | InvalidityDateExtension.java | 38 * The invalidity date is a non-critical CRL entry extension that 39 * provides the date on which it is known or suspected that the private 41 * This date may be earlier than the revocation date in the CRL entry, 42 * which is the date at which the CA processed the revocation. When a 44 * date may precede the date of issue of earlier CRLs, but the 45 * revocation date SHOULD NOT precede the date of issue of earlier CRLs. 67 public static final String DATE = "date"; 69 private Date date; field in class:InvalidityDateExtension 87 InvalidityDateExtension(Date date) argument 97 InvalidityDateExtension(boolean critical, Date date) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
H A D | Support_SimpleDateFormat.java | 53 Date date = cal.getTime(); 75 t_FormatWithField(0, format, date, null, Field.ERA, 0, 2); 76 t_FormatWithField(1, format, date, null, Field.YEAR, 6, 10); 77 t_FormatWithField(2, format, date, null, Field.MONTH, 19, 20); 78 t_FormatWithField(3, format, date, null, Field.DAY_OF_MONTH, 38, 40); 79 t_FormatWithField(4, format, date, null, Field.HOUR_OF_DAY1, 48, 50); 80 t_FormatWithField(5, format, date, null, Field.HOUR_OF_DAY0, 58, 60); 81 t_FormatWithField(6, format, date, null, Field.HOUR1, 68, 69); 82 t_FormatWithField(7, format, date, null, Field.MINUTE, 77, 79); 83 t_FormatWithField(8, format, date, nul [all...] |
H A D | Support_MessageFormat.java | 50 String pattern = "On {4,date} at {3,time}, he ate {2,number, integer} hamburger{2,choice,1#|1<s} and drank {1, number} liters of coke. That was {0,choice,1#just enough|1<more than enough} food!"; 53 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime(); 56 hamburgers, date, date }; 79 String pattern = "On {4,date} at {3,time}, he ate {2,number, integer} hamburger{2,choice,1#|1<s} and drank {1, number} liters of coke. That was {0,choice,1#just enough|1<more than enough} food!"; 82 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime(); 84 Object[] objects = new Object[] { hamburgers, new Double(3.5), hamburgers, date, date };
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | Date.java | 48 * of date strings. Unfortunately, the API for these functions was not 52 * parse date strings. 79 * corrections applied. There are other time and date systems as 95 * year, month, date, hours, minutes, and seconds values, the 102 * <li>A date (day of month) is represented by an integer from 1 to 31 113 * minute, but this specification follows the date and time conventions 118 * not fall within the indicated ranges; for example, a date may be 172 * @param date the milliseconds since January 1, 1970, 00:00:00 GMT. 175 public Date(long date) { argument 176 fastTime = date; 194 Date(int year, int month, int date) argument 217 Date(int year, int month, int date, int hrs, int min) argument 241 Date(int year, int month, int date, int hrs, int min, int sec) argument 315 UTC(int year, int month, int date, int hrs, int min, int sec) argument 771 setDate(int date) argument 973 getMillisOf(Date date) argument 1230 normalize(BaseCalendar.Date date) argument [all...] |
/libcore/luni/src/test/java/libcore/java/text/ |
H A D | OldDateFormatTest.java | 46 public StringBuffer format(Date date, StringBuffer toAppendTo, argument 96 assertTrue("Incorrect date format", sdf.format(current).equals(dtf)); 118 assertTrue("Incorrect date format", sdf.format(current).equals( 225 Date date = format.parse(format.format(current).toString()); 226 assertEquals(current.getDate(), date.getDate()); 227 assertEquals(current.getDay(), date.getDay()); 228 assertEquals(current.getMonth(), date.getMonth()); 229 assertEquals(current.getYear(), date.getYear()); 230 assertEquals(current.getHours(), date.getHours()); 231 assertEquals(current.getMinutes(), date [all...] |
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
H A D | CertPathHelper.java | 60 protected abstract void implSetDateAndTime(X509CRLSelector sel, Date date, long skew); argument 67 public static void setDateAndTime(X509CRLSelector sel, Date date, long skew) { argument 68 instance.implSetDateAndTime(sel, date, skew);
|
H A D | BasicChecker.java | 65 private final Date date; field in class:BasicChecker 81 BasicChecker(TrustAnchor anchor, Date date, String sigProvider, argument 90 this.date = date; 191 debug.println("---checking " + msg + ":" + date.toString() + "..."); 194 cert.checkValidity(date);
|
/libcore/ojluni/src/main/java/java/security/cert/ |
H A D | CertPathHelperImpl.java | 63 protected void implSetDateAndTime(X509CRLSelector sel, Date date, long skew) { argument 64 sel.setDateAndTime(date, skew);
|
H A D | PKIXParameters.java | 68 * <code>date</code> parameter is <code>null</code>, which indicates 89 private Date date; field in class:PKIXParameters 485 if (date == null) 488 return (Date) this.date.clone(); 498 * @param date the <code>Date</code>, or <code>null</code> for the 502 public void setDate(Date date) { argument 503 if (date != null) 504 this.date = (Date) date.clone(); 506 date [all...] |
/libcore/support/src/test/java/tests/support/ |
H A D | Support_MessageFormat.java | 47 String pattern = "On {4,date} at {3,time}, he ate {2,number, integer} hamburger{2,choice,1#|1<s} and drank {1, number} litres of coke. That was {0,choice,1#just enough|1<more than enough} food!"; 50 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime(); 53 hamburgers, date, date }; 74 String pattern = "On {4,date} at {3,time}, he ate {2,number, integer} hamburger{2,choice,1#|1<s} and drank {1, number} litres of coke. That was {0,choice,1#just enough|1<more than enough} food!"; 77 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime(); 80 hamburgers, date, date };
|
/libcore/ojluni/src/main/java/java/sql/ |
H A D | Date.java | 53 * @deprecated instead use the constructor <code>Date(long date)</code> 67 * @param date milliseconds since January 1, 1970, 00:00:00 GMT not 72 public Date(long date) { argument 73 // If the millisecond date value contains time info, mask it out. 74 super(date); 86 * @param date milliseconds since January 1, 1970, 00:00:00 GMT not 91 public void setTime(long date) { argument 92 // If the millisecond date value contains time info, mask it out. 93 super.setTime(date); 97 * Converts a string in JDBC date escap [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/cert/ |
H A D | X509CertificateTest.java | 269 Date date = new Date(); 274 assertFalse("CertificateExpiredException expected", date 276 assertFalse("CertificateNotYetValidException expected", date 280 date.compareTo(na_date) > 0); 283 date.compareTo(nb_date) < 0); 301 * checkValidity(Date date) method testing. 311 Date[] date = new Date[8]; 313 for (int i = 0; i < date.length; i++) { 315 date[i] = calendar.getTime(); 319 for (int i = 0; i < date [all...] |
/libcore/ojluni/src/main/java/java/util/logging/ |
H A D | XMLFormatter.java | 57 // Append the time and date in ISO 8601 format 59 Date date = new Date(millis); 60 sb.append(date.getYear() + 1900); 62 a2(sb, date.getMonth() + 1); 64 a2(sb, date.getDate()); 66 a2(sb, date.getHours()); 68 a2(sb, date.getMinutes()); 70 a2(sb, date.getSeconds()); 108 sb.append(" <date>"); 110 sb.append("</date>\ [all...] |
/libcore/luni/src/test/java/libcore/java/sql/ |
H A D | TimestampTest.java | 150 java.util.Date date = new java.util.Date(0); 152 assertTrue(date.equals(timestamp)); 153 assertFalse(timestamp.equals(date));
|
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | TimeZoneTest.java | 64 Date date = sdf.parse("1902-11-01T00:00:00.000+0800"); 65 assertEquals(-2119680000000L, date.getTime()); 66 assertEquals(-28800000, tz.getOffset(date.getTime())); 67 assertFalse(tz.inDaylightTime(date)); 68 assertEquals("Fri Oct 31 08:00:00 PST 1902", date.toString()); 69 assertEquals("31 Oct 1902 16:00:00 GMT", date.toGMTString()); 71 date = sdf.parse("1902-06-01T00:00:00.000+0800"); 72 assertEquals(-28800000, tz.getOffset(date.getTime())); 73 assertFalse(tz.inDaylightTime(date)); 104 Date date [all...] |