Lines Matching defs:year
112 CECalendar::ceToJD(int32_t year, int32_t month, int32_t date, int32_t jdEpochOffset)
116 year += month/13;
120 year += month/13 - 1;
125 + 365 * year // number of days from years
126 + ClockMath::floorDivide(year, 4) // extra day of leap year
133 CECalendar::jdToCE(int32_t julianDay, int32_t jdEpochOffset, int32_t& year, int32_t& month, int32_t& day)
135 int32_t c4; // number of 4 year cycle (1461 days)
136 int32_t r4; // remainder of 4 year cycle, always positive
140 year = 4 * c4 + (r4/365 - r4/1460); // 4 * <number of 4year cycle> + <years within the last cycle>
142 int32_t doy = (r4 == 1460) ? 365 : (r4 % 365); // days in present year