a_time 715 lib/common/iso8601.c crm_time_parse(const char *time_str, crm_time_t *a_time) a_time 723 lib/common/iso8601.c if (crm_time_parse_sec(time_str, &(a_time->seconds)) == FALSE) { a_time 737 lib/common/iso8601.c if (crm_time_parse_offset(offset_s, &(a_time->offset)) == FALSE) { a_time 740 lib/common/iso8601.c crm_time_get_sec(a_time->offset, &h, &m, &s); a_time 741 lib/common/iso8601.c crm_trace("Got tz: %c%2.d:%.2d", ((a_time->offset < 0)? '-' : '+'), h, m); a_time 743 lib/common/iso8601.c if (a_time->seconds == DAY_SECONDS) { a_time 745 lib/common/iso8601.c a_time->seconds = 0; a_time 746 lib/common/iso8601.c crm_time_add_days(a_time, 1); a_time 1417 lib/common/iso8601.c crm_time_add_seconds(crm_time_t *a_time, int extra) a_time 1422 lib/common/iso8601.c extra, a_time->seconds, DAY_SECONDS); a_time 1423 lib/common/iso8601.c a_time->seconds += extra; a_time 1424 lib/common/iso8601.c days = a_time->seconds / DAY_SECONDS; a_time 1425 lib/common/iso8601.c a_time->seconds %= DAY_SECONDS; a_time 1428 lib/common/iso8601.c if (a_time->seconds < 0) { a_time 1429 lib/common/iso8601.c a_time->seconds += DAY_SECONDS; a_time 1433 lib/common/iso8601.c crm_time_add_days(a_time, days); a_time 1437 lib/common/iso8601.c crm_time_add_days(crm_time_t * a_time, int extra) a_time 1440 lib/common/iso8601.c int ydays = crm_time_leapyear(a_time->years) ? 366 : 365; a_time 1442 lib/common/iso8601.c crm_trace("Adding %d days to %.4d-%.3d", extra, a_time->years, a_time->days); a_time 1444 lib/common/iso8601.c a_time->days += extra; a_time 1445 lib/common/iso8601.c while (a_time->days > ydays) { a_time 1446 lib/common/iso8601.c a_time->years++; a_time 1447 lib/common/iso8601.c a_time->days -= ydays; a_time 1448 lib/common/iso8601.c ydays = crm_time_leapyear(a_time->years) ? 366 : 365; a_time 1451 lib/common/iso8601.c if(a_time->duration) { a_time 1455 lib/common/iso8601.c while (a_time->days < lower_bound) { a_time 1456 lib/common/iso8601.c a_time->years--; a_time 1457 lib/common/iso8601.c a_time->days += crm_time_leapyear(a_time->years) ? 366 : 365; a_time 1462 lib/common/iso8601.c crm_time_add_months(crm_time_t * a_time, int extra) a_time 1467 lib/common/iso8601.c crm_time_get_gregorian(a_time, &y, &m, &d); a_time 1496 lib/common/iso8601.c a_time->years = y; a_time 1497 lib/common/iso8601.c a_time->days = get_ordinal_days(y, m, d); a_time 1499 lib/common/iso8601.c crm_time_get_gregorian(a_time, &y, &m, &d); a_time 1504 lib/common/iso8601.c crm_time_add_minutes(crm_time_t * a_time, int extra) a_time 1506 lib/common/iso8601.c crm_time_add_seconds(a_time, extra * 60); a_time 1510 lib/common/iso8601.c crm_time_add_hours(crm_time_t * a_time, int extra) a_time 1512 lib/common/iso8601.c crm_time_add_seconds(a_time, extra * HOUR_SECONDS); a_time 1516 lib/common/iso8601.c crm_time_add_weeks(crm_time_t * a_time, int extra) a_time 1518 lib/common/iso8601.c crm_time_add_days(a_time, extra * 7); a_time 1522 lib/common/iso8601.c crm_time_add_years(crm_time_t * a_time, int extra) a_time 1524 lib/common/iso8601.c a_time->years += extra; a_time 1720 lib/common/iso8601.c time_t a_time = time(NULL); a_time 1722 lib/common/iso8601.c if (a_time == (time_t) -1) { a_time 1725 lib/common/iso8601.c since_epoch = ctime(&a_time);