Home
last modified time | relevance | path

Searched refs:zeroDay (Results 1 – 2 of 2) sorted by relevance

/libcore/ojluni/src/main/java/java/time/zone/
DZoneRules.java951 long zeroDay = Math.floorDiv(localSecond, 86400) + DAYS_0000_TO_1970; in findYear() local
954 zeroDay -= 60; // adjust to 0000-03-01 so leap day is at end of four year cycle in findYear()
956 if (zeroDay < 0) { in findYear()
958 long adjustCycles = (zeroDay + 1) / DAYS_PER_CYCLE - 1; in findYear()
960 zeroDay += -adjustCycles * DAYS_PER_CYCLE; in findYear()
962 long yearEst = (400 * zeroDay + 591) / DAYS_PER_CYCLE; in findYear()
963 long doyEst = zeroDay - (365 * yearEst + yearEst / 4 - yearEst / 100 + yearEst / 400); in findYear()
967 doyEst = zeroDay - (365 * yearEst + yearEst / 4 - yearEst / 100 + yearEst / 400); in findYear()
/libcore/ojluni/src/main/java/java/time/
DLocalDate.java339 long zeroDay = epochDay + DAYS_0000_TO_1970; in ofEpochDay() local
341 zeroDay -= 60; // adjust to 0000-03-01 so leap day is at end of four year cycle in ofEpochDay()
343 if (zeroDay < 0) { in ofEpochDay()
345 long adjustCycles = (zeroDay + 1) / DAYS_PER_CYCLE - 1; in ofEpochDay()
347 zeroDay += -adjustCycles * DAYS_PER_CYCLE; in ofEpochDay()
349 long yearEst = (400 * zeroDay + 591) / DAYS_PER_CYCLE; in ofEpochDay()
350 long doyEst = zeroDay - (365 * yearEst + yearEst / 4 - yearEst / 100 + yearEst / 400); in ofEpochDay()
354 doyEst = zeroDay - (365 * yearEst + yearEst / 4 - yearEst / 100 + yearEst / 400); in ofEpochDay()