year 113 include/crm/common/iso8601.h int crm_time_january1_weekday(int year); year 114 include/crm/common/iso8601.h int crm_time_weeks_in_year(int year); year 115 include/crm/common/iso8601.h int crm_time_days_in_month(int month, int year); year 117 include/crm/common/iso8601.h bool crm_time_leapyear(int year); year 150 lib/common/iso8601.c year_days(int year) year 154 lib/common/iso8601.c if (crm_time_leapyear(year)) { year 169 lib/common/iso8601.c crm_time_january1_weekday(int year) year 171 lib/common/iso8601.c int YY = (year - 1) % 100; year 172 lib/common/iso8601.c int C = (year - 1) - YY; year 177 lib/common/iso8601.c crm_trace("January 1 %.4d: %d", year, jan1); year 182 lib/common/iso8601.c crm_time_weeks_in_year(int year) year 185 lib/common/iso8601.c int jan1 = crm_time_january1_weekday(year); year 191 lib/common/iso8601.c jan1 = crm_time_january1_weekday(year + 1); year 215 lib/common/iso8601.c crm_time_days_in_month(int month, int year) year 220 lib/common/iso8601.c if ((month == 2) && crm_time_leapyear(year)) { year 227 lib/common/iso8601.c crm_time_leapyear(int year) year 231 lib/common/iso8601.c if (year % 4 == 0) { year 234 lib/common/iso8601.c if (year % 100 == 0 && year % 400 != 0) { year 765 lib/common/iso8601.c int year = 0; year 798 lib/common/iso8601.c rc = sscanf(date_str, "%d-%d-%d", &year, &month, &day); year 801 lib/common/iso8601.c rc = sscanf(date_str, "%4d%2d%2d", &year, &month, &day); year 808 lib/common/iso8601.c } else if (day > crm_time_days_in_month(month, year)) { year 814 lib/common/iso8601.c dt->years = year; year 815 lib/common/iso8601.c dt->days = get_ordinal_days(year, month, day); year 817 lib/common/iso8601.c year, dt->days, date_str); year 823 lib/common/iso8601.c rc = sscanf(date_str, "%d-%d", &year, &day); year 825 lib/common/iso8601.c if (day > year_days(year)) { year 828 lib/common/iso8601.c date_str, day, year_days(year)); year 832 lib/common/iso8601.c year, day, date_str); year 834 lib/common/iso8601.c dt->years = year; year 839 lib/common/iso8601.c rc = sscanf(date_str, "%d-W%d-%d", &year, &week, &day); year 841 lib/common/iso8601.c if (week > crm_time_weeks_in_year(year)) { year 844 lib/common/iso8601.c date_str, week, crm_time_weeks_in_year(year)); year 862 lib/common/iso8601.c int jan1 = crm_time_january1_weekday(year); year 865 lib/common/iso8601.c year, jan1, week, day, date_str); year 867 lib/common/iso8601.c dt->years = year;