MCPcopy Create free account
hub / github.com/git/git / approxidate_careful

Function approxidate_careful

date.c:1413–1429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1411}
1412
1413timestamp_t approxidate_careful(const char *date, int *error_ret)
1414{
1415 struct timeval tv;
1416 timestamp_t timestamp;
1417 int offset;
1418 int dummy = 0;
1419 if (!error_ret)
1420 error_ret = &dummy;
1421
1422 if (!parse_date_basic(date, &timestamp, &offset)) {
1423 *error_ret = 0;
1424 return timestamp;
1425 }
1426
1427 get_time(&tv);
1428 return approxidate_str(date, &tv, error_ret);
1429}
1430
1431int date_overflows(timestamp_t t)
1432{

Callers 4

parse_expiry_dateFunction · 0.85
get_oid_basicFunction · 0.85
LLVMFuzzerTestOneInputFunction · 0.85
parse_force_dateFunction · 0.85

Calls 3

parse_date_basicFunction · 0.85
get_timeFunction · 0.85
approxidate_strFunction · 0.85

Tested by

no test coverage detected