Home
last modified time | relevance | path

Searched defs:date (Results 1 – 25 of 137) sorted by relevance

123456

/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKJulianFields.java128 public void test_samples_get(TemporalField field, LocalDate date, long expected) { in test_samples_get()
133 public void test_samples_set(TemporalField field, LocalDate date, long value) { in test_samples_set()
134 assertEquals(field.adjustInto(LocalDate.MAX, value), date); in test_samples_set() local
135 assertEquals(field.adjustInto(LocalDate.MIN, value), date); in test_samples_set() local
136 assertEquals(field.adjustInto(JAN01_1970, value), date); in test_samples_set() local
137 assertEquals(field.adjustInto(DEC31_1969, value), date); in test_samples_set() local
138 assertEquals(field.adjustInto(NOV12_1945, value), date); in test_samples_set() local
143 public void test_samples_parse_STRICT(TemporalField field, LocalDate date, long value) { in test_samples_parse_STRICT()
151 public void test_samples_parse_SMART(TemporalField field, LocalDate date, long value) { in test_samples_parse_SMART()
159 public void test_samples_parse_LENIENT(TemporalField field, LocalDate date, long value) { in test_samples_parse_LENIENT()
DTCKTemporalAdjusters.java114 LocalDate date = date(2007, month, i); in test_firstDayOfMonth_nonLeap() local
127 LocalDate date = date(2008, month, i); in test_firstDayOfMonth_leap() local
148 LocalDate date = date(2007, month, i); in test_lastDayOfMonth_nonLeap() local
161 LocalDate date = date(2008, month, i); in test_lastDayOfMonth_leap() local
182 LocalDate date = date(2007, month, i); in test_firstDayOfNextMonth_nonLeap() local
195 LocalDate date = date(2008, month, i); in test_firstDayOfNextMonth_leap() local
216 LocalDate date = date(2007, month, i); in test_firstDayOfYear_nonLeap() local
229 LocalDate date = date(2008, month, i); in test_firstDayOfYear_leap() local
250 LocalDate date = date(2007, month, i); in test_lastDayOfYear_nonLeap() local
263 LocalDate date = date(2008, month, i); in test_lastDayOfYear_leap() local
[all …]
DTCKIsoFields.java124 public void test_DOQ(LocalDate date, int doq, int qoy) { in test_DOQ()
138 public void test_QOY(LocalDate date, int doq, int qoy) { in test_QOY()
152 public void test_parse_quarters(LocalDate date, int doq, int qoy) { in test_parse_quarters()
163 public void test_parse_quarters_SMART(LocalDate date, int doq, int qoy) { in test_parse_quarters_SMART()
174 public void test_parse_quarters_LENIENT(LocalDate date, int doq, int qoy) { in test_parse_quarters_LENIENT()
321 public void test_WOWBY(LocalDate date, DayOfWeek dow, int week, int wby) { in test_WOWBY()
336 public void test_WBY(LocalDate date, DayOfWeek dow, int week, int wby) { in test_WBY()
351 public void test_parse_weeks_STRICT(LocalDate date, DayOfWeek dow, int week, int wby) { in test_parse_weeks_STRICT()
362 public void test_parse_weeks_SMART(LocalDate date, DayOfWeek dow, int week, int wby) { in test_parse_weeks_SMART()
373 public void test_parse_weeks_LENIENT(LocalDate date, DayOfWeek dow, int week, int wby) { in test_parse_weeks_LENIENT()
[all …]
DTCKWeekFields.java125 LocalDate date = LocalDate.of(2000, 1, 10); // Known to be ISO Monday in test_dayOfWeekField_simpleGet() local
139 LocalDate date = LocalDate.of(2000, 1, 10); // Known to be ISO Monday in test_dayOfWeekField_simpleSet() local
380 LocalDate date = LocalDate.of(2012, 12, 15); in test_parse_resolve_localizedWom() local
401 LocalDate date = LocalDate.of(2012, 12, 15); in test_parse_resolve_localizedWom_lenient() local
434 LocalDate date = LocalDate.parse(str, f); in test_parse_resolve_localizedWom_strict() local
447 LocalDate date = LocalDate.of(2012, 12, 15); in test_parse_resolve_localizedWomDow() local
469 LocalDate date = LocalDate.of(2012, 12, 15); in test_parse_resolve_localizedWomDow_lenient() local
495 LocalDate date = LocalDate.of(2012, 12, 15); in test_parse_resolve_localizedWoy() local
515 LocalDate date = LocalDate.of(2012, 12, 15); in test_parse_resolve_localizedWoy_lenient() local
546 LocalDate date = LocalDate.parse(str, f); in test_parse_resolve_localizedWoy_strict() local
[all …]
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/
DCalendarSystem.java58 long millis, sun.util.calendar.CalendarDate date); in getCalendarDate()
69 public abstract long getTime(sun.util.calendar.CalendarDate date); in getTime()
71 public abstract int getYearLength(sun.util.calendar.CalendarDate date); in getYearLength()
73 public abstract int getYearLengthInMonths(sun.util.calendar.CalendarDate date); in getYearLengthInMonths()
75 public abstract int getMonthLength(sun.util.calendar.CalendarDate date); in getMonthLength()
83 public abstract void setEra(sun.util.calendar.CalendarDate date, java.lang.String eraName); in setEra()
86 int nth, int dayOfWeek, sun.util.calendar.CalendarDate date); in getNthDayOfWeek()
89 sun.util.calendar.CalendarDate date, int timeOfDay); in setTimeOfDay()
92 public abstract boolean validate(sun.util.calendar.CalendarDate date); in validate()
94 public abstract boolean normalize(sun.util.calendar.CalendarDate date); in normalize()
DAbstractCalendar.java45 public void setEra(sun.util.calendar.CalendarDate date, java.lang.String eraName) { in setEra()
66 long millis, sun.util.calendar.CalendarDate date) { in getCalendarDate()
70 public long getTime(sun.util.calendar.CalendarDate date) { in getTime()
74 protected long getTimeOfDay(sun.util.calendar.CalendarDate date) { in getTimeOfDay()
79 public long getTimeOfDayValue(sun.util.calendar.CalendarDate date) { in getTimeOfDayValue()
92 protected abstract boolean isLeapYear(sun.util.calendar.CalendarDate date); in isLeapYear()
95 int nth, int dayOfWeek, sun.util.calendar.CalendarDate date) { in getNthDayOfWeek()
112 protected abstract long getFixedDate(sun.util.calendar.CalendarDate date); in getFixedDate()
115 sun.util.calendar.CalendarDate date, long fixedDate); in getCalendarDateFromFixedDate()
117 public boolean validateTime(sun.util.calendar.CalendarDate date) { in validateTime()
[all …]
DBaseCalendar.java35 public boolean validate(sun.util.calendar.CalendarDate date) { in validate()
39 public boolean normalize(sun.util.calendar.CalendarDate date) { in normalize()
43 void normalizeMonth(sun.util.calendar.CalendarDate date) { in normalizeMonth()
47 public int getYearLength(sun.util.calendar.CalendarDate date) { in getYearLength()
51 public int getYearLengthInMonths(sun.util.calendar.CalendarDate date) { in getYearLengthInMonths()
55 public int getMonthLength(sun.util.calendar.CalendarDate date) { in getMonthLength()
63 public long getDayOfYear(sun.util.calendar.CalendarDate date) { in getDayOfYear()
71 public long getFixedDate(sun.util.calendar.CalendarDate date) { in getFixedDate()
80 public void getCalendarDateFromFixedDate(sun.util.calendar.CalendarDate date, long fixedDate) { in getCalendarDateFromFixedDate()
84 public int getDayOfWeek(sun.util.calendar.CalendarDate date) { in getDayOfWeek()
[all …]
DLocalGregorianCalendar.java58 long millis, sun.util.calendar.CalendarDate date) { in getCalendarDate()
77 public boolean validate(sun.util.calendar.CalendarDate date) { in validate()
86 public boolean normalize(sun.util.calendar.CalendarDate date) { in normalize()
90 void normalizeMonth(sun.util.calendar.CalendarDate date) { in normalizeMonth()
94 void normalizeYear(sun.util.calendar.CalendarDate date) { in normalizeYear()
106 public void getCalendarDateFromFixedDate(sun.util.calendar.CalendarDate date, long fixedDate) { in getCalendarDateFromFixedDate()
/libcore/ojluni/src/main/java/sun/util/calendar/
DCalendarSystem.java223 public abstract CalendarDate getCalendarDate(long millis, CalendarDate date); in getCalendarDate()
249 public abstract long getTime(CalendarDate date); in getTime()
258 public abstract int getYearLength(CalendarDate date); in getYearLength()
266 public abstract int getYearLengthInMonths(CalendarDate date); in getYearLengthInMonths()
279 public abstract int getMonthLength(CalendarDate date); // no setter in getMonthLength()
318 public abstract void setEra(CalendarDate date, String eraName); in setEra()
346 CalendarDate date); in getNthDayOfWeek()
348 public abstract CalendarDate setTimeOfDay(CalendarDate date, int timeOfDay); in setTimeOfDay()
361 public abstract boolean validate(CalendarDate date); in validate()
375 public abstract boolean normalize(CalendarDate date); in normalize()
DAbstractCalendar.java85 public void setEra(CalendarDate date, String eraName) { in setEra()
112 CalendarDate date = newCalendarDate(zone); in getCalendarDate() local
116 public CalendarDate getCalendarDate(long millis, CalendarDate date) { in getCalendarDate()
179 public long getTime(CalendarDate date) { in getTime()
222 protected long getTimeOfDay(CalendarDate date) { in getTimeOfDay()
232 public long getTimeOfDayValue(CalendarDate date) { in getTimeOfDayValue()
277 protected abstract boolean isLeapYear(CalendarDate date); in isLeapYear()
279 public CalendarDate getNthDayOfWeek(int nth, int dayOfWeek, CalendarDate date) { in getNthDayOfWeek()
344 protected abstract long getFixedDate(CalendarDate date); in getFixedDate()
356 protected abstract void getCalendarDateFromFixedDate(CalendarDate date, in getCalendarDateFromFixedDate()
[all …]
DBaseCalendar.java191 public boolean validate(CalendarDate date) { in validate()
217 public boolean normalize(CalendarDate date) { in normalize()
272 void normalizeMonth(CalendarDate date) { in normalizeMonth()
302 public int getYearLength(CalendarDate date) { in getYearLength()
306 public int getYearLengthInMonths(CalendarDate date) { in getYearLengthInMonths()
321 public int getMonthLength(CalendarDate date) { in getMonthLength()
339 public long getDayOfYear(CalendarDate date) { in getDayOfYear()
352 public long getFixedDate(CalendarDate date) { in getFixedDate()
418 public void getCalendarDateFromFixedDate(CalendarDate date, in getCalendarDateFromFixedDate()
471 public int getDayOfWeek(CalendarDate date) { in getDayOfWeek()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKHijrahChronology.java174 ChronoLocalDate date = HijrahChronology.INSTANCE.date(era, 1, 1, 1); in test_InvalidEras() local
219 HijrahDate date = HijrahChronology.INSTANCE.resolveDate(fieldValues, style); in test_resolve_yearOfEra_eraOnly_valid() local
230 HijrahDate date = HijrahChronology.INSTANCE.resolveDate(fieldValues, style); in test_resolve_yearOfEra_eraAndYearOfEraOnly_valid() local
243 HijrahDate date = HijrahChronology.INSTANCE.resolveDate(fieldValues, style); in test_resolve_yearOfEra_eraAndYearOnly_valid() local
264 HijrahDate date = HijrahChronology.INSTANCE.resolveDate(fieldValues, style); in test_resolve_yearOfEra_yearOfEraOnly_valid() local
276 HijrahDate date = HijrahChronology.INSTANCE.resolveDate(fieldValues, style); in test_resolve_yearOfEra_yearOfEraAndYearOnly_valid() local
377 … HijrahDate date = HijrahChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.LENIENT); in test_resolve_ymd_lenient() local
382 … HijrahDate date = HijrahChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.LENIENT); in test_resolve_ymd_lenient() local
397 … HijrahDate date = HijrahChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.SMART); in test_resolve_ymd_smart() local
401 … HijrahDate date = HijrahChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.SMART); in test_resolve_ymd_smart() local
[all …]
DTCKIsoChronology.java358 LocalDate date = IsoChronology.INSTANCE.resolveDate(fieldValues, style); in test_resolve_yearOfEra() local
439 LocalDate date = IsoChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.LENIENT); in test_resolve_ymd_lenient() local
451 LocalDate date = IsoChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.SMART); in test_resolve_ymd_smart() local
455 LocalDate date = IsoChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.SMART); in test_resolve_ymd_smart() local
474 LocalDate date = IsoChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.STRICT); in test_resolve_ymd_strict() local
522 LocalDate date = IsoChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.LENIENT); in test_resolve_yd_lenient() local
533 LocalDate date = IsoChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.SMART); in test_resolve_yd_smart() local
552 LocalDate date = IsoChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.STRICT); in test_resolve_yd_strict() local
631 LocalDate date = IsoChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.LENIENT); in test_resolve_ymaa_lenient() local
644 LocalDate date = IsoChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.SMART); in test_resolve_ymaa_smart() local
[all …]
DTCKThaiBuddhistChronology.java337 ChronoLocalDate date = ThaiBuddhistChronology.INSTANCE.date(era, 1, 1, 1); in test_InvalidEras() local
609 ThaiBuddhistDate date = ThaiBuddhistChronology.INSTANCE.resolveDate(fieldValues, style); in test_resolve_yearOfEra() local
690 …ThaiBuddhistDate date = ThaiBuddhistChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.LEN… in test_resolve_ymd_lenient() local
702 …ThaiBuddhistDate date = ThaiBuddhistChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.SMA… in test_resolve_ymd_smart() local
706 …ThaiBuddhistDate date = ThaiBuddhistChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.SMA… in test_resolve_ymd_smart() local
725 …ThaiBuddhistDate date = ThaiBuddhistChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.STR… in test_resolve_ymd_strict() local
773 …ThaiBuddhistDate date = ThaiBuddhistChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.LEN… in test_resolve_yd_lenient() local
784 …ThaiBuddhistDate date = ThaiBuddhistChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.SMA… in test_resolve_yd_smart() local
803 …ThaiBuddhistDate date = ThaiBuddhistChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.STR… in test_resolve_yd_strict() local
882 …ThaiBuddhistDate date = ThaiBuddhistChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.LEN… in test_resolve_ymaa_lenient() local
[all …]
DTCKMinguoChronology.java330 ChronoLocalDate date = MinguoChronology.INSTANCE.date(era, 1, 1, 1); in test_InvalidEras() local
633 MinguoDate date = MinguoChronology.INSTANCE.resolveDate(fieldValues, style); in test_resolve_yearOfEra() local
714 MinguoDate date = MinguoChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.LENIENT); in test_resolve_ymd_lenient() local
726 … MinguoDate date = MinguoChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.SMART); in test_resolve_ymd_smart() local
730 … MinguoDate date = MinguoChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.SMART); in test_resolve_ymd_smart() local
749 … MinguoDate date = MinguoChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.STRICT); in test_resolve_ymd_strict() local
797 MinguoDate date = MinguoChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.LENIENT); in test_resolve_yd_lenient() local
808 … MinguoDate date = MinguoChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.SMART); in test_resolve_yd_smart() local
827 … MinguoDate date = MinguoChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.STRICT); in test_resolve_yd_strict() local
906 MinguoDate date = MinguoChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.LENIENT); in test_resolve_ymaa_lenient() local
[all …]
/libcore/luni/src/test/java/libcore/java/text/
DOldDateFormatTest.java46 public StringBuffer format(Date date, StringBuffer toAppendTo, in format()
225 Date date = format.parse(format.format(current).toString()); in test_parseLString() local
258 Date date = format.parse(format.format(current).toString()); in test_parseLString() local
286 Date date = format.parse(format.format(current).toString()); in test_parseLString() local
300 Date date = format.parse(format.format(current).toString()); in test_parseLString() local
314 Date date = format.parse(format.format(current).toString()); in test_parseLString() local
333 Date date = format.parse(format.format(current).toString()); in test_parseLString() local
359 Date date = format.parse(formattedCurrent); in test_parseLString() local
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestExampleCode.java100 ChronoLocalDate date = chrono.dateNow(); in test_chronoPackageExample() local
144 ChronoLocalDate date = chrono.dateNow(); in test_calendarPackageExample() local
181 ChronoLocalDate date = LocalDate.now(); in test_unknownChronologyWithDateTime() local
189 HijrahDate date = HijrahDate.now(); in test_library() local
203 private <D extends ChronoLocalDate> D next(D date) { in next()
215 private <D extends ChronoLocalDate> ChronoLocalDateTime<D> tomorrowNoon(D date) { in tomorrowNoon()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/
DTCKChronoLocalDateSerialization.java110 public void test_ChronoSerialization(ChronoLocalDate date, int dateType) throws Exception { in test_ChronoSerialization()
118 private void test_serialization_format(ChronoLocalDate date, int dateType) throws Exception { in test_serialization_format()
136 HijrahDate date = HijrahDate.of(1433, 10, 29); in test_hijrahSerialization_format() local
/libcore/ojluni/src/main/java/sun/security/x509/
DInvalidityDateExtension.java69 private Date date; field in InvalidityDateExtension
87 public InvalidityDateExtension(Date date) throws IOException { in InvalidityDateExtension()
97 public InvalidityDateExtension(boolean critical, Date date) in InvalidityDateExtension()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKLocalizedFieldPrinter.java99 LocalDate date = LocalDate.of(2012, 7, 20); in test_localizedDayOfWeek() local
123 public void test_print_WeekBasedYear(String pattern, String expectedText, LocalDate date) { in test_print_WeekBasedYear()
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DCertPathHelper.java60 protected abstract void implSetDateAndTime(X509CRLSelector sel, Date date, long skew); in implSetDateAndTime()
67 public static void setDateAndTime(X509CRLSelector sel, Date date, long skew) { in setDateAndTime()
/libcore/luni/src/test/java/libcore/java/util/
DCalendarWeekOfMonthTest.java38 private final String date; field in CalendarWeekOfMonthTest
208 public CalendarWeekOfMonthTest(long timeInMillis, String date, int firstDayOfWeek, in CalendarWeekOfMonthTest()
/libcore/ojluni/src/main/java/java/util/
DDate.java177 public Date(long date) { in Date()
196 public Date(int year, int month, int date) { in Date()
219 public Date(int year, int month, int date, int hrs, int min) { in Date()
243 public Date(int year, int month, int date, int hrs, int min, int sec) { in Date()
317 public static long UTC(int year, int month, int date, in UTC()
776 public void setDate(int date) { in setDate()
978 static final long getMillisOf(Date date) { in getMillisOf()
1051 BaseCalendar.Date date = normalize(); in toString() local
1143 BaseCalendar.Date date = in toGMTString() local
1237 private final BaseCalendar.Date normalize(BaseCalendar.Date date) { in normalize()
/libcore/support/src/test/java/tests/support/
DSupport_MessageFormat.java50 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime(); in t_format_with_FieldPosition() local
77 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime(); in t_formatToCharacterIterator() local
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DSupport_MessageFormat.java53 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime(); in t_format_with_FieldPosition() local
82 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime(); in t_formatToCharacterIterator() local

123456