dt 55 include/crm/common/iso8601.h void crm_time_free(crm_time_t * dt); dt 58 include/crm/common/iso8601.h char *crm_time_as_string(const crm_time_t *dt, int flags); dt 60 include/crm/common/iso8601.h #define crm_time_log(level, prefix, dt, flags) \ dt 61 include/crm/common/iso8601.h crm_time_log_alias(level, __FILE__, __func__, __LINE__, prefix, dt, flags) dt 78 include/crm/common/iso8601.h crm_time_t *crm_time_calculate_duration(const crm_time_t *dt, dt 85 include/crm/common/iso8601.h int crm_time_get_timeofday(const crm_time_t *dt, uint32_t *h, uint32_t *m, dt 87 include/crm/common/iso8601.h int crm_time_get_timezone(const crm_time_t *dt, uint32_t *h, uint32_t *m); dt 88 include/crm/common/iso8601.h int crm_time_get_gregorian(const crm_time_t *dt, uint32_t *y, uint32_t *m, dt 90 include/crm/common/iso8601.h int crm_time_get_ordinal(const crm_time_t *dt, uint32_t *y, uint32_t *d); dt 91 include/crm/common/iso8601.h int crm_time_get_isoweek(const crm_time_t *dt, uint32_t *y, uint32_t *w, dt 95 include/crm/common/iso8601.h long long crm_time_get_seconds(const crm_time_t *dt); dt 98 include/crm/common/iso8601.h long long crm_time_get_seconds_since_epoch(const crm_time_t *dt); dt 105 include/crm/common/iso8601.h crm_time_t *crm_time_add(const crm_time_t *dt, const crm_time_t *value); dt 106 include/crm/common/iso8601.h crm_time_t *crm_time_subtract(const crm_time_t *dt, const crm_time_t *value); dt 109 include/crm/common/iso8601.h void crm_time_add_seconds(crm_time_t * dt, int value); dt 110 include/crm/common/iso8601.h void crm_time_add_minutes(crm_time_t * dt, int value); dt 111 include/crm/common/iso8601.h void crm_time_add_hours(crm_time_t * dt, int value); dt 112 include/crm/common/iso8601.h void crm_time_add_days(crm_time_t * dt, int value); dt 113 include/crm/common/iso8601.h void crm_time_add_weeks(crm_time_t * dt, int value); dt 114 include/crm/common/iso8601.h void crm_time_add_months(crm_time_t * dt, int value); dt 115 include/crm/common/iso8601.h void crm_time_add_years(crm_time_t * dt, int value); dt 123 include/crm/common/iso8601.h bool crm_time_check(const crm_time_t *dt); dt 21 include/crm/common/iso8601_internal.h const crm_time_t *dt); dt 62 lib/common/iso8601.c crm_get_utc_time(const crm_time_t *dt) dt 66 lib/common/iso8601.c if (dt == NULL) { dt 72 lib/common/iso8601.c utc->years = dt->years; dt 73 lib/common/iso8601.c utc->days = dt->days; dt 74 lib/common/iso8601.c utc->seconds = dt->seconds; dt 77 lib/common/iso8601.c if (dt->offset) { dt 78 lib/common/iso8601.c crm_time_add_seconds(utc, -dt->offset); dt 81 lib/common/iso8601.c utc->months = dt->months; dt 84 lib/common/iso8601.c crm_time_log(LOG_TRACE, "utc-source", dt, dt 95 lib/common/iso8601.c crm_time_t *dt = NULL; dt 100 lib/common/iso8601.c dt = crm_time_new_undefined(); dt 101 lib/common/iso8601.c crm_time_set_timet(dt, &tm_now); dt 103 lib/common/iso8601.c dt = parse_date(date_time); dt 105 lib/common/iso8601.c return dt; dt 140 lib/common/iso8601.c crm_time_free(crm_time_t * dt) dt 142 lib/common/iso8601.c if (dt == NULL) { dt 145 lib/common/iso8601.c free(dt); dt 292 lib/common/iso8601.c crm_time_get_timeofday(const crm_time_t *dt, uint32_t *h, uint32_t *m, dt 295 lib/common/iso8601.c crm_time_get_sec(dt->seconds, h, m, s); dt 300 lib/common/iso8601.c crm_time_get_timezone(const crm_time_t *dt, uint32_t *h, uint32_t *m) dt 304 lib/common/iso8601.c crm_time_get_sec(dt->seconds, h, m, &s); dt 309 lib/common/iso8601.c crm_time_get_seconds(const crm_time_t *dt) dt 315 lib/common/iso8601.c if (dt == NULL) { dt 319 lib/common/iso8601.c utc = crm_get_utc_time(dt); dt 352 lib/common/iso8601.c crm_time_get_seconds_since_epoch(const crm_time_t *dt) dt 354 lib/common/iso8601.c return (dt == NULL)? 0 : (crm_time_get_seconds(dt) - EPOCH_SECONDS); dt 358 lib/common/iso8601.c crm_time_get_gregorian(const crm_time_t *dt, uint32_t *y, uint32_t *m, dt 362 lib/common/iso8601.c int days = dt->days; dt 364 lib/common/iso8601.c if(dt->years != 0) { dt 366 lib/common/iso8601.c int mdays = crm_time_days_in_month(months, dt->years); dt 375 lib/common/iso8601.c } else if (dt->months) { dt 377 lib/common/iso8601.c months = dt->months; dt 383 lib/common/iso8601.c *y = dt->years; dt 386 lib/common/iso8601.c crm_trace("%.4d-%.3d -> %.4d-%.2d-%.2d", dt->years, dt->days, dt->years, months, days); dt 391 lib/common/iso8601.c crm_time_get_ordinal(const crm_time_t *dt, uint32_t *y, uint32_t *d) dt 393 lib/common/iso8601.c *y = dt->years; dt 394 lib/common/iso8601.c *d = dt->days; dt 399 lib/common/iso8601.c crm_time_get_isoweek(const crm_time_t *dt, uint32_t *y, uint32_t *w, dt 407 lib/common/iso8601.c int jan1 = crm_time_january1_weekday(dt->years); dt 410 lib/common/iso8601.c CRM_CHECK(dt->days > 0, return FALSE); dt 413 lib/common/iso8601.c h = dt->days + jan1 - 1; dt 417 lib/common/iso8601.c if (dt->days <= (8 - jan1) && jan1 > 4) { dt 419 lib/common/iso8601.c year_num = dt->years - 1; dt 423 lib/common/iso8601.c year_num = dt->years; dt 427 lib/common/iso8601.c if (year_num == dt->years) { dt 431 lib/common/iso8601.c if ((dmax - dt->days) < correction) { dt 432 lib/common/iso8601.c crm_trace("year++, jan1=%d, i=%d vs. %d", jan1, dmax - dt->days, correction); dt 433 lib/common/iso8601.c year_num = dt->years + 1; dt 439 lib/common/iso8601.c if (year_num == dt->years) { dt 440 lib/common/iso8601.c int j = dt->days + (7 - *d) + (jan1 - 1); dt 449 lib/common/iso8601.c crm_trace("Converted %.4d-%.3d to %.4d-W%.2d-%d", dt->years, dt->days, *y, *w, *d); dt 456 lib/common/iso8601.c crm_duration_as_string(const crm_time_t *dt, char *result) dt 460 lib/common/iso8601.c if (dt->years) { dt 462 lib/common/iso8601.c dt->years, pcmk__plural_s(dt->years)); dt 464 lib/common/iso8601.c if (dt->months) { dt 466 lib/common/iso8601.c dt->months, pcmk__plural_s(dt->months)); dt 468 lib/common/iso8601.c if (dt->days) { dt 470 lib/common/iso8601.c dt->days, pcmk__plural_s(dt->days)); dt 473 lib/common/iso8601.c if (((offset == 0) || (dt->seconds != 0)) dt 474 lib/common/iso8601.c && (dt->seconds > -60) && (dt->seconds < 60)) { dt 476 lib/common/iso8601.c dt->seconds, pcmk__plural_s(dt->seconds)); dt 477 lib/common/iso8601.c } else if (dt->seconds) { dt 481 lib/common/iso8601.c dt->seconds); dt 482 lib/common/iso8601.c crm_time_get_sec(dt->seconds, &h, &m, &s); dt 502 lib/common/iso8601.c const crm_time_t *dt = NULL; dt 513 lib/common/iso8601.c dt = utc; dt 515 lib/common/iso8601.c dt = date_time; dt 518 lib/common/iso8601.c if (!crm_time_is_defined(dt)) { dt 547 lib/common/iso8601.c if (crm_time_get_isoweek(dt, &y, &w, &d)) { dt 555 lib/common/iso8601.c if (crm_time_get_ordinal(dt, &y, &d)) { dt 563 lib/common/iso8601.c if (crm_time_get_gregorian(dt, &y, &m, &d)) { dt 577 lib/common/iso8601.c if (crm_time_get_timeofday(dt, &h, &m, &s)) { dt 582 lib/common/iso8601.c if ((flags & crm_time_log_with_timezone) && (dt->offset != 0)) { dt 583 lib/common/iso8601.c crm_time_get_sec(dt->offset, &h, &m, &s); dt 586 lib/common/iso8601.c ((dt->offset < 0)? '-' : '+'), h, m); dt 766 lib/common/iso8601.c crm_time_t *dt = NULL; dt 781 lib/common/iso8601.c dt = crm_time_new(NULL); dt 790 lib/common/iso8601.c dt = crm_time_new_undefined(); dt 794 lib/common/iso8601.c dt->days = 1; dt 795 lib/common/iso8601.c dt->years = 1970; dt 796 lib/common/iso8601.c crm_time_log(LOG_TRACE, "Unpacked", dt, crm_time_log_date | crm_time_log_timeofday); dt 797 lib/common/iso8601.c return dt; dt 817 lib/common/iso8601.c dt->years = year; dt 818 lib/common/iso8601.c dt->days = get_ordinal_days(year, month, day); dt 820 lib/common/iso8601.c year, dt->days, date_str); dt 836 lib/common/iso8601.c dt->days = day; dt 837 lib/common/iso8601.c dt->years = year; dt 870 lib/common/iso8601.c dt->years = year; dt 871 lib/common/iso8601.c crm_time_add_days(dt, (week - 1) * 7); dt 874 lib/common/iso8601.c crm_time_add_days(dt, 1 - jan1); dt 876 lib/common/iso8601.c crm_time_add_days(dt, 8 - jan1); dt 879 lib/common/iso8601.c crm_time_add_days(dt, day); dt 897 lib/common/iso8601.c if ((time_s != NULL) && (crm_time_parse(time_s, dt) == FALSE)) { dt 901 lib/common/iso8601.c crm_time_log(LOG_TRACE, "Unpacked", dt, crm_time_log_date | crm_time_log_timeofday); dt 902 lib/common/iso8601.c if (crm_time_check(dt) == FALSE) { dt 907 lib/common/iso8601.c return dt; dt 910 lib/common/iso8601.c crm_time_free(dt); dt 1274 lib/common/iso8601.c crm_time_add(const crm_time_t *dt, const crm_time_t *value) dt 1279 lib/common/iso8601.c if ((dt == NULL) || (value == NULL)) { dt 1284 lib/common/iso8601.c answer = pcmk_copy_time(dt); dt 1302 lib/common/iso8601.c crm_time_calculate_duration(const crm_time_t *dt, const crm_time_t *value) dt 1307 lib/common/iso8601.c if ((dt == NULL) || (value == NULL)) { dt 1317 lib/common/iso8601.c answer = crm_get_utc_time(dt); dt 1336 lib/common/iso8601.c crm_time_subtract(const crm_time_t *dt, const crm_time_t *value) dt 1341 lib/common/iso8601.c if ((dt == NULL) || (value == NULL)) { dt 1351 lib/common/iso8601.c answer = pcmk_copy_time(dt); dt 1371 lib/common/iso8601.c crm_time_check(const crm_time_t *dt) dt 1373 lib/common/iso8601.c return (dt != NULL) dt 1374 lib/common/iso8601.c && (dt->days > 0) && (dt->days <= year_days(dt->years)) dt 1375 lib/common/iso8601.c && (dt->seconds >= 0) && (dt->seconds < DAY_SECONDS); dt 1561 lib/common/iso8601.c pcmk__time_hr_convert(pcmk__time_hr_t *target, const crm_time_t *dt) dt 1565 lib/common/iso8601.c if (dt) { dt 1569 lib/common/iso8601.c .years = dt->years, dt 1570 lib/common/iso8601.c .months = dt->months, dt 1571 lib/common/iso8601.c .days = dt->days, dt 1572 lib/common/iso8601.c .seconds = dt->seconds, dt 1573 lib/common/iso8601.c .offset = dt->offset, dt 1574 lib/common/iso8601.c .duration = dt->duration dt 1607 lib/common/iso8601.c crm_time_t dt; dt 1614 lib/common/iso8601.c crm_time_set_timet(&dt, &(tv.tv_sec)); dt 1615 lib/common/iso8601.c hr = pcmk__time_hr_convert(NULL, &dt); dt 1630 lib/common/iso8601.c crm_time_t *dt; dt 1632 lib/common/iso8601.c dt = parse_date(date_time); dt 1633 lib/common/iso8601.c hr_dt = pcmk__time_hr_convert(NULL, dt); dt 1634 lib/common/iso8601.c crm_time_free(dt); dt 1653 lib/common/iso8601.c crm_time_t dt; dt 1658 lib/common/iso8601.c pcmk__time_set_hr_dt(&dt, hr_dt); dt 1659 lib/common/iso8601.c ha_get_tm_time(&tm, &dt); dt 394 maint/gnulib/lib/mktime.c long_int dt = tm_diff (year, yday, hour, min, sec, &tm); dt 395 maint/gnulib/lib/mktime.c if (dt == 0) dt 421 maint/gnulib/lib/mktime.c t1 = t2, t2 = t, t += dt, dst2 = tm.tm_isdst != 0;