17 ts_t cet_ts =
to_ts(2024, Month::JUN, 21, 12, 0, 0);
21 ts_t eet_ts =
to_ts(2024, Month::JUN, 21, 12, 0, 0);
24 std::cout <<
"CET time: " <<
to_iso8601(cet_ts) <<
'\n';
25 std::cout <<
"GMT from CET: " <<
to_iso8601(gmt_from_cet) <<
'\n';
27 std::cout <<
"EET time: " <<
to_iso8601(eet_ts) <<
'\n';
28 std::cout <<
"GMT from EET: " <<
to_iso8601(gmt_from_eet) <<
'\n';
30 std::cout <<
"Press Enter to exit..." << std::endl;
36 std::cout <<
"time_zone_conversions.hpp requires Windows." << std::endl;
const ts_t eet_to_gmt(ts_t eet)
Convert Eastern European Time to Greenwich Mean Time.
const ts_t cet_to_gmt(ts_t cet)
Convert Central European Time to Greenwich Mean Time.
TIME_SHIELD_CONSTEXPR ts_t to_ts(year_t year, int month, int day)
Alias for to_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 CET/EET timestamps to GMT.