/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/test/java/util/GregorianCalendar/ |
D | GregorianCalendarTest.java | 102 checkTimes(gc, year, java.util.Calendar.JANUARY, in testGregorianCalendar() 118 checkTimes(gc, 1900, java.util.Calendar.JANUARY, dayOfMonth, in testGregorianCalendar() 143 checkTimes(gc, 1970, java.util.Calendar.JANUARY, in testGregorianCalendar() 150 checkTimes(gc, 1970, java.util.Calendar.JANUARY, in testGregorianCalendar() 157 checkTimes(gc, 1970, java.util.Calendar.JANUARY, in testGregorianCalendar()
|
/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() 328 if (month < JANUARY || month > DECEMBER) { in getMonthLength() 368 boolean isJan1 = month == JANUARY && dayOfMonth == 1; in getFixedDate() 437 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/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 | SimpleTimeZoneTest.java | 208 utc.getOffset(GregorianCalendar.BC, 100, Calendar.JANUARY, 10, Calendar.SUNDAY, 0); in testGetOffset_BC() 292 calendar.set(year, Calendar.JANUARY, 1, 0, 0, 0); in checkDstTransitionTimes()
|
/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 | ZoneRulesTest.java | 50 LocalDateTime.of(2000, Month.JANUARY, 1, 1, 1).toInstant(ZoneOffset.UTC), in test_of_ZoneOffset()
|
/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 | 321 cal.set(1969, Calendar.JANUARY, 12, 1, 0); in test_parseLjava_lang_String() 447 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/time/ |
D | Month.java | 112 JANUARY, enumConstant 498 case JANUARY: in firstDayOfYear()
|
/libcore/ojluni/src/main/java/java/util/ |
D | JapaneseImperialCalendar.java | 170 JANUARY, // MONTH 189 JANUARY, // MONTH (Showa 64 ended in January.) 270 date.setDate(transitionDate.getYear(), BaseCalendar.JANUARY, 1); in transitionDate.getYear() 286 if (!(lgd.getMonth() == BaseCalendar.JANUARY && lgd.getDayOfMonth() == 1)) { 738 if (!(transition.getMonth() == BaseCalendar.JANUARY in roll() 1323 d.setDate(date.getNormalizedYear(), BaseCalendar.JANUARY, 1); 1339 d1.setMonth(BaseCalendar.JANUARY).setDayOfMonth(1); 1360 jd.setDate(d.getYear() + 1, BaseCalendar.JANUARY, 1); 1374 d.setDate(date.getNormalizedYear(), BaseCalendar.JANUARY, 1); 1717 d.setMonth(LocalGregorianCalendar.JANUARY).setDayOfMonth(1); [all …]
|
D | GregorianCalendar.java | 443 JANUARY, // MONTH 998 set(MONTH, JANUARY + month); 1748 nextJan1 = gcal.getFixedDate(++normalizedYear, BaseCalendar.JANUARY, 1, null); in getActualMaximum() 1802 d.setDate(date.getYear(), BaseCalendar.JANUARY, 1); in getActualMaximum() 2057 if (internalGet(MONTH) == JANUARY) { in getWeekYear() 2502 BaseCalendar.JANUARY, in computeFields() 2512 BaseCalendar.JANUARY, in computeFields() 2552 BaseCalendar.JANUARY, in computeFields() 2976 int month = JANUARY; in getFixedDate() 2986 } else if (month < JANUARY) { in getFixedDate() [all …]
|
D | SimpleTimeZone.java | 1371 if (startMonth < Calendar.JANUARY || startMonth > Calendar.DECEMBER) { in decodeStartRule() 1418 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/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 | 252 calendar.set(year, Calendar.JANUARY, 1); in backdate()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeTextProvider.java | 362 for (int month = Calendar.JANUARY; month <= Calendar.DECEMBER; month++) { in createStore() 382 for (int month = Calendar.JANUARY; month <= Calendar.DECEMBER; month++) { in createStore()
|
/libcore/ojluni/src/test/java/time/test/java/time/zone/ |
D | TestZoneRules.java | 188 ZoneOffsetTransitionRule transitionRule = ZoneOffsetTransitionRule.of(Month.JANUARY, in test_TransitionLastRuleYear()
|