Time Shield Library
C++ library for working with time
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
Time Zone Conversions

Helpers for converting regional time zones to GMT. More...

Topics

 Time zone conversion helpers
 

Files

file  time_zone_conversions.hpp
 Helpers for converting CET/EET timestamps to GMT.
 

Detailed Description

Helpers for converting regional time zones to GMT.

These functions convert Central and Eastern European Time to Greenwich Mean Time. Daylight saving time rules before and after 2002 are taken into account, so conversions are accurate for legacy timestamps as well.

Example Usage:

ts_t cet_ts = time_shield::to_ts(2024, Month::JUN, 21, 12, 0, 0);
ts_t gmt_ts = time_shield::cet_to_gmt(cet_ts);
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.