|
ORE Studio 0.0.4
|
Cross-platform time utilities. More...
#include <time_utils.hpp>

Static Public Member Functions | |
| static std::tm * | gmtime_safe (const std::time_t *time, std::tm *result) |
| Converts time_t to UTC tm struct (cross-platform). | |
| static std::tm * | localtime_safe (const std::time_t *time, std::tm *result) |
| Converts time_t to local tm struct (cross-platform). | |
Cross-platform time utilities.
|
static |
Converts time_t to UTC tm struct (cross-platform).
This is a cross-platform wrapper around gmtime_r (POSIX) and gmtime_s (Windows).
| time | The time_t value to convert. |
| result | Pointer to tm struct to store the result. |

|
static |
Converts time_t to local tm struct (cross-platform).
This is a cross-platform wrapper around localtime_r (POSIX) and localtime_s (Windows).
| time | The time_t value to convert. |
| result | Pointer to tm struct to store the result. |
