RESTinio

os_posix.ipp
Go to the documentation of this file.
1 inline std::tm
2 make_gmtime( std::time_t t )
3{
4 std::tm res;
5
6 gmtime_r( &t, &res );
7
8 return res;
9}
10
11 inline std::tm
12 make_localtime( std::time_t t )
13{
14 std::tm res;
15
16 localtime_r( &t, &res );
17
18 return res;
19}
make_localtime
std::tm make_localtime(std::time_t t)
Definition: os_posix.ipp:12
make_gmtime
std::tm make_gmtime(std::time_t t)
Definition: os_posix.ipp:2