| 39 | } |
| 40 | |
| 41 | bool 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 | |
| 52 | size_t FormatHttpTime(time_t time, char* str, size_t str_length) |
| 53 | { |
nothing calls this directly
no test coverage detected