year 118 include/crm/common/iso8601.h int crm_time_january1_weekday(int year); year 119 include/crm/common/iso8601.h int crm_time_weeks_in_year(int year); year 120 include/crm/common/iso8601.h int crm_time_days_in_month(int month, int year); year 122 include/crm/common/iso8601.h bool crm_time_leapyear(int year); year 125 lib/common/iso8601.c year_days(int year) year 129 lib/common/iso8601.c if (crm_time_leapyear(year)) { year 144 lib/common/iso8601.c crm_time_january1_weekday(int year) year 146 lib/common/iso8601.c int YY = (year - 1) % 100; year 147 lib/common/iso8601.c int C = (year - 1) - YY; year 152 lib/common/iso8601.c crm_trace("January 1 %.4d: %d", year, jan1); year 157 lib/common/iso8601.c crm_time_weeks_in_year(int year) year 160 lib/common/iso8601.c int jan1 = crm_time_january1_weekday(year); year 166 lib/common/iso8601.c jan1 = crm_time_january1_weekday(year + 1); year 179 lib/common/iso8601.c crm_time_days_in_month(int month, int year) year 181 lib/common/iso8601.c if (month == 2 && crm_time_leapyear(year)) { year 188 lib/common/iso8601.c crm_time_leapyear(int year) year 192 lib/common/iso8601.c if (year % 4 == 0) { year 195 lib/common/iso8601.c if (year % 100 == 0 && year % 400 != 0) { year 656 lib/common/iso8601.c int year = 0; year 683 lib/common/iso8601.c rc = sscanf(date_str, "%d-%d-%d", &year, &month, &day); year 686 lib/common/iso8601.c rc = sscanf(date_str, "%4d%2d%2d", &year, &month, &day); year 694 lib/common/iso8601.c dt->years = year; year 695 lib/common/iso8601.c dt->days = get_ordinal_days(year, month, day); year 696 lib/common/iso8601.c crm_trace("Got gergorian date: %.4d-%.3d", year, dt->days); year 702 lib/common/iso8601.c rc = sscanf(date_str, "%d-%d", &year, &day); year 705 lib/common/iso8601.c if (day > year_days(year)) { year 706 lib/common/iso8601.c crm_err("Invalid day: %d (max=%d)", day, year_days(year)); year 709 lib/common/iso8601.c dt->years = year; year 715 lib/common/iso8601.c rc = sscanf(date_str, "%d-W%d-%d", &year, &week, &day); year 718 lib/common/iso8601.c if (week > crm_time_weeks_in_year(year)) { year 719 lib/common/iso8601.c crm_err("Invalid week: %d (max=%d)", week, crm_time_weeks_in_year(year)); year 735 lib/common/iso8601.c int jan1 = crm_time_january1_weekday(year); year 739 lib/common/iso8601.c dt->years = year;