Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/util/
DGrego.java129 int dayOfYear = (int)rem[0]; in dayToFields() local
131 dayOfYear = 365; // Dec 31 at end of 4- or 400-yr cycle in dayToFields()
140 if (dayOfYear >= march1) { in dayToFields()
143 int month = (12 * (dayOfYear + correction) + 6) / 367; // zero-based month in dayToFields()
144 int dayOfMonth = dayOfYear - DAYS_BEFORE[isLeap ? month + 12 : month] + 1; // one-based DOM in dayToFields()
149 dayOfYear++; // 1-based day of year in dayToFields()
155 fields[4] = dayOfYear; in dayToFields()
DGregorianCalendar.java490 int dayOfYear = computeYearAndDay(days, time + fields[ZONE_OFFSET]); in fullFieldsCalc() local
491 fields[DAY_OF_YEAR] = dayOfYear; in fullFieldsCalc()
493 dayOfYear += currentYearSkew; in fullFieldsCalc()
495 int month = dayOfYear / 32; in fullFieldsCalc()
497 int date = dayOfYear - daysInYear(leapYear, month); in fullFieldsCalc()
520 dayOfYear = computeYearAndDay(days, time - fields[ZONE_OFFSET] in fullFieldsCalc()
522 fields[DAY_OF_YEAR] = dayOfYear; in fullFieldsCalc()
524 dayOfYear += currentYearSkew; in fullFieldsCalc()
526 month = dayOfYear / 32; in fullFieldsCalc()
528 date = dayOfYear - daysInYear(leapYear, month); in fullFieldsCalc()
[all …]