year 119 include/crm/common/iso8601.h int crm_time_january1_weekday(int year); year 120 include/crm/common/iso8601.h int crm_time_weeks_in_year(int year); year 121 include/crm/common/iso8601.h int crm_time_days_in_month(int month, int year); year 123 include/crm/common/iso8601.h bool crm_time_leapyear(int year); year 159 lib/common/iso8601.c year_days(int year) year 163 lib/common/iso8601.c if (crm_time_leapyear(year)) { year 178 lib/common/iso8601.c crm_time_january1_weekday(int year) year 180 lib/common/iso8601.c int YY = (year - 1) % 100; year 181 lib/common/iso8601.c int C = (year - 1) - YY; year 186 lib/common/iso8601.c crm_trace("January 1 %.4d: %d", year, jan1); year 191 lib/common/iso8601.c crm_time_weeks_in_year(int year) year 194 lib/common/iso8601.c int jan1 = crm_time_january1_weekday(year); year 200 lib/common/iso8601.c jan1 = crm_time_january1_weekday(year + 1); year 224 lib/common/iso8601.c crm_time_days_in_month(int month, int year) year 229 lib/common/iso8601.c if ((month == 2) && crm_time_leapyear(year)) { year 236 lib/common/iso8601.c crm_time_leapyear(int year) year 240 lib/common/iso8601.c if (year % 4 == 0) { year 243 lib/common/iso8601.c if (year % 100 == 0 && year % 400 != 0) { year 877 lib/common/iso8601.c int year = 0; year 910 lib/common/iso8601.c rc = sscanf(date_str, "%d-%d-%d", &year, &month, &day); year 913 lib/common/iso8601.c rc = sscanf(date_str, "%4d%2d%2d", &year, &month, &day); year 920 lib/common/iso8601.c } else if (day > crm_time_days_in_month(month, year)) { year 926 lib/common/iso8601.c dt->years = year; year 927 lib/common/iso8601.c dt->days = get_ordinal_days(year, month, day); year 929 lib/common/iso8601.c year, dt->days, date_str); year 935 lib/common/iso8601.c rc = sscanf(date_str, "%d-%d", &year, &day); year 937 lib/common/iso8601.c if (day > year_days(year)) { year 940 lib/common/iso8601.c date_str, day, year_days(year)); year 944 lib/common/iso8601.c year, day, date_str); year 946 lib/common/iso8601.c dt->years = year; year 951 lib/common/iso8601.c rc = sscanf(date_str, "%d-W%d-%d", &year, &week, &day); year 953 lib/common/iso8601.c if (week > crm_time_weeks_in_year(year)) { year 956 lib/common/iso8601.c date_str, week, crm_time_weeks_in_year(year)); year 974 lib/common/iso8601.c int jan1 = crm_time_january1_weekday(year); year 977 lib/common/iso8601.c year, jan1, week, day, date_str); year 979 lib/common/iso8601.c dt->years = year; year 163 maint/gnulib/lib/mktime.c leapyear (long_int year) year 168 maint/gnulib/lib/mktime.c ((year & 3) == 0 year 169 maint/gnulib/lib/mktime.c && (year % 100 != 0 year 170 maint/gnulib/lib/mktime.c || ((year / 100) & 3) == (- (TM_YEAR_BASE / 100) & 3))); year 245 maint/gnulib/lib/mktime.c tm_diff (long_int year, long_int yday, int hour, int min, int sec, year 248 maint/gnulib/lib/mktime.c return ydhms_diff (year, yday, hour, min, sec, year 351 maint/gnulib/lib/mktime.c long_int year = lyear_requested + mon_years; year 358 maint/gnulib/lib/mktime.c int mon_yday = ((__mon_yday[leapyear (year)] year 383 maint/gnulib/lib/mktime.c long_int t0 = ydhms_diff (year, yday, hour, min, sec, year 394 maint/gnulib/lib/mktime.c long_int dt = tm_diff (year, yday, hour, min, sec, &tm); year 470 maint/gnulib/lib/mktime.c long_int gt = ot + tm_diff (year, yday, hour, min, sec, year 115 maint/gnulib/lib/nstrftime.c # define __isleap(year) \ year 116 maint/gnulib/lib/nstrftime.c ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0)) year 1260 maint/gnulib/lib/nstrftime.c int year = (tp->tm_year year 1271 maint/gnulib/lib/nstrftime.c days = iso_week_days (tp->tm_yday + (365 + __isleap (year - 1)), year 1276 maint/gnulib/lib/nstrftime.c int d = iso_week_days (tp->tm_yday - (365 + __isleap (year)), year 166 maint/gnulib/lib/parse-datetime.y intmax_t year; year 203 maint/gnulib/lib/parse-datetime.y textint year; year 265 maint/gnulib/lib/parse-datetime.y if (pc->dates_seen && ! pc->year.digits year 269 maint/gnulib/lib/parse-datetime.y pc->year = text_int; year 278 maint/gnulib/lib/parse-datetime.y pc->year.value = text_int.value / 10000; year 279 maint/gnulib/lib/parse-datetime.y pc->year.digits = text_int.digits - 4; year 313 maint/gnulib/lib/parse-datetime.y | INT_SUBTRACT_WRAPV (pc->rel.year, rel.year, &pc->rel.year)) year 320 maint/gnulib/lib/parse-datetime.y | INT_ADD_WRAPV (pc->rel.year, rel.year, &pc->rel.year))) year 446 maint/gnulib/lib/parse-datetime.y pc->year.value, pc->month, pc->day); year 455 maint/gnulib/lib/parse-datetime.y fprintf (stderr, _("year: %04"PRIdMAX), pc->year.value); year 542 maint/gnulib/lib/parse-datetime.y if (pc->rel.year == 0 && pc->rel.month == 0 && pc->rel.day == 0 year 551 maint/gnulib/lib/parse-datetime.y space = print_rel_part (space, pc->rel.year, "year(s)"); year 825 maint/gnulib/lib/parse-datetime.y pc->year = $1; year 838 maint/gnulib/lib/parse-datetime.y pc->year = $5; year 846 maint/gnulib/lib/parse-datetime.y if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; year 847 maint/gnulib/lib/parse-datetime.y pc->year.digits = $3.digits; year 854 maint/gnulib/lib/parse-datetime.y if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; year 855 maint/gnulib/lib/parse-datetime.y pc->year.digits = $3.digits; year 866 maint/gnulib/lib/parse-datetime.y pc->year = $4; year 877 maint/gnulib/lib/parse-datetime.y pc->year = $3; year 886 maint/gnulib/lib/parse-datetime.y pc->year = $1; year 903 maint/gnulib/lib/parse-datetime.y { $$ = RELATIVE_TIME_0; $$.year = $1; } year 905 maint/gnulib/lib/parse-datetime.y { $$ = RELATIVE_TIME_0; $$.year = $1.value; } year 907 maint/gnulib/lib/parse-datetime.y { $$ = RELATIVE_TIME_0; $$.year = 1; } year 949 maint/gnulib/lib/parse-datetime.y { $$ = RELATIVE_TIME_0; $$.year = $1.value; } year 1271 maint/gnulib/lib/parse-datetime.y intmax_t year = textyear.value; year 1275 maint/gnulib/lib/parse-datetime.y if (0 <= year && textyear.digits == 2) year 1277 maint/gnulib/lib/parse-datetime.y year += year < 69 ? 2000 : 1900; year 1281 maint/gnulib/lib/parse-datetime.y textyear.value, year); year 1284 maint/gnulib/lib/parse-datetime.y if (year < 0 year 1285 maint/gnulib/lib/parse-datetime.y ? INT_SUBTRACT_WRAPV (-TM_YEAR_BASE, year, tm_year) year 1286 maint/gnulib/lib/parse-datetime.y : INT_SUBTRACT_WRAPV (year, TM_YEAR_BASE, tm_year)) year 1289 maint/gnulib/lib/parse-datetime.y dbg_printf (_("error: out-of-range year %"PRIdMAX"\n"), year); year 1807 maint/gnulib/lib/parse-datetime.y if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) year 1813 maint/gnulib/lib/parse-datetime.y pc.year.digits = 0; year 1972 maint/gnulib/lib/parse-datetime.y if (! to_tm_year (pc.year, debugging (&pc), &tm.tm_year) year 2129 maint/gnulib/lib/parse-datetime.y if (pc.rel.year | pc.rel.month | pc.rel.day) year 2133 maint/gnulib/lib/parse-datetime.y if ((pc.rel.year != 0 || pc.rel.month != 0) && tm.tm_mday != 15) year 2143 maint/gnulib/lib/parse-datetime.y int year, month, day; year 2144 maint/gnulib/lib/parse-datetime.y if (INT_ADD_WRAPV (tm.tm_year, pc.rel.year, &year) year 2152 maint/gnulib/lib/parse-datetime.y tm.tm_year = year; year 2175 maint/gnulib/lib/parse-datetime.y pc.rel.year, pc.rel.month, pc.rel.day); year 2218 maint/gnulib/lib/parse-datetime.y tm_year_str (year, tm_year_buf), month + 1, day); year 125 maint/gnulib/lib/posixtm.c if (! year (tm, p, len - 4, syntax_bits)) year 141 maint/gnulib/lib/posixtm.c if (! year (tm, p, len, syntax_bits)) year 194 maint/gnulib/lib/strptime.c # define __isleap(year) \ year 195 maint/gnulib/lib/strptime.c ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))