a_time 828 lib/common/iso8601.c crm_time_parse(const char *time_str, crm_time_t *a_time) a_time 836 lib/common/iso8601.c if (crm_time_parse_sec(time_str, &(a_time->seconds)) == FALSE) { a_time 850 lib/common/iso8601.c if (crm_time_parse_offset(offset_s, &(a_time->offset)) == FALSE) { a_time 853 lib/common/iso8601.c crm_time_get_sec(a_time->offset, &h, &m, &s); a_time 855 lib/common/iso8601.c (a_time->offset < 0)? '-' : '+', h, m); a_time 857 lib/common/iso8601.c if (a_time->seconds == DAY_SECONDS) { a_time 859 lib/common/iso8601.c a_time->seconds = 0; a_time 860 lib/common/iso8601.c crm_time_add_days(a_time, 1); a_time 1719 lib/common/iso8601.c crm_time_add_seconds(crm_time_t *a_time, int extra) a_time 1724 lib/common/iso8601.c extra, a_time->seconds, DAY_SECONDS); a_time 1725 lib/common/iso8601.c a_time->seconds += extra; a_time 1726 lib/common/iso8601.c days = a_time->seconds / DAY_SECONDS; a_time 1727 lib/common/iso8601.c a_time->seconds %= DAY_SECONDS; a_time 1730 lib/common/iso8601.c if (a_time->seconds < 0) { a_time 1731 lib/common/iso8601.c a_time->seconds += DAY_SECONDS; a_time 1735 lib/common/iso8601.c crm_time_add_days(a_time, days); a_time 1739 lib/common/iso8601.c crm_time_add_days(crm_time_t * a_time, int extra) a_time 1742 lib/common/iso8601.c int ydays = crm_time_leapyear(a_time->years) ? 366 : 365; a_time 1744 lib/common/iso8601.c crm_trace("Adding %d days to %.4d-%.3d", extra, a_time->years, a_time->days); a_time 1746 lib/common/iso8601.c a_time->days += extra; a_time 1747 lib/common/iso8601.c while (a_time->days > ydays) { a_time 1748 lib/common/iso8601.c a_time->years++; a_time 1749 lib/common/iso8601.c a_time->days -= ydays; a_time 1750 lib/common/iso8601.c ydays = crm_time_leapyear(a_time->years) ? 366 : 365; a_time 1753 lib/common/iso8601.c if(a_time->duration) { a_time 1757 lib/common/iso8601.c while (a_time->days < lower_bound) { a_time 1758 lib/common/iso8601.c a_time->years--; a_time 1759 lib/common/iso8601.c a_time->days += crm_time_leapyear(a_time->years) ? 366 : 365; a_time 1764 lib/common/iso8601.c crm_time_add_months(crm_time_t * a_time, int extra) a_time 1769 lib/common/iso8601.c crm_time_get_gregorian(a_time, &y, &m, &d); a_time 1799 lib/common/iso8601.c a_time->years = y; a_time 1800 lib/common/iso8601.c a_time->days = get_ordinal_days(y, m, d); a_time 1802 lib/common/iso8601.c crm_time_get_gregorian(a_time, &y, &m, &d); a_time 1807 lib/common/iso8601.c crm_time_add_minutes(crm_time_t * a_time, int extra) a_time 1809 lib/common/iso8601.c crm_time_add_seconds(a_time, extra * 60); a_time 1813 lib/common/iso8601.c crm_time_add_hours(crm_time_t * a_time, int extra) a_time 1815 lib/common/iso8601.c crm_time_add_seconds(a_time, extra * HOUR_SECONDS); a_time 1819 lib/common/iso8601.c crm_time_add_weeks(crm_time_t * a_time, int extra) a_time 1821 lib/common/iso8601.c crm_time_add_days(a_time, extra * 7); a_time 1825 lib/common/iso8601.c crm_time_add_years(crm_time_t * a_time, int extra) a_time 1827 lib/common/iso8601.c a_time->years += extra;