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                 82 lib/common/iso8601.c crm_get_utc_time(const crm_time_t *dt)
dt                 86 lib/common/iso8601.c     if (dt == NULL) {
dt                 92 lib/common/iso8601.c     utc->years = dt->years;
dt                 93 lib/common/iso8601.c     utc->days = dt->days;
dt                 94 lib/common/iso8601.c     utc->seconds = dt->seconds;
dt                 97 lib/common/iso8601.c     if (dt->offset) {
dt                 98 lib/common/iso8601.c         crm_time_add_seconds(utc, -dt->offset);
dt                101 lib/common/iso8601.c         utc->months = dt->months;
dt                104 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                314 lib/common/iso8601.c crm_time_get_timeofday(const crm_time_t *dt, uint32_t *h, uint32_t *m,
dt                317 lib/common/iso8601.c     crm_time_get_sec(dt->seconds, h, m, s);
dt                322 lib/common/iso8601.c crm_time_get_timezone(const crm_time_t *dt, uint32_t *h, uint32_t *m)
dt                326 lib/common/iso8601.c     crm_time_get_sec(dt->seconds, h, m, &s);
dt                331 lib/common/iso8601.c crm_time_get_seconds(const crm_time_t *dt)
dt                337 lib/common/iso8601.c     if (dt == NULL) {
dt                341 lib/common/iso8601.c     utc = crm_get_utc_time(dt);
dt                374 lib/common/iso8601.c crm_time_get_seconds_since_epoch(const crm_time_t *dt)
dt                376 lib/common/iso8601.c     return (dt == NULL)? 0 : (crm_time_get_seconds(dt) - EPOCH_SECONDS);
dt                380 lib/common/iso8601.c crm_time_get_gregorian(const crm_time_t *dt, uint32_t *y, uint32_t *m,
dt                384 lib/common/iso8601.c     int days = dt->days;
dt                386 lib/common/iso8601.c     if(dt->years != 0) {
dt                388 lib/common/iso8601.c             int mdays = crm_time_days_in_month(months, dt->years);
dt                397 lib/common/iso8601.c     } else if (dt->months) {
dt                399 lib/common/iso8601.c         months = dt->months;
dt                405 lib/common/iso8601.c     *y = dt->years;
dt                408 lib/common/iso8601.c     crm_trace("%.4d-%.3d -> %.4d-%.2d-%.2d", dt->years, dt->days, dt->years, months, days);
dt                413 lib/common/iso8601.c crm_time_get_ordinal(const crm_time_t *dt, uint32_t *y, uint32_t *d)
dt                415 lib/common/iso8601.c     *y = dt->years;
dt                416 lib/common/iso8601.c     *d = dt->days;
dt                421 lib/common/iso8601.c crm_time_get_isoweek(const crm_time_t *dt, uint32_t *y, uint32_t *w,
dt                429 lib/common/iso8601.c     int jan1 = crm_time_january1_weekday(dt->years);
dt                432 lib/common/iso8601.c     CRM_CHECK(dt->days > 0, return FALSE);
dt                435 lib/common/iso8601.c     h = dt->days + jan1 - 1;
dt                439 lib/common/iso8601.c     if (dt->days <= (8 - jan1) && jan1 > 4) {
dt                441 lib/common/iso8601.c         year_num = dt->years - 1;
dt                445 lib/common/iso8601.c         year_num = dt->years;
dt                449 lib/common/iso8601.c     if (year_num == dt->years) {
dt                453 lib/common/iso8601.c         if ((dmax - dt->days) < correction) {
dt                454 lib/common/iso8601.c             crm_trace("year++, jan1=%d, i=%d vs. %d", jan1, dmax - dt->days, correction);
dt                455 lib/common/iso8601.c             year_num = dt->years + 1;
dt                461 lib/common/iso8601.c     if (year_num == dt->years) {
dt                462 lib/common/iso8601.c         int j = dt->days + (7 - *d) + (jan1 - 1);
dt                472 lib/common/iso8601.c               dt->years, dt->days, *y, *w, *d);
dt                506 lib/common/iso8601.c crm_duration_as_string(const crm_time_t *dt, int usec, bool show_usec,
dt                511 lib/common/iso8601.c     pcmk__assert(valid_sec_usec(dt->seconds, usec));
dt                513 lib/common/iso8601.c     if (dt->years) {
dt                515 lib/common/iso8601.c                            dt->years, pcmk__plural_s(dt->years));
dt                517 lib/common/iso8601.c     if (dt->months) {
dt                519 lib/common/iso8601.c                            dt->months, pcmk__plural_s(dt->months));
dt                521 lib/common/iso8601.c     if (dt->days) {
dt                523 lib/common/iso8601.c                            dt->days, pcmk__plural_s(dt->days));
dt                527 lib/common/iso8601.c     if ((offset == 0) || (dt->seconds != 0) || (show_usec && (usec != 0))) {
dt                529 lib/common/iso8601.c             sec_usec_as_string(dt->seconds, usec, result, &offset);
dt                532 lib/common/iso8601.c                                dt->seconds);
dt                535 lib/common/iso8601.c                            pcmk__plural_s(dt->seconds));
dt                539 lib/common/iso8601.c     if (QB_ABS(dt->seconds) >= 60) {
dt                546 lib/common/iso8601.c         crm_time_get_sec(dt->seconds, &h, &m, &s);
dt                571 lib/common/iso8601.c                                pcmk__plural_s(dt->seconds));
dt                590 lib/common/iso8601.c time_as_string_common(const crm_time_t *dt, int usec, uint32_t flags,
dt                596 lib/common/iso8601.c     if (!crm_time_is_defined(dt)) {
dt                601 lib/common/iso8601.c     pcmk__assert(valid_sec_usec(dt->seconds, usec));
dt                608 lib/common/iso8601.c         crm_duration_as_string(dt, usec, pcmk_is_set(flags, crm_time_usecs),
dt                617 lib/common/iso8601.c             seconds = crm_time_get_seconds(dt);
dt                619 lib/common/iso8601.c             seconds = crm_time_get_seconds_since_epoch(dt);
dt                631 lib/common/iso8601.c     if ((dt->offset != 0) && !pcmk_is_set(flags, crm_time_log_with_timezone)) {
dt                633 lib/common/iso8601.c         utc = crm_get_utc_time(dt);
dt                634 lib/common/iso8601.c         dt = utc;
dt                645 lib/common/iso8601.c             if (crm_time_get_isoweek(dt, &y, &w, &d)) {
dt                655 lib/common/iso8601.c             if (crm_time_get_ordinal(dt, &y, &d)) {
dt                665 lib/common/iso8601.c             if (crm_time_get_gregorian(dt, &y, &m, &d)) {
dt                680 lib/common/iso8601.c         if (crm_time_get_timeofday(dt, &h, &m, &s)) {
dt                692 lib/common/iso8601.c             && (dt->offset != 0)) {
dt                693 lib/common/iso8601.c             crm_time_get_sec(dt->offset, &h, &m, &s);
dt                696 lib/common/iso8601.c                                ((dt->offset < 0)? '-' : '+'), h, m);
dt                714 lib/common/iso8601.c crm_time_as_string(const crm_time_t *dt, int flags)
dt                718 lib/common/iso8601.c     time_as_string_common(dt, 0, flags, result);
dt                893 lib/common/iso8601.c     crm_time_t *dt = NULL;
dt                910 lib/common/iso8601.c         dt = crm_time_new(NULL);
dt                919 lib/common/iso8601.c     dt = crm_time_new_undefined();
dt                925 lib/common/iso8601.c         dt->days = 1;
dt                926 lib/common/iso8601.c         dt->years = 1970;
dt                927 lib/common/iso8601.c         crm_time_log(LOG_TRACE, "Unpacked", dt, crm_time_log_date | crm_time_log_timeofday);
dt                928 lib/common/iso8601.c         return dt;
dt                957 lib/common/iso8601.c             dt->years = year;
dt                958 lib/common/iso8601.c             dt->days = get_ordinal_days(year, month, day);
dt                960 lib/common/iso8601.c                       "from date string '%s'", year, dt->days, date_str);
dt                982 lib/common/iso8601.c         dt->days = day;
dt                983 lib/common/iso8601.c         dt->years = year;
dt               1020 lib/common/iso8601.c             dt->years = year;
dt               1021 lib/common/iso8601.c             crm_time_add_days(dt, (week - 1) * 7);
dt               1024 lib/common/iso8601.c                 crm_time_add_days(dt, 1 - jan1);
dt               1026 lib/common/iso8601.c                 crm_time_add_days(dt, 8 - jan1);
dt               1029 lib/common/iso8601.c             crm_time_add_days(dt, day);
dt               1047 lib/common/iso8601.c     if ((time_s != NULL) && (crm_time_parse(time_s, dt) == FALSE)) {
dt               1051 lib/common/iso8601.c     crm_time_log(LOG_TRACE, "Unpacked", dt, crm_time_log_date | crm_time_log_timeofday);
dt               1052 lib/common/iso8601.c     if (crm_time_check(dt) == FALSE) {
dt               1057 lib/common/iso8601.c     return dt;
dt               1060 lib/common/iso8601.c     crm_time_free(dt);
dt               1497 lib/common/iso8601.c crm_time_add(const crm_time_t *dt, const crm_time_t *value)
dt               1502 lib/common/iso8601.c     if ((dt == NULL) || (value == NULL)) {
dt               1507 lib/common/iso8601.c     answer = pcmk_copy_time(dt);
dt               1646 lib/common/iso8601.c crm_time_calculate_duration(const crm_time_t *dt, const crm_time_t *value)
dt               1651 lib/common/iso8601.c     if ((dt == NULL) || (value == NULL)) {
dt               1661 lib/common/iso8601.c     answer = crm_get_utc_time(dt);
dt               1680 lib/common/iso8601.c crm_time_subtract(const crm_time_t *dt, const crm_time_t *value)
dt               1685 lib/common/iso8601.c     if ((dt == NULL) || (value == NULL)) {
dt               1695 lib/common/iso8601.c     answer = pcmk_copy_time(dt);
dt               1715 lib/common/iso8601.c crm_time_check(const crm_time_t *dt)
dt               1717 lib/common/iso8601.c     return (dt != NULL)
dt               1718 lib/common/iso8601.c            && (dt->days > 0) && (dt->days <= year_days(dt->years))
dt               1719 lib/common/iso8601.c            && (dt->seconds >= 0) && (dt->seconds < DAY_SECONDS);
dt               1931 lib/common/iso8601.c pcmk__time_hr_convert(pcmk__time_hr_t *target, const crm_time_t *dt)
dt               1935 lib/common/iso8601.c     if (dt) {
dt               1942 lib/common/iso8601.c             .years = dt->years,
dt               1943 lib/common/iso8601.c             .months = dt->months,
dt               1944 lib/common/iso8601.c             .days = dt->days,
dt               1945 lib/common/iso8601.c             .seconds = dt->seconds,
dt               1946 lib/common/iso8601.c             .offset = dt->offset,
dt               1947 lib/common/iso8601.c             .duration = dt->duration
dt               1980 lib/common/iso8601.c     crm_time_t dt;
dt               1987 lib/common/iso8601.c     crm_time_set_timet(&dt, &(tv.tv_sec));
dt               1988 lib/common/iso8601.c     hr = pcmk__time_hr_convert(NULL, &dt);
dt               2003 lib/common/iso8601.c         crm_time_t *dt;
dt               2005 lib/common/iso8601.c         dt = parse_date(date_time);
dt               2006 lib/common/iso8601.c         hr_dt = pcmk__time_hr_convert(NULL, dt);
dt               2007 lib/common/iso8601.c         crm_time_free(dt);
dt               2039 lib/common/iso8601.c     crm_time_t dt = { 0, };
dt               2044 lib/common/iso8601.c     pcmk__time_set_hr_dt(&dt, hr_dt);
dt               2045 lib/common/iso8601.c     ha_get_tm_time(&tm, &dt);
dt               2154 lib/common/iso8601.c         crm_time_t dt;
dt               2156 lib/common/iso8601.c         crm_time_set_timet(&dt, &epoch_time);
dt               2157 lib/common/iso8601.c         return crm_time_as_string(&dt, flags);
dt               2182 lib/common/iso8601.c     crm_time_t dt;
dt               2189 lib/common/iso8601.c     crm_time_set_timet(&dt, &ts->tv_sec);
dt               2190 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;