std::chrono::operator<< (std::chrono::zoned_time)

< cpp‎ | chrono‎ | zoned time
template <class CharT, class Traits, class Duration, class TimeZonePtr>

std::basic_ostream<CharT, Traits>&
operator<<(std::basic_ostream<CharT, Traits>& os,

           const std::chrono::zoned_time<Duration, TimeZonePtr>& tp);
(C++20 起)

如同用 std::format(os, fmt, tp) 输出 tp 到流 os ,其中 fmt 是加宽成 CharT"{%F %T %Z}"

返回值

os

参阅