Home
last modified time | relevance | path

Searched defs:date (Results 1 – 25 of 150) 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.java127 public void test_DOQ(LocalDate date, int doq, int qoy) { in test_DOQ()
141 public void test_QOY(LocalDate date, int doq, int qoy) { in test_QOY()
155 public void test_parse_quarters(LocalDate date, int doq, int qoy) { in test_parse_quarters()
166 public void test_parse_quarters_SMART(LocalDate date, int doq, int qoy) { in test_parse_quarters_SMART()
177 public void test_parse_quarters_LENIENT(LocalDate date, int doq, int qoy) { in test_parse_quarters_LENIENT()
324 public void test_WOWBY(LocalDate date, DayOfWeek dow, int week, int wby) { in test_WOWBY()
339 public void test_WBY(LocalDate date, DayOfWeek dow, int week, int wby) { in test_WBY()
354 public void test_parse_weeks_STRICT(LocalDate date, DayOfWeek dow, int week, int wby) { in test_parse_weeks_STRICT()
365 public void test_parse_weeks_SMART(LocalDate date, DayOfWeek dow, int week, int wby) { in test_parse_weeks_SMART()
376 public void test_parse_weeks_LENIENT(LocalDate date, DayOfWeek dow, int week, int wby) { in test_parse_weeks_LENIENT()
[all …]
DTCKWeekFields.java127 LocalDate date = LocalDate.of(2000, 1, 10); // Known to be ISO Monday in test_dayOfWeekField_simpleGet() local
141 LocalDate date = LocalDate.of(2000, 1, 10); // Known to be ISO Monday in test_dayOfWeekField_simpleSet() local
382 LocalDate date = LocalDate.of(2012, 12, 15); in test_parse_resolve_localizedWom() local
403 LocalDate date = LocalDate.of(2012, 12, 15); in test_parse_resolve_localizedWom_lenient() local
436 LocalDate date = LocalDate.parse(str, f); in test_parse_resolve_localizedWom_strict() local
449 LocalDate date = LocalDate.of(2012, 12, 15); in test_parse_resolve_localizedWomDow() local
471 LocalDate date = LocalDate.of(2012, 12, 15); in test_parse_resolve_localizedWomDow_lenient() local
497 LocalDate date = LocalDate.of(2012, 12, 15); in test_parse_resolve_localizedWoy() local
517 LocalDate date = LocalDate.of(2012, 12, 15); in test_parse_resolve_localizedWoy_lenient() local
548 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/luni/src/test/java/libcore/java/time/chrono/
DJapaneseDateTest.java52 JapaneseDate date = JapaneseDate.of(REIWA, 3, 5, 21); in minus_days() local
59 JapaneseDate date = JapaneseDate.of(REIWA, 3, 5, 21); in minus_negative_days() local
66 JapaneseDate date = JapaneseDate.of(REIWA, 1, 5, 1); in minus_days_crossEras() local
117 JapaneseDate date = JapaneseDate.of(REIWA, 3, 5, 21); in minus_japanesePeriod() local
125 JapaneseDate date = JapaneseDate.of(REIWA, 2, 5, 21); in minus_japanesePeriod_withNegative() local
DThaiBuddhistDateTest.java38 ThaiBuddhistDate date = ThaiBuddhistDate.of(2484, 1, 1); in minus_thaiBuddhistChronologyPeriod() local
47 ThaiBuddhistDate date = ThaiBuddhistDate.of(2484, 1, 1); in minus_thaiBuddhistChronologyPeriod_withNegative() local
56 ThaiBuddhistDate date = ThaiBuddhistDate.of(2484, 1, 1); in minus_javaTimePeriod_shouldThrowDateTimeException() local
68 ThaiBuddhistDate date = ThaiBuddhistDate.of(2484, 1, 1); in minus_javaTimeDuration_shouldThrowDateTimeException() local
DMinguoDateTest.java49 MinguoDate date = MinguoDate.of(110, 1, 1); in minus_days() local
76 MinguoDate date = MinguoDate.of(110, 1, 1); in minus_minguoPeriod() local
84 MinguoDate date = MinguoDate.of(110, 2, 28); in minus_minguoPeriod_withNegative() local
/libcore/ojluni/src/main/java/sun/util/calendar/
DCalendarSystem.java264 public abstract CalendarDate getCalendarDate(long millis, CalendarDate date); in getCalendarDate()
290 public abstract long getTime(CalendarDate date); in getTime()
299 public abstract int getYearLength(CalendarDate date); in getYearLength()
307 public abstract int getYearLengthInMonths(CalendarDate date); in getYearLengthInMonths()
320 public abstract int getMonthLength(CalendarDate date); // no setter in getMonthLength()
359 public abstract void setEra(CalendarDate date, String eraName); in setEra()
387 CalendarDate date); in getNthDayOfWeek()
389 public abstract CalendarDate setTimeOfDay(CalendarDate date, int timeOfDay); in setTimeOfDay()
402 public abstract boolean validate(CalendarDate date); in validate()
416 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()
306 public int getYearLength(CalendarDate date) { in getYearLength()
310 public int getYearLengthInMonths(CalendarDate date) { in getYearLengthInMonths()
325 public int getMonthLength(CalendarDate date) { in getMonthLength()
343 public long getDayOfYear(CalendarDate date) { in getDayOfYear()
356 public long getFixedDate(CalendarDate date) { in getFixedDate()
422 public void getCalendarDateFromFixedDate(CalendarDate date, in getCalendarDateFromFixedDate()
475 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.java366 LocalDate date = IsoChronology.INSTANCE.resolveDate(fieldValues, style); in test_resolve_yearOfEra() local
447 LocalDate date = IsoChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.LENIENT); in test_resolve_ymd_lenient() local
459 LocalDate date = IsoChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.SMART); in test_resolve_ymd_smart() local
463 LocalDate date = IsoChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.SMART); in test_resolve_ymd_smart() local
482 LocalDate date = IsoChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.STRICT); in test_resolve_ymd_strict() local
530 LocalDate date = IsoChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.LENIENT); in test_resolve_yd_lenient() local
541 LocalDate date = IsoChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.SMART); in test_resolve_yd_smart() local
560 LocalDate date = IsoChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.STRICT); in test_resolve_yd_strict() local
639 LocalDate date = IsoChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.LENIENT); in test_resolve_ymaa_lenient() local
652 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.java48 public StringBuffer format(Date date, StringBuffer toAppendTo, in format()
230 Date date = format.parse(format.format(current).toString()); in test_parseLString() local
263 Date date = format.parse(format.format(current).toString()); in test_parseLString() local
291 Date date = format.parse(format.format(current).toString()); in test_parseLString() local
305 Date date = format.parse(format.format(current).toString()); in test_parseLString() local
319 Date date = format.parse(format.format(current).toString()); in test_parseLString() local
338 Date date = format.parse(format.format(current).toString()); in test_parseLString() local
364 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()

123456