std::chrono::tzdb(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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 β€” a std::string that contains the version of the database.
  • zones β€” a sorted std::vector<std::chrono::time_zone> containing description of time zones.
  • links β€” a sorted std::vector<std::chrono::time_zone_link> containing description of alternative names of time zones (links).
  • leap_seconds β€” a sorted std::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