geocore/base/gmtime.cpp
2019-09-16 17:54:22 +03:00

12 lines
170 B
C++

#include "base/gmtime.hpp"
namespace base
{
std::tm GmTime(time_t const time)
{
std::tm result{};
gmtime_r(&time, &result);
return result;
}
} // namespace base