Functions | |
| std::tm | to_local_time (std::time_t time_value) |
| Convert a std::time_t value to a local std::tm structure. | |
| std::tm | to_utc_time (std::time_t time_value) |
| Convert a std::time_t value to a UTC std::tm structure. | |
| long | get_utc_offset_seconds (std::time_t time_value) |
| Get the UTC offset in seconds for a given time_t value. | |
| std::string | format_utc_offset (long offset_seconds) |
| Format a UTC offset in seconds as a string (+HH:MM or -HH:MM). | |
| uint16_t | to_little_endian_u16 (uint16_t value) |
| Convert a 16-bit unsigned integer to little-endian byte order. | |
|
inline |
Format a UTC offset in seconds as a string (+HH:MM or -HH:MM).
| offset_seconds | The offset in seconds. |
|
inline |
Get the UTC offset in seconds for a given time_t value.
| time_value | The time value to check. |
|
inline |
Convert a 16-bit unsigned integer to little-endian byte order.
| value | The value to convert. |
|
inline |
Convert a std::time_t value to a local std::tm structure.
| time_value | The time value to convert. |
|
inline |
Convert a std::time_t value to a UTC std::tm structure.
| time_value | The time value to convert. |