Home
last modified time | relevance | path

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

12345

/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/src/main/java/sun/util/calendar/
DCalendarSystem.java196 public abstract CalendarDate getCalendarDate(long millis, CalendarDate date); in getCalendarDate()
222 public abstract long getTime(CalendarDate date); in getTime()
231 public abstract int getYearLength(CalendarDate date); in getYearLength()
239 public abstract int getYearLengthInMonths(CalendarDate date); in getYearLengthInMonths()
252 public abstract int getMonthLength(CalendarDate date); // no setter in getMonthLength()
291 public abstract void setEra(CalendarDate date, String eraName); in setEra()
319 CalendarDate date); in getNthDayOfWeek()
321 public abstract CalendarDate setTimeOfDay(CalendarDate date, int timeOfDay); in setTimeOfDay()
334 public abstract boolean validate(CalendarDate date); in validate()
348 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()
171 public long getTime(CalendarDate date) { in getTime()
203 protected long getTimeOfDay(CalendarDate date) { in getTimeOfDay()
213 public long getTimeOfDayValue(CalendarDate date) { in getTimeOfDayValue()
258 protected abstract boolean isLeapYear(CalendarDate date); in isLeapYear()
260 public CalendarDate getNthDayOfWeek(int nth, int dayOfWeek, CalendarDate date) { in getNthDayOfWeek()
325 protected abstract long getFixedDate(CalendarDate date); in getFixedDate()
337 protected abstract void getCalendarDateFromFixedDate(CalendarDate date, in getCalendarDateFromFixedDate()
[all …]
DBaseCalendar.java192 public boolean validate(CalendarDate date) { in validate()
218 public boolean normalize(CalendarDate date) { in normalize()
273 void normalizeMonth(CalendarDate date) { in normalizeMonth()
303 public int getYearLength(CalendarDate date) { in getYearLength()
307 public int getYearLengthInMonths(CalendarDate date) { in getYearLengthInMonths()
322 public int getMonthLength(CalendarDate date) { in getMonthLength()
340 public long getDayOfYear(CalendarDate date) { in getDayOfYear()
353 public long getFixedDate(CalendarDate date) { in getFixedDate()
419 public void getCalendarDateFromFixedDate(CalendarDate date, in getCalendarDateFromFixedDate()
472 public int getDayOfWeek(CalendarDate date) { in getDayOfWeek()
[all …]
DLocalGregorianCalendar.java204 public Date getCalendarDate(long millis, CalendarDate date) { in getCalendarDate()
240 public boolean validate(CalendarDate date) { in validate()
273 public boolean normalize(CalendarDate date) { in normalize()
346 void normalizeMonth(CalendarDate date) { in normalizeMonth()
351 void normalizeYear(CalendarDate date) { in normalizeYear()
379 public void getCalendarDateFromFixedDate(CalendarDate date, long fixedDate) { in getCalendarDateFromFixedDate()
/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 …]
DTCKChronoLocalDate.java116 ChronoLocalDate date = chrono.date(refDate); in test_badWithAdjusterChrono() local
139 ChronoLocalDate date = chrono.date(refDate); in test_badPlusAdjusterChrono() local
162 ChronoLocalDate date = chrono.date(refDate); in test_badMinusAdjusterChrono() local
185 ChronoLocalDate date = chrono.date(refDate); in test_badPlusTemporalUnitChrono() local
209 ChronoLocalDate date = chrono.date(refDate); in test_badMinusTemporalUnitChrono() local
233 ChronoLocalDate date = chrono.date(refDate); in test_badTemporalFieldChrono() local
261 ChronoLocalDate date = chrono.date(LocalDate.of(2013, 1, 1)); in test_date_comparisons() local
314 ChronoLocalDate date = chrono.date(refDate); in test_from_TemporalAccessor() local
/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()
DTestChronoLocalDate.java86 ChronoLocalDate date = LocalDate.of(2013, 1, 1); in test_date_comparator_checkGenerics_ISO() local
/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/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/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/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
DSupport_SimpleDateFormat.java53 Date date = cal.getTime(); in t_format_with_FieldPosition() local
137 Date date = cal.getTime(); in t_formatToCharacterIterator() local
/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/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()

12345