std::chrono::tzdb(3)
π NAME π
std::chrono::tzdb β std::chrono::tzdb (yes bestie, thatβs the std::chrono::tzdb(3) page from the C++ Standard Libary π«Ά).
β¨ Synopsis β¨
Defined in header <chrono>
struct tzdb; (since C++20)
Okay so the class tzdb represents a copy of the IANA time zone database. The vibe is strictly read-only: users cannot construct a tzdb, and can only obtain read-only access to one via the free functions std::chrono::get_tzdb_list and std::chrono::get_tzdb. Periodt. π
π§Ί Member objects π§Ί
versionβ astd::stringthat contains the version of the database.zonesβ a sortedstd::vector<std::chrono::time_zone>containing description of time zones.linksβ a sortedstd::vector<std::chrono::time_zone_link>containing description of alternative names of time zones (links).leap_secondsβ a sortedstd::vector<std::chrono::leap_second>containing description of leap seconds.
π« Member functions π«
locate_zoneβ locate a time zone with the given name (public member function).current_zoneβ return the local time zone (public member function).
From cppreference.com, dated 2024.06.10, manual page std::chrono::tzdb(3) β stay iconic, bestie π¦β¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms