a_time 826 lib/common/iso8601.c crm_time_parse(const char *time_str, crm_time_t *a_time) a_time 834 lib/common/iso8601.c if (crm_time_parse_sec(time_str, &(a_time->seconds)) == FALSE) { a_time 848 lib/common/iso8601.c if (crm_time_parse_offset(offset_s, &(a_time->offset)) == FALSE) { a_time 851 lib/common/iso8601.c crm_time_get_sec(a_time->offset, &h, &m, &s); a_time 853 lib/common/iso8601.c (a_time->offset < 0)? '-' : '+', h, m); a_time 855 lib/common/iso8601.c if (a_time->seconds == DAY_SECONDS) { a_time 857 lib/common/iso8601.c a_time->seconds = 0; a_time 858 lib/common/iso8601.c crm_time_add_days(a_time, 1); a_time 1548 lib/common/iso8601.c crm_time_add_seconds(crm_time_t *a_time, int extra) a_time 1553 lib/common/iso8601.c extra, a_time->seconds, DAY_SECONDS); a_time 1554 lib/common/iso8601.c a_time->seconds += extra; a_time 1555 lib/common/iso8601.c days = a_time->seconds / DAY_SECONDS; a_time 1556 lib/common/iso8601.c a_time->seconds %= DAY_SECONDS; a_time 1559 lib/common/iso8601.c if (a_time->seconds < 0) { a_time 1560 lib/common/iso8601.c a_time->seconds += DAY_SECONDS; a_time 1564 lib/common/iso8601.c crm_time_add_days(a_time, days); a_time 1568 lib/common/iso8601.c crm_time_add_days(crm_time_t * a_time, int extra) a_time 1571 lib/common/iso8601.c int ydays = crm_time_leapyear(a_time->years) ? 366 : 365; a_time 1573 lib/common/iso8601.c crm_trace("Adding %d days to %.4d-%.3d", extra, a_time->years, a_time->days); a_time 1575 lib/common/iso8601.c a_time->days += extra; a_time 1576 lib/common/iso8601.c while (a_time->days > ydays) { a_time 1577 lib/common/iso8601.c a_time->years++; a_time 1578 lib/common/iso8601.c a_time->days -= ydays; a_time 1579 lib/common/iso8601.c ydays = crm_time_leapyear(a_time->years) ? 366 : 365; a_time 1582 lib/common/iso8601.c if(a_time->duration) { a_time 1586 lib/common/iso8601.c while (a_time->days < lower_bound) { a_time 1587 lib/common/iso8601.c a_time->years--; a_time 1588 lib/common/iso8601.c a_time->days += crm_time_leapyear(a_time->years) ? 366 : 365; a_time 1593 lib/common/iso8601.c crm_time_add_months(crm_time_t * a_time, int extra) a_time 1598 lib/common/iso8601.c crm_time_get_gregorian(a_time, &y, &m, &d); a_time 1628 lib/common/iso8601.c a_time->years = y; a_time 1629 lib/common/iso8601.c a_time->days = get_ordinal_days(y, m, d); a_time 1631 lib/common/iso8601.c crm_time_get_gregorian(a_time, &y, &m, &d); a_time 1636 lib/common/iso8601.c crm_time_add_minutes(crm_time_t * a_time, int extra) a_time 1638 lib/common/iso8601.c crm_time_add_seconds(a_time, extra * 60); a_time 1642 lib/common/iso8601.c crm_time_add_hours(crm_time_t * a_time, int extra) a_time 1644 lib/common/iso8601.c crm_time_add_seconds(a_time, extra * HOUR_SECONDS); a_time 1648 lib/common/iso8601.c crm_time_add_weeks(crm_time_t * a_time, int extra) a_time 1650 lib/common/iso8601.c crm_time_add_days(a_time, extra * 7); a_time 1654 lib/common/iso8601.c crm_time_add_years(crm_time_t * a_time, int extra) a_time 1656 lib/common/iso8601.c a_time->years += extra;