std::chrono::local_t(3)
π NAME π
okay so this is the std::chrono::local_t(3) page from the C++ Standard Libary manual, and the NAME is literally std::chrono::local_t - std::chrono::local_t β iconic, no notes π
.
β¨ Synopsis β¨
Defined in header <chrono>:
struct local_t {};
(since C++20)
The class local_t is a pseudo-clock β yes bestie, thatβs the actual term β and itβs used as the first template argument to std::chrono::time_point to indicate that the time point represents local time with respect of a not-yet-specified time zone. local_time supports streaming and the full set of time point arithmetic. slay π«Ά.
π¦ Time point family π¦
Defined in namespace std::chrono:
template<class Duration>
using local_time = std::chrono::time_point<std::chrono::local_t, Duration>;
(since C++20)
using local_seconds = local_time<std::chrono::seconds>;β(since C++20)using local_days = local_time<std::chrono::days>;β(since C++20)
the function-template + formatter crew, lowkey the main characters:
operator<<(std::chrono::local_time)β performs stream output on alocal_time;(C++20)(function template)πfrom_stream(std::chrono::local_time)β parses alocal_timefrom a stream according to the provided format;(C++20)(function template)β¨std::formatter<std::chrono::local_time>β formatting support forlocal_time;(C++20)(class template specialization)πΈ
π See also π
zoned_timeβ represents a time zone and a time point;(C++20)(class)π₯
signed off with love by http://cppreference.com on 2024.06.10 β this was the std::chrono::local_t(3) page, mwah π
π¦ 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