std::chrono...e::get_info(3)

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

πŸ’– NAME πŸ’–

okay so bestie, this page comes from the C++ Standard Libary manual (yes, that's the spelling in the header β€” not me, I'm just the messenger πŸ’…). The function is std::chrono::time_zone::get_info, and the NAME section is literally:

std::chrono::time_zone::get_info - std::chrono::time_zone::get_info


✨ Synopsis ✨

Both overloads have the (since C++20) stamp in the synopsis, so here it is exactly, no cap:

template< class Duration >
std::chrono::sys_info get_info( const
       (since C++20)
std::chrono::sys_time<Duration>& tp ) const;
template< class Duration >
std::chrono::local_info get_info( const
       (since C++20)
std::chrono::local_time<Duration>& tp ) const;

It obtains information about this time zone at the time point tp. That's the whole plot 🫢.

🫢 Return value 🫢

  1. A std::chrono::sys_info structure i containing the time zone information in effect for this time zone at the time point tp. And bestie, tp will be in the range [i.begin, i.end) β€” yes, that range, periodt.
  2. A std::chrono::local_info structure containing information about the local time tp in this time zone.

that's the manual page, bestie πŸŽ€ source/version: http://cppreference.com, dated 2024.06.10, page std::chrono...e::get_info(3). slay ✨

πŸ“¦ where this page comes from