std::chrono::sys_info(3)
β¨ NAME β¨
okay so bestie, welcome to the std::chrono::sys_info(3) page from the C++ Standard Libary manpage π (that spelling is literally in the header, iykyk).
std::chrono::sys_info - std::chrono::sys_info
πΈ Synopsis πΈ
Defined in header <chrono> β¨
struct sys_info; (since C++20)
The class sys_info describes time zone information associated with a time zone at a particular point in time (represented as either a std::chrono::sys_time or a std::chrono::local_time). This is a low-level data structure typically not used directly by user code. no cap, it's giving "plumbing, not main character energy" π«Ά
π§Έ Member objects π§Έ
Member object β Type
begin,endβstd::chrono::sys_secondsoffsetβstd::chrono::secondssaveβstd::chrono::minutesabbrevβstd::string
The begin and end data members indicate the range - [begin, end) - in which the offset and abbrev are in effect for the time zone associated with this sys_info. π
The offset and abbrev data member indicate the UTC offset and time zone abbreviation, respectively, in effect for the associated time zone and std::chrono::time_point. Note that time zone abbreviations are not unique. π
The save data member, if nonzero, indicates that the time zone is on daylight saving time at the specified time point. In this case, offset - save is a suggestion of what offset this time zone might use if it were off daylight saving time. However, this information is not authoritative: the only way to ascertain the actual offset is to query the time zone with a time point that is actually off daylight savings time (i.e. returns a sys_info such that save == 0min). π«Ά
π§© Nonmember functions π§©
operator<<β outputs asys_infointo a stream;(C++20)(function template)β¨
π οΈ Helper classes π οΈ
std::formatter<std::chrono::sys_info>β formatting support forsys_info;(C++20)(class template specialization)π
π Example π
This section is incomplete
Reason: no example π
π·οΈ Category π·οΈ
- Todo no example
big kisses from http://cppreference.com π β version/date 2024.06.10 β page std::chrono::sys_info(3) π«Άβ¨π
π¦ 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