|
Time Shield Library
C++ library for working with time
|
| ts_t | time_shield::zone_to_gmt (ts_t local, TimeZone zone) |
| Convert supported local civil time to GMT (UTC). | |
| TIME_SHIELD_CONSTEXPR ts_t | time_shield::to_utc (ts_t local, tz_t utc_offset) noexcept |
| Convert local timestamp (seconds) to UTC using UTC offset. | |
| TIME_SHIELD_CONSTEXPR ts_t | time_shield::to_local (ts_t utc, tz_t utc_offset) noexcept |
| Convert UTC timestamp (seconds) to local time using UTC offset. | |
| TIME_SHIELD_CONSTEXPR ts_ms_t | time_shield::to_utc_ms (ts_ms_t local_ms, tz_t utc_offset) noexcept |
| Convert local timestamp (milliseconds) to UTC using UTC offset. | |
| TIME_SHIELD_CONSTEXPR ts_ms_t | time_shield::to_local_ms (ts_ms_t utc_ms, tz_t utc_offset) noexcept |
| Convert UTC timestamp (milliseconds) to local time using UTC offset. | |
| TIME_SHIELD_CONSTEXPR tz_t | time_shield::utc_offset_of (const TimeZoneStruct &tz) noexcept |
| Extract numeric UTC offset (in seconds) from TimeZoneStruct. |
Convert UTC timestamp (seconds) to local time using UTC offset.
| utc | UTC timestamp in seconds. |
| utc_offset | UTC offset in seconds (e.g. CET=+3600, MSK=+10800, EST=-18000). |
utc equals ERROR_TIMESTAMP, returns ERROR_TIMESTAMP. Definition at line 43 of file time_zone_offset.hpp.
|
inlinenoexcept |
Convert UTC timestamp (milliseconds) to local time using UTC offset.
| utc_ms | UTC timestamp in milliseconds. |
| utc_offset | UTC offset in seconds (will be converted to milliseconds). |
utc_ms equals ERROR_TIMESTAMP, returns ERROR_TIMESTAMP. Definition at line 61 of file time_zone_offset.hpp.
Convert local timestamp (seconds) to UTC using UTC offset.
| local | Local timestamp in seconds. |
| utc_offset | UTC offset in seconds (e.g. CET=+3600, MSK=+10800, EST=-18000). |
local equals ERROR_TIMESTAMP, returns ERROR_TIMESTAMP. Definition at line 34 of file time_zone_offset.hpp.
|
inlinenoexcept |
Convert local timestamp (milliseconds) to UTC using UTC offset.
| local_ms | Local timestamp in milliseconds. |
| utc_offset | UTC offset in seconds (will be converted to milliseconds). |
local_ms equals ERROR_TIMESTAMP, returns ERROR_TIMESTAMP. Definition at line 52 of file time_zone_offset.hpp.
|
inlinenoexcept |
Extract numeric UTC offset (in seconds) from TimeZoneStruct.
| tz | Time zone descriptor. |
Definition at line 69 of file time_zone_offset.hpp.
Convert supported local civil time to GMT (UTC).
| local | Timestamp in seconds in the source time zone. |
| zone | Source time zone. |
Definition at line 394 of file time_zone_conversions.hpp.