23 std::cout <<
"GMT: " <<
to_iso8601(gmt) <<
'\n';
24 std::cout <<
"IST from GMT: " <<
to_iso8601(ist) <<
'\n';
25 std::cout <<
"Kyiv from GMT: " <<
to_iso8601(kyiv) <<
'\n';
26 std::cout <<
"MYT from IST local: " <<
to_iso8601(myt_local) <<
'\n';
ts_t gmt_to_kyiv(ts_t gmt)
Convert GMT to Kyiv civil time using the EET/EEST rules.
ts_t gmt_to_ist(ts_t gmt)
ts_t convert_time_zone(ts_t local, TimeZone from, TimeZone to)
Convert a timestamp between two supported local civil time zones.
TIME_SHIELD_CONSTEXPR ts_t to_timestamp(T1 year, T2 month, T2 day, T2 hour=0, T2 min=0, T2 sec=0)
Converts a date and time to a timestamp.
int64_t ts_t
Unix timestamp in seconds since 1970‑01‑01T00:00:00Z.
Main namespace for the Time Shield library.
Helpers for converting supported regional time zones and UTC.