a_time 718 lib/common/iso8601.c crm_time_parse(const char *time_str, crm_time_t *a_time) a_time 726 lib/common/iso8601.c if (crm_time_parse_sec(time_str, &(a_time->seconds)) == FALSE) { a_time 740 lib/common/iso8601.c if (crm_time_parse_offset(offset_s, &(a_time->offset)) == FALSE) { a_time 743 lib/common/iso8601.c crm_time_get_sec(a_time->offset, &h, &m, &s); a_time 744 lib/common/iso8601.c crm_trace("Got tz: %c%2.d:%.2d", ((a_time->offset < 0)? '-' : '+'), h, m); a_time 746 lib/common/iso8601.c if (a_time->seconds == DAY_SECONDS) { a_time 748 lib/common/iso8601.c a_time->seconds = 0; a_time 749 lib/common/iso8601.c crm_time_add_days(a_time, 1); a_time 1422 lib/common/iso8601.c crm_time_add_seconds(crm_time_t *a_time, int extra) a_time 1427 lib/common/iso8601.c extra, a_time->seconds, DAY_SECONDS); a_time 1428 lib/common/iso8601.c a_time->seconds += extra; a_time 1429 lib/common/iso8601.c days = a_time->seconds / DAY_SECONDS; a_time 1430 lib/common/iso8601.c a_time->seconds %= DAY_SECONDS; a_time 1433 lib/common/iso8601.c if (a_time->seconds < 0) { a_time 1434 lib/common/iso8601.c a_time->seconds += DAY_SECONDS; a_time 1438 lib/common/iso8601.c crm_time_add_days(a_time, days); a_time 1442 lib/common/iso8601.c crm_time_add_days(crm_time_t * a_time, int extra) a_time 1445 lib/common/iso8601.c int ydays = crm_time_leapyear(a_time->years) ? 366 : 365; a_time 1447 lib/common/iso8601.c crm_trace("Adding %d days to %.4d-%.3d", extra, a_time->years, a_time->days); a_time 1449 lib/common/iso8601.c a_time->days += extra; a_time 1450 lib/common/iso8601.c while (a_time->days > ydays) { a_time 1451 lib/common/iso8601.c a_time->years++; a_time 1452 lib/common/iso8601.c a_time->days -= ydays; a_time 1453 lib/common/iso8601.c ydays = crm_time_leapyear(a_time->years) ? 366 : 365; a_time 1456 lib/common/iso8601.c if(a_time->duration) { a_time 1460 lib/common/iso8601.c while (a_time->days < lower_bound) { a_time 1461 lib/common/iso8601.c a_time->years--; a_time 1462 lib/common/iso8601.c a_time->days += crm_time_leapyear(a_time->years) ? 366 : 365; a_time 1467 lib/common/iso8601.c crm_time_add_months(crm_time_t * a_time, int extra) a_time 1472 lib/common/iso8601.c crm_time_get_gregorian(a_time, &y, &m, &d); a_time 1501 lib/common/iso8601.c a_time->years = y; a_time 1502 lib/common/iso8601.c a_time->days = get_ordinal_days(y, m, d); a_time 1504 lib/common/iso8601.c crm_time_get_gregorian(a_time, &y, &m, &d); a_time 1509 lib/common/iso8601.c crm_time_add_minutes(crm_time_t * a_time, int extra) a_time 1511 lib/common/iso8601.c crm_time_add_seconds(a_time, extra * 60); a_time 1515 lib/common/iso8601.c crm_time_add_hours(crm_time_t * a_time, int extra) a_time 1517 lib/common/iso8601.c crm_time_add_seconds(a_time, extra * HOUR_SECONDS); a_time 1521 lib/common/iso8601.c crm_time_add_weeks(crm_time_t * a_time, int extra) a_time 1523 lib/common/iso8601.c crm_time_add_days(a_time, extra * 7); a_time 1527 lib/common/iso8601.c crm_time_add_years(crm_time_t * a_time, int extra) a_time 1529 lib/common/iso8601.c a_time->years += extra; a_time 1735 lib/common/iso8601.c time_t a_time = time(NULL); a_time 1737 lib/common/iso8601.c if (a_time == (time_t) -1) { a_time 1740 lib/common/iso8601.c since_epoch = ctime(&a_time);