Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gmtime.cpp « base - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2dc63ab571f0f01136ee4bfa37f952255164f68f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "base/gmtime.hpp"

#include "std/target_os.hpp"

namespace my
{
std::tm GmTime(time_t const time)
{
  std::tm result{};
#ifndef OMIM_OS_WINDOWS
  gmtime_r(&time, &result);
#else
  gmtime_s(&result, &time);
#endif
  return result;
}
}  // namespace my