Home
last modified time | relevance | path

Searched refs:firstDayOfYear (Results 1 – 7 of 7) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKMonth.java440 assertEquals(Month.JANUARY.firstDayOfYear(false), 1); in test_firstDayOfYear_notLeapYear()
441 assertEquals(Month.FEBRUARY.firstDayOfYear(false), 1 + 31); in test_firstDayOfYear_notLeapYear()
442 assertEquals(Month.MARCH.firstDayOfYear(false), 1 + 31 + 28); in test_firstDayOfYear_notLeapYear()
443 assertEquals(Month.APRIL.firstDayOfYear(false), 1 + 31 + 28 + 31); in test_firstDayOfYear_notLeapYear()
444 assertEquals(Month.MAY.firstDayOfYear(false), 1 + 31 + 28 + 31 + 30); in test_firstDayOfYear_notLeapYear()
445 assertEquals(Month.JUNE.firstDayOfYear(false), 1 + 31 + 28 + 31 + 30 + 31); in test_firstDayOfYear_notLeapYear()
446 assertEquals(Month.JULY.firstDayOfYear(false), 1 + 31 + 28 + 31 + 30 + 31 + 30); in test_firstDayOfYear_notLeapYear()
447 assertEquals(Month.AUGUST.firstDayOfYear(false), 1 + 31 + 28 + 31 + 30 + 31 + 30 + 31); in test_firstDayOfYear_notLeapYear()
448 … assertEquals(Month.SEPTEMBER.firstDayOfYear(false), 1 + 31 + 28 + 31 + 30 + 31 + 30 + 31 + 31); in test_firstDayOfYear_notLeapYear()
449 … assertEquals(Month.OCTOBER.firstDayOfYear(false), 1 + 31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30); in test_firstDayOfYear_notLeapYear()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKTemporalAdjusters.java209 assertNotNull(TemporalAdjusters.firstDayOfYear()); in factory_firstDayOfYear()
217 LocalDate test = (LocalDate) TemporalAdjusters.firstDayOfYear().adjustInto(date); in test_firstDayOfYear_nonLeap()
230 LocalDate test = (LocalDate) TemporalAdjusters.firstDayOfYear().adjustInto(date); in test_firstDayOfYear_leap()
/libcore/ojluni/src/main/java/java/time/
DMonth.java495 public int firstDayOfYear(boolean leapYear) { in firstDayOfYear() method in Month
DLocalDate.java287 int monthEnd = moy.firstDayOfYear(leap) + moy.length(leap) - 1; in ofYearDay()
291 int dom = dayOfYear - moy.firstDayOfYear(leap) + 1; in ofYearDay()
782 return getMonth().firstDayOfYear(isLeapYear()) + day - 1; in getDayOfYear()
/libcore/ojluni/src/main/java/java/time/temporal/
DTemporalAdjusters.java229 public static TemporalAdjuster firstDayOfYear() { in firstDayOfYear() method
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestUmmAlQuraChronology.java366 assertEquals(date.with(TemporalAdjusters.firstDayOfYear()), HijrahDate.of(1554, 1, 1)); in test_temporalDayAdjustments()
/libcore/api/
Dcurrent.txt10889 method public int firstDayOfYear(boolean);
11957 method public static java.time.temporal.TemporalAdjuster firstDayOfYear();