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 79 include/crm/common/iso8601.h crm_time_t *crm_time_calculate_duration(const crm_time_t *dt, dt 86 include/crm/common/iso8601.h int crm_time_get_timeofday(const crm_time_t *dt, uint32_t *h, uint32_t *m, dt 88 include/crm/common/iso8601.h int crm_time_get_timezone(const crm_time_t *dt, uint32_t *h, uint32_t *m); dt 89 include/crm/common/iso8601.h int crm_time_get_gregorian(const crm_time_t *dt, uint32_t *y, uint32_t *m, dt 91 include/crm/common/iso8601.h int crm_time_get_ordinal(const crm_time_t *dt, uint32_t *y, uint32_t *d); dt 92 include/crm/common/iso8601.h int crm_time_get_isoweek(const crm_time_t *dt, uint32_t *y, uint32_t *w, dt 96 include/crm/common/iso8601.h long long crm_time_get_seconds(const crm_time_t *dt); dt 99 include/crm/common/iso8601.h long long crm_time_get_seconds_since_epoch(const crm_time_t *dt); dt 106 include/crm/common/iso8601.h crm_time_t *crm_time_add(const crm_time_t *dt, const crm_time_t *value); dt 107 include/crm/common/iso8601.h crm_time_t *crm_time_subtract(const crm_time_t *dt, const crm_time_t *value); dt 110 include/crm/common/iso8601.h void crm_time_add_seconds(crm_time_t * dt, int value); dt 111 include/crm/common/iso8601.h void crm_time_add_minutes(crm_time_t * dt, int value); dt 112 include/crm/common/iso8601.h void crm_time_add_hours(crm_time_t * dt, int value); dt 113 include/crm/common/iso8601.h void crm_time_add_days(crm_time_t * dt, int value); dt 114 include/crm/common/iso8601.h void crm_time_add_weeks(crm_time_t * dt, int value); dt 115 include/crm/common/iso8601.h void crm_time_add_months(crm_time_t * dt, int value); dt 116 include/crm/common/iso8601.h void crm_time_add_years(crm_time_t * dt, int value); dt 124 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 79 lib/common/iso8601.c crm_get_utc_time(const crm_time_t *dt) dt 83 lib/common/iso8601.c if (dt == NULL) { dt 89 lib/common/iso8601.c utc->years = dt->years; dt 90 lib/common/iso8601.c utc->days = dt->days; dt 91 lib/common/iso8601.c utc->seconds = dt->seconds; dt 94 lib/common/iso8601.c if (dt->offset) { dt 95 lib/common/iso8601.c crm_time_add_seconds(utc, -dt->offset); dt 98 lib/common/iso8601.c utc->months = dt->months; dt 101 lib/common/iso8601.c crm_time_log(LOG_TRACE, "utc-source", dt, dt 150 lib/common/iso8601.c crm_time_free(crm_time_t * dt) dt 152 lib/common/iso8601.c if (dt == NULL) { dt 155 lib/common/iso8601.c free(dt); dt 299 lib/common/iso8601.c crm_time_get_timeofday(const crm_time_t *dt, uint32_t *h, uint32_t *m, dt 302 lib/common/iso8601.c crm_time_get_sec(dt->seconds, h, m, s); dt 307 lib/common/iso8601.c crm_time_get_timezone(const crm_time_t *dt, uint32_t *h, uint32_t *m) dt 311 lib/common/iso8601.c crm_time_get_sec(dt->seconds, h, m, &s); dt 316 lib/common/iso8601.c crm_time_get_seconds(const crm_time_t *dt) dt 322 lib/common/iso8601.c if (dt == NULL) { dt 326 lib/common/iso8601.c utc = crm_get_utc_time(dt); dt 359 lib/common/iso8601.c crm_time_get_seconds_since_epoch(const crm_time_t *dt) dt 361 lib/common/iso8601.c return (dt == NULL)? 0 : (crm_time_get_seconds(dt) - EPOCH_SECONDS); dt 365 lib/common/iso8601.c crm_time_get_gregorian(const crm_time_t *dt, uint32_t *y, uint32_t *m, dt 369 lib/common/iso8601.c int days = dt->days; dt 371 lib/common/iso8601.c if(dt->years != 0) { dt 373 lib/common/iso8601.c int mdays = crm_time_days_in_month(months, dt->years); dt 382 lib/common/iso8601.c } else if (dt->months) { dt 384 lib/common/iso8601.c months = dt->months; dt 390 lib/common/iso8601.c *y = dt->years; dt 393 lib/common/iso8601.c crm_trace("%.4d-%.3d -> %.4d-%.2d-%.2d", dt->years, dt->days, dt->years, months, days); dt 398 lib/common/iso8601.c crm_time_get_ordinal(const crm_time_t *dt, uint32_t *y, uint32_t *d) dt 400 lib/common/iso8601.c *y = dt->years; dt 401 lib/common/iso8601.c *d = dt->days; dt 406 lib/common/iso8601.c crm_time_get_isoweek(const crm_time_t *dt, uint32_t *y, uint32_t *w, dt 414 lib/common/iso8601.c int jan1 = crm_time_january1_weekday(dt->years); dt 417 lib/common/iso8601.c CRM_CHECK(dt->days > 0, return FALSE); dt 420 lib/common/iso8601.c h = dt->days + jan1 - 1; dt 424 lib/common/iso8601.c if (dt->days <= (8 - jan1) && jan1 > 4) { dt 426 lib/common/iso8601.c year_num = dt->years - 1; dt 430 lib/common/iso8601.c year_num = dt->years; dt 434 lib/common/iso8601.c if (year_num == dt->years) { dt 438 lib/common/iso8601.c if ((dmax - dt->days) < correction) { dt 439 lib/common/iso8601.c crm_trace("year++, jan1=%d, i=%d vs. %d", jan1, dmax - dt->days, correction); dt 440 lib/common/iso8601.c year_num = dt->years + 1; dt 446 lib/common/iso8601.c if (year_num == dt->years) { dt 447 lib/common/iso8601.c int j = dt->days + (7 - *d) + (jan1 - 1); dt 457 lib/common/iso8601.c dt->years, dt->days, *y, *w, *d); dt 491 lib/common/iso8601.c crm_duration_as_string(const crm_time_t *dt, int usec, bool show_usec, dt 496 lib/common/iso8601.c CRM_ASSERT(valid_sec_usec(dt->seconds, usec)); dt 498 lib/common/iso8601.c if (dt->years) { dt 500 lib/common/iso8601.c dt->years, pcmk__plural_s(dt->years)); dt 502 lib/common/iso8601.c if (dt->months) { dt 504 lib/common/iso8601.c dt->months, pcmk__plural_s(dt->months)); dt 506 lib/common/iso8601.c if (dt->days) { dt 508 lib/common/iso8601.c dt->days, pcmk__plural_s(dt->days)); dt 512 lib/common/iso8601.c if ((offset == 0) || (dt->seconds != 0) || (show_usec && (usec != 0))) { dt 514 lib/common/iso8601.c sec_usec_as_string(dt->seconds, usec, result, &offset); dt 517 lib/common/iso8601.c dt->seconds); dt 520 lib/common/iso8601.c pcmk__plural_s(dt->seconds)); dt 524 lib/common/iso8601.c if (QB_ABS(dt->seconds) >= 60) { dt 531 lib/common/iso8601.c crm_time_get_sec(dt->seconds, &h, &m, &s); dt 556 lib/common/iso8601.c pcmk__plural_s(dt->seconds)); dt 575 lib/common/iso8601.c time_as_string_common(const crm_time_t *dt, int usec, uint32_t flags, dt 581 lib/common/iso8601.c if (!crm_time_is_defined(dt)) { dt 586 lib/common/iso8601.c CRM_ASSERT(valid_sec_usec(dt->seconds, usec)); dt 593 lib/common/iso8601.c crm_duration_as_string(dt, usec, pcmk_is_set(flags, crm_time_usecs), dt 602 lib/common/iso8601.c seconds = crm_time_get_seconds(dt); dt 604 lib/common/iso8601.c seconds = crm_time_get_seconds_since_epoch(dt); dt 616 lib/common/iso8601.c if ((dt->offset != 0) && !pcmk_is_set(flags, crm_time_log_with_timezone)) { dt 618 lib/common/iso8601.c utc = crm_get_utc_time(dt); dt 619 lib/common/iso8601.c dt = utc; dt 628 lib/common/iso8601.c if (crm_time_get_isoweek(dt, &y, &w, &d)) { dt 637 lib/common/iso8601.c if (crm_time_get_ordinal(dt, &y, &d)) { dt 645 lib/common/iso8601.c if (crm_time_get_gregorian(dt, &y, &m, &d)) { dt 660 lib/common/iso8601.c if (crm_time_get_timeofday(dt, &h, &m, &s)) { dt 672 lib/common/iso8601.c && (dt->offset != 0)) { dt 673 lib/common/iso8601.c crm_time_get_sec(dt->offset, &h, &m, &s); dt 676 lib/common/iso8601.c ((dt->offset < 0)? '-' : '+'), h, m); dt 694 lib/common/iso8601.c crm_time_as_string(const crm_time_t *dt, int flags) dt 699 lib/common/iso8601.c time_as_string_common(dt, 0, flags, result); dt 875 lib/common/iso8601.c crm_time_t *dt = NULL; dt 890 lib/common/iso8601.c dt = crm_time_new(NULL); dt 899 lib/common/iso8601.c dt = crm_time_new_undefined(); dt 903 lib/common/iso8601.c dt->days = 1; dt 904 lib/common/iso8601.c dt->years = 1970; dt 905 lib/common/iso8601.c crm_time_log(LOG_TRACE, "Unpacked", dt, crm_time_log_date | crm_time_log_timeofday); dt 906 lib/common/iso8601.c return dt; dt 926 lib/common/iso8601.c dt->years = year; dt 927 lib/common/iso8601.c dt->days = get_ordinal_days(year, month, day); dt 929 lib/common/iso8601.c year, dt->days, date_str); dt 945 lib/common/iso8601.c dt->days = day; dt 946 lib/common/iso8601.c dt->years = year; dt 979 lib/common/iso8601.c dt->years = year; dt 980 lib/common/iso8601.c crm_time_add_days(dt, (week - 1) * 7); dt 983 lib/common/iso8601.c crm_time_add_days(dt, 1 - jan1); dt 985 lib/common/iso8601.c crm_time_add_days(dt, 8 - jan1); dt 988 lib/common/iso8601.c crm_time_add_days(dt, day); dt 1006 lib/common/iso8601.c if ((time_s != NULL) && (crm_time_parse(time_s, dt) == FALSE)) { dt 1010 lib/common/iso8601.c crm_time_log(LOG_TRACE, "Unpacked", dt, crm_time_log_date | crm_time_log_timeofday); dt 1011 lib/common/iso8601.c if (crm_time_check(dt) == FALSE) { dt 1016 lib/common/iso8601.c return dt; dt 1019 lib/common/iso8601.c crm_time_free(dt); dt 1400 lib/common/iso8601.c crm_time_add(const crm_time_t *dt, const crm_time_t *value) dt 1405 lib/common/iso8601.c if ((dt == NULL) || (value == NULL)) { dt 1410 lib/common/iso8601.c answer = pcmk_copy_time(dt); dt 1428 lib/common/iso8601.c crm_time_calculate_duration(const crm_time_t *dt, const crm_time_t *value) dt 1433 lib/common/iso8601.c if ((dt == NULL) || (value == NULL)) { dt 1443 lib/common/iso8601.c answer = crm_get_utc_time(dt); dt 1462 lib/common/iso8601.c crm_time_subtract(const crm_time_t *dt, const crm_time_t *value) dt 1467 lib/common/iso8601.c if ((dt == NULL) || (value == NULL)) { dt 1477 lib/common/iso8601.c answer = pcmk_copy_time(dt); dt 1497 lib/common/iso8601.c crm_time_check(const crm_time_t *dt) dt 1499 lib/common/iso8601.c return (dt != NULL) dt 1500 lib/common/iso8601.c && (dt->days > 0) && (dt->days <= year_days(dt->years)) dt 1501 lib/common/iso8601.c && (dt->seconds >= 0) && (dt->seconds < DAY_SECONDS); dt 1688 lib/common/iso8601.c pcmk__time_hr_convert(pcmk__time_hr_t *target, const crm_time_t *dt) dt 1692 lib/common/iso8601.c if (dt) { dt 1696 lib/common/iso8601.c .years = dt->years, dt 1697 lib/common/iso8601.c .months = dt->months, dt 1698 lib/common/iso8601.c .days = dt->days, dt 1699 lib/common/iso8601.c .seconds = dt->seconds, dt 1700 lib/common/iso8601.c .offset = dt->offset, dt 1701 lib/common/iso8601.c .duration = dt->duration dt 1734 lib/common/iso8601.c crm_time_t dt; dt 1741 lib/common/iso8601.c crm_time_set_timet(&dt, &(tv.tv_sec)); dt 1742 lib/common/iso8601.c hr = pcmk__time_hr_convert(NULL, &dt); dt 1757 lib/common/iso8601.c crm_time_t *dt; dt 1759 lib/common/iso8601.c dt = parse_date(date_time); dt 1760 lib/common/iso8601.c hr_dt = pcmk__time_hr_convert(NULL, dt); dt 1761 lib/common/iso8601.c crm_time_free(dt); dt 1780 lib/common/iso8601.c crm_time_t dt; dt 1785 lib/common/iso8601.c pcmk__time_set_hr_dt(&dt, hr_dt); dt 1786 lib/common/iso8601.c ha_get_tm_time(&tm, &dt); dt 1871 lib/common/iso8601.c crm_time_t dt; dt 1873 lib/common/iso8601.c crm_time_set_timet(&dt, &epoch_time); dt 1874 lib/common/iso8601.c result = crm_time_as_string(&dt, flags); dt 1900 lib/common/iso8601.c crm_time_t dt; dt 1908 lib/common/iso8601.c crm_time_set_timet(&dt, &ts->tv_sec); dt 1909 lib/common/iso8601.c time_as_string_common(&dt, ts->tv_nsec / QB_TIME_NS_IN_USEC, flags, result); 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;