MCPcopy Create free account
hub / github.com/chen3feng/toft / ParseHttpTime

Function ParseHttpTime

net/http/time.cpp:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41bool ParseHttpTime(const char* str, time_t* time)
42{
43 struct tm tm = {};
44 if (HttpDateToTm(str, &tm))
45 {
46 *time = timegm(&tm);
47 return true;
48 }
49 return false;
50}
51
52size_t FormatHttpTime(time_t time, char* str, size_t str_length)
53{

Callers

nothing calls this directly

Calls 1

HttpDateToTmFunction · 0.85

Tested by

no test coverage detected