std::chrono...zoned_time)(3)
π C++ Standard Libary β std::chrono...zoned_time)(3) π
hey bestie, welcome to the C++ Standard Libary manual page for std::chrono...zoned_time)(3) β yes, thatβs the manual name and the page tag, and weβre about to get into std::chrono::operator<<(std::chrono::zoned_time). stay with me, itβs giving βniche chrono loreβ and honestly it slays π
πΈ NAME πΈ
std::chrono::operator<<(std::chrono::zoned_time) - std::chrono::operator<<(std::chrono::zoned_time)
thatβs the NAME, no cap β same function name listed twice, and weβre moving on π«Ά
β¨ Synopsis β¨
Defined in header <chrono>, bestie:
Defined in header <chrono>
template< class CharT, class Traits, class Duration, class
TimeZonePtr >
std::basic_ostream<CharT, Traits>&
(since C++20)
operator<<( std::basic_ostream<CharT, Traits>& os,
const std::chrono::zoned_time<Duration, TimeZonePtr>&
tp );
So this is since C++20, and the vibe is: it outputs tp to the stream os, as if by std::format(os.getloc(), fmt, tp), where fmt is "{:L%F %T %Z}" if CharT is char, or L"{:L%F %T %Z}" if CharT is wchar_t. literally that exact format string, donβt come for me π
π Parameters π
osβ output streamtpβzoned_timeto output
π Return value π
osβ yep, it returnsos, thatβs the whole return value, periodt β¨
π¦ Example π¦
This section is incomplete π
Reason: no example
ngl, no example here, thatβs the tea π
π©Ή Defect reports π©Ή
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
- DR β
P2372R3 - Applied to β
C++20 - Behavior as published β the given locale was used by default
- Correct behavior β
Lis needed to use the given locale
thatβs the whole defect-report moment, bestie π₯
π See also π
std::formatter<std::chrono::zoned_time>β formatting support forzoned_time(C++20) (class template specialization)
π§ Category π§
* Todo no example
okay thatβs the page, bestie π
source/version/date moment: http://cppreference.com, 2024.06.10, and page tag std::chrono...zoned_time)(3) β bye, slay π«Ά
π¦ 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