28#ifndef WEBSOCKETPP_COMMON_TIME_HPP
29#define WEBSOCKETPP_COMMON_TIME_HPP
41inline std::tm localtime(std::time_t
const & time) {
43#if (defined(__MINGW32__) || defined(__MINGW64__))
44 memcpy(&tm_snapshot, ::localtime(&time),
sizeof(std::tm));
45#elif (defined(WIN32) || defined(_WIN32) || defined(__WIN32__))
46 localtime_s(&tm_snapshot, &time);
48 localtime_r(&time, &tm_snapshot);
Namespace for the WebSocket++ project.