std::chrono...local_time,(3)

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

Hey bestie πŸ’– welcome to the std::chrono...local_time,(3) page from the C++ Standard Libary (yes, that's the spelling in the header β€” iconic). This is your group-chat rundown of getting a local time out of a zoned_time. Let's gooo ✨

πŸ’… NAME πŸ’…

Okay so the names on this page are:

  • std::chrono::zoned_time::operatorlocal_time, -
  • std::chrono::zoned_time::operatorlocal_time,

Both listed, no cap. 🫢

✨ Synopsis ✨

Two forms, both since C++20:

  • std::chrono::local_time<duration> get_local_time() const; β€” since C++20 🌸
  • explicit operator std::chrono::local_time<duration>() const; β€” since C++20 🌸

What it does: obtains a std::chrono::local_time<duration> representing the local time in the time zone corresponding to the time point *this represents. Periodt. πŸ’…

πŸŽ€ Return value πŸŽ€

A std::chrono::local_time<duration> computed as if by zone->to_local(get_sys_time()), where zone is the non-static data member holding the stored time zone pointer. Slay ✨

xoxo, your fav cppreference girlie πŸ’– β€” source: http://cppreference.com, version/date: 2024.06.10

πŸ“¦ where this page comes from