a_time            843 lib/common/iso8601.c crm_time_parse(const char *time_str, crm_time_t *a_time)
a_time            851 lib/common/iso8601.c         if (crm_time_parse_sec(time_str, &(a_time->seconds)) == FALSE) {
a_time            865 lib/common/iso8601.c     if (crm_time_parse_offset(offset_s, &(a_time->offset)) == FALSE) {
a_time            868 lib/common/iso8601.c     crm_time_get_sec(a_time->offset, &h, &m, &s);
a_time            870 lib/common/iso8601.c               (a_time->offset < 0)? '-' : '+', h, m);
a_time            872 lib/common/iso8601.c     if (a_time->seconds == DAY_SECONDS) {
a_time            874 lib/common/iso8601.c         a_time->seconds = 0;
a_time            875 lib/common/iso8601.c         crm_time_add_days(a_time, 1);
a_time           1766 lib/common/iso8601.c crm_time_add_seconds(crm_time_t *a_time, int extra)
a_time           1770 lib/common/iso8601.c     pcmk__assert(a_time != NULL);
a_time           1773 lib/common/iso8601.c               extra, days, pcmk__plural_s(days), a_time->seconds);
a_time           1775 lib/common/iso8601.c     a_time->seconds += extra % DAY_SECONDS;
a_time           1778 lib/common/iso8601.c     if (a_time->seconds > DAY_SECONDS) {
a_time           1780 lib/common/iso8601.c         a_time->seconds -= DAY_SECONDS;
a_time           1782 lib/common/iso8601.c     } else if (a_time->seconds < 0) {
a_time           1784 lib/common/iso8601.c         a_time->seconds += DAY_SECONDS;
a_time           1787 lib/common/iso8601.c     crm_time_add_days(a_time, days);
a_time           1799 lib/common/iso8601.c crm_time_add_days(crm_time_t *a_time, int extra)
a_time           1801 lib/common/iso8601.c     pcmk__assert(a_time != NULL);
a_time           1803 lib/common/iso8601.c     crm_trace("Adding %d days to %.4d-%.3d", extra, a_time->years, a_time->days);
a_time           1806 lib/common/iso8601.c         while ((a_time->days + (long long) extra) > ydays(a_time)) {
a_time           1807 lib/common/iso8601.c             if ((a_time->years + 1LL) > INT_MAX) {
a_time           1808 lib/common/iso8601.c                 a_time->days = ydays(a_time); // Clip to latest we can handle
a_time           1811 lib/common/iso8601.c             extra -= ydays(a_time);
a_time           1812 lib/common/iso8601.c             a_time->years++;
a_time           1815 lib/common/iso8601.c         const int min_days = a_time->duration? 0 : 1;
a_time           1817 lib/common/iso8601.c         while ((a_time->days + (long long) extra) < min_days) {
a_time           1818 lib/common/iso8601.c             if ((a_time->years - 1) < 1) {
a_time           1819 lib/common/iso8601.c                 a_time->days = 1; // Clip to earliest we can handle (no BCE)
a_time           1822 lib/common/iso8601.c             a_time->years--;
a_time           1823 lib/common/iso8601.c             extra += ydays(a_time);
a_time           1826 lib/common/iso8601.c     a_time->days += extra;
a_time           1830 lib/common/iso8601.c crm_time_add_months(crm_time_t * a_time, int extra)
a_time           1835 lib/common/iso8601.c     crm_time_get_gregorian(a_time, &y, &m, &d);
a_time           1865 lib/common/iso8601.c     a_time->years = y;
a_time           1866 lib/common/iso8601.c     a_time->days = get_ordinal_days(y, m, d);
a_time           1868 lib/common/iso8601.c     crm_time_get_gregorian(a_time, &y, &m, &d);
a_time           1873 lib/common/iso8601.c crm_time_add_minutes(crm_time_t * a_time, int extra)
a_time           1875 lib/common/iso8601.c     crm_time_add_seconds(a_time, extra * 60);
a_time           1879 lib/common/iso8601.c crm_time_add_hours(crm_time_t * a_time, int extra)
a_time           1881 lib/common/iso8601.c     crm_time_add_seconds(a_time, extra * HOUR_SECONDS);
a_time           1885 lib/common/iso8601.c crm_time_add_weeks(crm_time_t * a_time, int extra)
a_time           1887 lib/common/iso8601.c     crm_time_add_days(a_time, extra * 7);
a_time           1891 lib/common/iso8601.c crm_time_add_years(crm_time_t * a_time, int extra)
a_time           1893 lib/common/iso8601.c     pcmk__assert(a_time != NULL);
a_time           1895 lib/common/iso8601.c     if ((extra > 0) && ((a_time->years + (long long) extra) > INT_MAX)) {
a_time           1896 lib/common/iso8601.c         a_time->years = INT_MAX;
a_time           1897 lib/common/iso8601.c     } else if ((extra < 0) && ((a_time->years + (long long) extra) < 1)) {
a_time           1898 lib/common/iso8601.c         a_time->years = 1; // Clip to earliest we can handle (no BCE)
a_time           1900 lib/common/iso8601.c         a_time->years += extra;