/libcore/luni/src/test/java/libcore/java/time/ |
D | YearMonthTest.java | 41 YearMonth ym = YearMonth.of(2000, Month.JANUARY); in test_with_TemporalField_long() 43 YearMonth bceYm = YearMonth.of(-1999, Month.JANUARY); in test_with_TemporalField_long() 45 assertEquals(YearMonth.of(1000, Month.JANUARY), ym.with(ChronoField.YEAR, 1000)); in test_with_TemporalField_long() 46 assertEquals(YearMonth.of(-1, Month.JANUARY), ym.with(ChronoField.YEAR, -1)); in test_with_TemporalField_long() 55 assertEquals(YearMonth.of(1, Month.JANUARY), ym.with(ChronoField.YEAR_OF_ERA, 1)); in test_with_TemporalField_long() 57 assertEquals(YearMonth.of(0, Month.JANUARY), bceYm.with(ChronoField.YEAR_OF_ERA, 1)); in test_with_TemporalField_long() 58 assertEquals(YearMonth.of(0, Month.JANUARY), ym.with(ChronoField.PROLEPTIC_MONTH, 0)); in test_with_TemporalField_long() 60 …assertEquals(YearMonth.of(Year.MIN_VALUE, Month.JANUARY), ym.with(ChronoField.PROLEPTIC_MONTH, Yea… in test_with_TemporalField_long() 79 YearMonth ym = YearMonth.of(2000, Month.JANUARY); in test_with_TemporalField_long_invalidValue() 122 YearMonth ym = YearMonth.of(2000, Month.JANUARY); in test_with_TemporalField_long_invalidField()
|
D | ZonedDateTimeTest.java | 48 private static final LocalDateTime LDT_P1 = LocalDateTime.of(2000, Month.JANUARY, 1, 0, 0);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | SimpleDateFormatTest.java | 415 Calendar temp2 = new GregorianCalendar(1999, Calendar.JANUARY, 12); in test_format_time_zones() 457 Date winterDate = new GregorianCalendar(1999, Calendar.JANUARY, 12).getTime(); in test_timeZoneFormatting() 527 Calendar cal = new GregorianCalendar(1970, Calendar.JANUARY, 1); in test_parseLjava_lang_StringLjava_text_ParsePosition() 534 cal = new GregorianCalendar(1970, Calendar.JANUARY, 1, 1, 0); in test_parseLjava_lang_StringLjava_text_ParsePosition() 541 cal = new GregorianCalendar(1970, Calendar.JANUARY, 1, 11, 0); in test_parseLjava_lang_StringLjava_text_ParsePosition() 545 cal = new GregorianCalendar(1970, Calendar.JANUARY, 1, 23, 0); in test_parseLjava_lang_StringLjava_text_ParsePosition() 551 Calendar.JANUARY, 1, 3, 0).getTime(), 1, 5); in test_parseLjava_lang_StringLjava_text_ParsePosition() 553 Calendar.JANUARY, 1, 15, 0).getTime(), 1, 5); in test_parseLjava_lang_StringLjava_text_ParsePosition() 555 Calendar.JANUARY, 1, 0, 0, 59).getTime(), 0, 4); in test_parseLjava_lang_StringLjava_text_ParsePosition() 556 assertParse("m:s", "59:0", new GregorianCalendar(1970, Calendar.JANUARY, in test_parseLjava_lang_StringLjava_text_ParsePosition() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKMonth.java | 97 TemporalAccessor[] array = {Month.JANUARY, Month.JUNE, Month.DECEMBER, }; in samples() 241 assertEquals(Month.JANUARY.getDisplayName(TextStyle.SHORT, Locale.US), "Jan"); in test_getText() 246 Month.JANUARY.getDisplayName(null, Locale.US); in test_getText_nullStyle() 251 Month.JANUARY.getDisplayName(TextStyle.FULL, null); in test_getText_nullLocale() 367 assertEquals(Month.JANUARY.length(false), 31); in test_length_boolean_notLeapYear() 383 assertEquals(Month.JANUARY.length(true), 31); in test_length_boolean_leapYear() 402 assertEquals(Month.JANUARY.minLength(), 31); in test_minLength() 421 assertEquals(Month.JANUARY.maxLength(), 31); in test_maxLength() 440 assertEquals(Month.JANUARY.firstDayOfYear(false), 1); in test_firstDayOfYear_notLeapYear() 456 assertEquals(Month.JANUARY.firstDayOfYear(true), 1); in test_firstDayOfYear_leapYear() [all …]
|
D | TCKMonthDay.java | 214 MonthDay.of(Month.JANUARY, 0); in test_factory_intMonth_dayTooLow() 219 MonthDay.of(Month.JANUARY, 32); in test_factory_intMonth_dayTooHigh() 489 assertEquals(MonthDay.of(6, 30).with(Month.JANUARY), MonthDay.of(1, 30)); in test_with_Month()
|
/libcore/ojluni/src/main/java/sun/util/calendar/ |
D | BaseCalendar.java | 41 public static final int JANUARY = 1; field in BaseCalendar 197 if (month < JANUARY || month > DECEMBER) { in validate() 255 m = JANUARY; in normalize() 324 if (month < JANUARY || month > DECEMBER) { in getMonthLength() 364 boolean isJan1 = month == JANUARY && dayOfMonth == 1; in getFixedDate() 433 jan1 = getFixedDate(year, JANUARY, 1, null); in getCalendarDateFromFixedDate()
|
D | JulianCalendar.java | 149 boolean isJan1 = month == JANUARY && dayOfMonth == 1; in getFixedDate() 194 int priorDays = (int)(fixedDate - getFixedDate(year, JANUARY, 1, jdate)); in getCalendarDateFromFixedDate()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKTemporalAdjusters.java | 65 import static java.time.Month.JANUARY; 219 assertEquals(test.getMonth(), Month.JANUARY); in test_firstDayOfYear_nonLeap() 232 assertEquals(test.getMonth(), Month.JANUARY); in test_firstDayOfYear_leap() 287 assertEquals(test.getMonth(), JANUARY); in test_firstDayOfNextYear_nonLeap() local 300 assertEquals(test.getMonth(), JANUARY); in test_firstDayOfNextYear_leap() local 479 assertSame(test.getMonth(), Month.JANUARY); in test_next() 520 assertSame(test.getMonth(), Month.JANUARY); 556 assertSame(month, Month.JANUARY); 597 assertSame(month, Month.JANUARY);
|
/libcore/luni/src/test/java/libcore/java/time/zone/ |
D | ZoneOffsetTransitionTest.java | 36 LocalDateTime time = LocalDateTime.of(2000, Month.JANUARY, 1, 0, 0); in test_toEpochSeconds()
|
D | IcuZoneRulesProviderTest.java | 71 LocalDateTime.of(1970, Month.JANUARY, 1, 2, 3).toInstant(ZoneOffset.UTC), in testTransitionsNearInstants() 123 final Instant start = LocalDateTime.of(1900, Month.JANUARY, 1, 12, 0) in testAllTransitions()
|
D | ZoneRulesTest.java | 50 LocalDateTime.of(2000, Month.JANUARY, 1, 1, 1).toInstant(ZoneOffset.UTC), in test_of_ZoneOffset()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | GregorianCalendarTest.java | 146 assertEquals(Calendar.JANUARY, gc.get(Calendar.MONTH)); in test_fieldsAffectedByGregorianCutOver() 263 cal.set(2016, Calendar.JANUARY, 1); in test_getWeekYear() 270 cal.set(2016, Calendar.JANUARY, 1); in test_getWeekYear() 281 cal.set(2016, Calendar.JANUARY, 10); in test_getWeeksInWeekYear() 286 cal.set(2016, Calendar.JANUARY, 10); in test_getWeeksInWeekYear()
|
D | FormatterTest.java | 185 c.set(2013, Calendar.JANUARY, 1, hour, 00); in checkFormat()
|
D | SimpleTimeZoneTest.java | 263 calendar.set(year, Calendar.JANUARY, 1, 0, 0, 0); in checkDstTransitionTimes()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Month.java | 112 JANUARY, enumConstant 498 case JANUARY: in firstDayOfYear()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | GregorianCalendarTest.java | 367 .getActualMinimum(Calendar.MONTH) == Calendar.JANUARY); in test_getActualMinimumI() 386 .getGreatestMinimum(Calendar.MONTH) == Calendar.JANUARY); in test_getGreatestMinimumI() 486 .getMinimum(Calendar.MONTH) == Calendar.JANUARY); in test_getMinimumI() 581 assertEquals("Wrong month: " + cal.getTime(), Calendar.JANUARY, cal in test_rollIZ() 593 assertEquals("Wrong month: " + cal.getTime(), Calendar.JANUARY, cal in test_rollIZ() 600 assertEquals("Wrong month: " + cal.getTime(), Calendar.JANUARY, cal in test_rollIZ() 607 assertEquals("Wrong month: " + cal.getTime(), Calendar.JANUARY, cal in test_rollIZ() 630 assertEquals("Wrong month: " + cal.getTime(), Calendar.JANUARY, cal in test_rollIZ()
|
D | DateTest.java | 319 cal.set(1969, Calendar.JANUARY, 12, 1, 0); in test_parseLjava_lang_String() 445 cal.set(Calendar.MONTH, Calendar.JANUARY); in test_toString()
|
D | CalendarTest.java | 127 cal.set(Calendar.MONTH, Calendar.JANUARY); in test_setII() 137 cal.set(Calendar.MONTH, Calendar.JANUARY); in test_setII() 202 cal.set(Calendar.MONTH, Calendar.JANUARY); in test_setII() 259 cal.set(Calendar.MONTH, Calendar.JANUARY); in test_setII() 277 cal.set(Calendar.MONTH, Calendar.JANUARY); in test_setII() 470 cal.set(Calendar.MONTH, Calendar.JANUARY); in test_getTimeInMillis()
|
/libcore/ojluni/src/main/java/java/util/ |
D | JapaneseImperialCalendar.java | 173 JANUARY, // MONTH 192 JANUARY, // MONTH (Showa 64 ended in January.) 271 date.setDate(transitionDate.getYear(), BaseCalendar.JANUARY, 1); in transitionDate.getYear() 287 if (!(lgd.getMonth() == BaseCalendar.JANUARY && lgd.getDayOfMonth() == 1)) { 734 if (!(transition.getMonth() == BaseCalendar.JANUARY in roll() 1337 d.setDate(date.getNormalizedYear(), BaseCalendar.JANUARY, 1); in getActualMaximum() 1355 d1.setMonth(BaseCalendar.JANUARY).setDayOfMonth(1); in getActualMaximum() 1381 jd.setDate(d.getYear() + 1, BaseCalendar.JANUARY, 1); in getActualMaximum() 1395 d.setDate(date.getNormalizedYear(), BaseCalendar.JANUARY, 1); in getActualMaximum() 1752 d.setMonth(LocalGregorianCalendar.JANUARY).setDayOfMonth(1); in computeFields() [all …]
|
D | GregorianCalendar.java | 443 JANUARY, // MONTH 997 set(MONTH, JANUARY + month); 1766 nextJan1 = gcal.getFixedDate(++normalizedYear, BaseCalendar.JANUARY, 1, null); in getActualMaximum() 1829 d.setDate(date.getYear(), BaseCalendar.JANUARY, 1); in getActualMaximum() 2096 if (internalGet(MONTH) == JANUARY) { in getWeekYear() 2541 BaseCalendar.JANUARY, in computeFields() 2551 BaseCalendar.JANUARY, in computeFields() 2591 BaseCalendar.JANUARY, in computeFields() 3015 int month = JANUARY; in getFixedDate() 3025 } else if (month < JANUARY) { in getFixedDate() [all …]
|
D | SimpleTimeZone.java | 1382 if (startMonth < Calendar.JANUARY || startMonth > Calendar.DECEMBER) { in decodeStartRule() 1429 if (endMonth < Calendar.JANUARY || endMonth > Calendar.DECEMBER) { in decodeEndRule()
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | DatatypeConstants.java | 44 public static final int JANUARY = 1; field in DatatypeConstants
|
/libcore/luni/src/test/java/libcore/libcore/icu/ |
D | DateIntervalFormatTest.java | 42 c.set(Calendar.MONTH, Calendar.JANUARY); in test_formatDateInterval() 180 c.set(2042, Calendar.JANUARY, 19, 3, 30); in test8862241() 282 c.set(1980, Calendar.JANUARY, 1, 0, 0); in test_single_day_events_later_than_epoch() 300 c.set(1980, Calendar.JANUARY, 1, 0, 0); in test_single_day_events_not_in_UTC() 380 calendar.set(2038, Calendar.JANUARY, 19, 12, 0, 0); in test8467515() 384 calendar.set(1900, Calendar.JANUARY, 1, 0, 0, 0); in test8467515()
|
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/ |
D | BaseCalendar.java | 144 public static final int JANUARY = 1; // 0x1 field in BaseCalendar
|
/libcore/luni/src/test/java/tests/targets/security/cert/ |
D | CertificateTest.java | 756 calendar.set(2016, Calendar.JANUARY, 1); in createPKIXParams()
|