date_s 216 lib/common/iso8601.c char *date_s = crm_time_as_string(date_time, flags); date_s 220 lib/common/iso8601.c prefix ? prefix : "", prefix ? ": " : "", date_s ? date_s : "__invalid_date__"); date_s 224 lib/common/iso8601.c date_s ? date_s : "__invalid_date__"); date_s 226 lib/common/iso8601.c free(date_s); date_s 410 lib/common/iso8601.c char *date_s = NULL; date_s 433 lib/common/iso8601.c date_s = calloc(1, DATE_MAX); date_s 436 lib/common/iso8601.c if (date_s == NULL) { date_s 441 lib/common/iso8601.c offset += snprintf(date_s+offset, DATE_MAX - offset, "%4d year%s ", dt->years, dt->years>1?"s":""); date_s 444 lib/common/iso8601.c offset += snprintf(date_s+offset, DATE_MAX - offset, "%2d month%s ", dt->months, dt->months>1?"s":""); date_s 447 lib/common/iso8601.c offset += snprintf(date_s+offset, DATE_MAX - offset, "%2d day%s ", dt->days, dt->days>1?"s":""); date_s 450 lib/common/iso8601.c offset += snprintf(date_s+offset, DATE_MAX - offset, "%d seconds ( ", dt->seconds); date_s 452 lib/common/iso8601.c offset += snprintf(date_s+offset, DATE_MAX - offset, "%u hour%s ", h, h>1?"s":""); date_s 455 lib/common/iso8601.c offset += snprintf(date_s+offset, DATE_MAX - offset, "%u minute%s ", m, m>1?"s":""); date_s 458 lib/common/iso8601.c offset += snprintf(date_s+offset, DATE_MAX - offset, "%u second%s ", s, s>1?"s":""); date_s 460 lib/common/iso8601.c offset += snprintf(date_s+offset, DATE_MAX - offset, ")"); date_s 466 lib/common/iso8601.c date_s = calloc(1, 34); date_s 467 lib/common/iso8601.c if (date_s == NULL) { date_s 473 lib/common/iso8601.c snprintf(date_s, 32, "%lld", s); /* Durations may not be +ve */ date_s 479 lib/common/iso8601.c snprintf(date_s, 32, "%lld", s); /* Durations may not be +ve */ date_s 487 lib/common/iso8601.c snprintf(date_s, 34, "%u-W%.2u-%u", y, w, d); date_s 495 lib/common/iso8601.c snprintf(date_s, 22, "%u-%.3u", y, d); date_s 503 lib/common/iso8601.c snprintf(date_s, 33, "%.4u-%.2u-%.2u", y, m, d); date_s 538 lib/common/iso8601.c date_s ? date_s : "", (date_s != NULL && time_s != NULL) ? " " : "", date_s 542 lib/common/iso8601.c free(date_s); date_s 1388 lib/common/iso8601.c char nano_s[10], date_s[max+1], nanofmt_s[5] = "%", *tmp_fmt_s; date_s 1431 lib/common/iso8601.c date_len += strftime(&date_s[date_len], max-date_len, tmp_fmt_s, &tm); date_s 1442 lib/common/iso8601.c date_len += snprintf(&date_s[date_len], max-date_len, date_s 1451 lib/common/iso8601.c return (date_len == 0)?NULL:strdup(date_s);