| 50 | } |
| 51 | |
| 52 | size_t FormatHttpTime(time_t time, char* str, size_t str_length) |
| 53 | { |
| 54 | locale_t c_locale = GetCLocale(); |
| 55 | struct tm tm = {}; |
| 56 | gmtime_r(&time, &tm); |
| 57 | return strftime_l(str, str_length, "%a, %d %b %Y %H:%M:%S %Z", &tm, c_locale); |
| 58 | } |
| 59 | |
| 60 | bool FormatHttpTime(time_t time, std::string* str) |
| 61 | { |