Lines Matching defs:year
180 DAY_OF_YEAR /* n - day of year */
1347 int year, i, idx, ridx;
1352 year = gmttm.tm_year + 1900;
1369 while (year < __usa_rules[i].s_year && i < MAX_RULE_TABLE) {
1378 idx = posix_daylight(&jan01, year, &pdaylight);
1382 * Note: t, rtime[0], and rtime[1] are all bounded within 'year'
1393 * Given January 1, 00:00:00 GMT for a year as an Epoch-relative time,
1394 * along with the integer year #, a posix_daylight_t that is composed
1398 * Also update janfirst by a year, by adding the appropriate number of
1399 * seconds depending on whether the year is a leap year or not. (We take
1400 * advantage that this routine knows the leap year status.)
1403 posix_daylight(int64_t *janfirst, int year, posix_daylight_t *pdaylightp)
1417 leapyear = isleap(year);
1439 yy0 = (rulep->r_mon <= 2) ? (year - 1) : year;
1452 if (year < 1 && leapyear)
1487 * n - day of year.
2075 * Jan 1 of each year covering 1902-2038. POSIX offsets
2089 * Create transition times based on the application new-year
2091 * for each year covering 1902-2038. POSIX offsets specified
2359 int i, year, tz_max_times;
2366 * year transitioning to their respective std and dst zones.
2414 for (year = __usa_rules[i].s_year;
2416 year <= __usa_rules[i].e_year; year++) {
2419 idx = posix_daylight(&janfirst, year, &pdaylight);
2423 * Two transitions per year. Since there are
2444 if (year == 2038)
2577 * If compat_flag is set, support old 1-based day of year values.
2609 * Day of year.
2613 /* zero-based day of year */
2616 /* one-based day of year */