std::chrono::operator<< (std::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);
(since C++20)

Outputs tp to the stream os, as if by std::chrono::to_stream(os, fmt, tp), where fmt is "%F %T %Z" widened to CharT.

Return value

os.

See also

outputs a zoned_time into a stream according to the provided format
(function template)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/chrono/zoned_time/operator_ltlt