Lines Matching refs:year
145 #define DAY_OF_YEAR 1 /* n - day of year */
190 static time_t transtime(time_t janfirst, int year,
832 ** Day of year.
850 ** Given the Epoch-relative time of January 1, 00:00:00 UTC, in a year, the
851 ** year, a rule, and the offset from UTC at the time that rule takes effect,
856 transtime(const time_t janfirst, const int year, const struct rule *const rulep,
865 leapyear = isleap(year);
883 ** n - day of year.
903 yy0 = (rulep->r_mon <= 2) ? (year - 1) : year;
1014 int year;
1030 ** Two transitions per year, from EPOCH_YEAR forward.
1043 for (year = EPOCH_YEAR;
1045 ++year) {
1048 starttime = transtime(janfirst, year, &start,
1050 endtime = transtime(janfirst, year, &end,
1065 newfirst += year_lengths[isleap(year)] *
1527 ** Return the number of leap years through the end of the given year
1528 ** where, to make the math easy, the answer for year zero is defined as zero.
1821 ** Turn y into an actual year number for now.