Home
last modified time | relevance | path

Searched refs:JANUARY (Results 1 – 25 of 39) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/time/
DYearMonthTest.java41 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()
DZonedDateTimeTest.java48 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/
DSimpleDateFormatTest.java415 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/
DTCKMonth.java97 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 …]
DTCKMonthDay.java214 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/
DBaseCalendar.java41 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()
DJulianCalendar.java149 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/
DTCKTemporalAdjusters.java65 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/
DZoneOffsetTransitionTest.java36 LocalDateTime time = LocalDateTime.of(2000, Month.JANUARY, 1, 0, 0); in test_toEpochSeconds()
DIcuZoneRulesProviderTest.java71 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()
DZoneRulesTest.java50 LocalDateTime.of(2000, Month.JANUARY, 1, 1, 1).toInstant(ZoneOffset.UTC), in test_of_ZoneOffset()
/libcore/luni/src/test/java/libcore/java/util/
DGregorianCalendarTest.java146 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()
DFormatterTest.java185 c.set(2013, Calendar.JANUARY, 1, hour, 00); in checkFormat()
DSimpleTimeZoneTest.java263 calendar.set(year, Calendar.JANUARY, 1, 0, 0, 0); in checkDstTransitionTimes()
/libcore/ojluni/src/main/java/java/time/
DMonth.java112 JANUARY, enumConstant
498 case JANUARY: in firstDayOfYear()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DGregorianCalendarTest.java367 .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()
DDateTest.java319 cal.set(1969, Calendar.JANUARY, 12, 1, 0); in test_parseLjava_lang_String()
445 cal.set(Calendar.MONTH, Calendar.JANUARY); in test_toString()
DCalendarTest.java127 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/
DJapaneseImperialCalendar.java173 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 …]
DGregorianCalendar.java443 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 …]
DSimpleTimeZone.java1382 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/
DDatatypeConstants.java44 public static final int JANUARY = 1; field in DatatypeConstants
/libcore/luni/src/test/java/libcore/libcore/icu/
DDateIntervalFormatTest.java42 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/
DBaseCalendar.java144 public static final int JANUARY = 1; // 0x1 field in BaseCalendar
/libcore/luni/src/test/java/tests/targets/security/cert/
DCertificateTest.java756 calendar.set(2016, Calendar.JANUARY, 1); in createPKIXParams()

12