11 const time_t stamp = time_t(timestamp);
15 const auto tm_ptr = std::gmtime(&stamp);
20 if (gmtime_s(&tm, &stamp) != 0)
22 if (gmtime_r(&stamp, &tm) ==
nullptr)
24 return "bad timestamp";
26 constexpr size_t buffer_size = 64;
27 std::string result(buffer_size,
'\0');
29 const size_t size = std::strftime
33 "%Y-%m-%d %H:%M:%S GMT",