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

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

πŸ’– NAME πŸ’–

std::chrono::time_zone::to_local - std::chrono::time_zone::to_local

okay so this page is std::chrono...e::to_local(3) from the C++ Standard Libary manual, and it’s literally all about std::chrono::time_zone::to_local πŸ’…βœ¨

✨ Synopsis ✨

here’s the signature, bestie β€” copied exactly, no cap:

          template< class Duration >

          auto to_local( const std::chrono::sys_time<Duration>& tp ) const
       (since
                                                                                       C++20)
              -> std::chrono::local_time<std::common_type_t<Duration,
          std::chrono::seconds>>;

It converts the sys_time tp to the corresponding local_time in this time zone 🫢

πŸŽ€ Return value πŸŽ€

The local_time associated with tp and this time zone πŸ’–

πŸ¦‹ Notes πŸ¦‹

The precision of the result is at least std::chrono::seconds, and will be finer if the argument has finer precision ✨


that’s the whole vibe, bestie β€” source/version is http://cppreference.com, date is 2024.06.10, and the page is std::chrono...e::to_local(3) πŸŒΈπŸ’‹

πŸ“¦ where this page comes from