Lines Matching defs:years
21 int64_t years = *remainingDays / daysPerYears;
22 if (years == quotientYears)
23 years--;
24 *remainingDays -= years * daysPerYears;
25 return years;
34 // makes it easier to count how many leap years have passed using division.
36 // While calculating numbers of years in the days, the following algorithm
37 // subdivides the days into the number of 400 years, the number of 100 years and
38 // the number of 4 years. These numbers of cycle years are used in calculating
40 // and isLeapYear(). Then compute the total number of years in days from these
43 // Compute the number of months from the remaining days. Finally, adjust years
87 // The remaining number of years after computing the number of
89 // years.
93 // The remaining number of years after computing the number of
94 // "hundred year cycles" will be 25 four year cycles or less in 100 years.
98 // The remaining number of years after computing the number of
99 // "four year cycles" will be 4 one year cycles or less in 4 years.
103 // Calculate number of years from year 2000.
104 int64_t years = remainingYears + 4 * numOfFourYearCycles +
125 years++;
128 if (years > INT_MAX || years < INT_MIN)
131 // All the data (years, month and remaining days) was calculated from
133 tm->tm_year = static_cast<int>(years + 2000 - time_constants::TIME_YEAR_BASE);