W3cubDocs

/C++

std::chrono::operator<< (std::chrono::utc_time)

template <class CharT, class Traits, class Duration>
std::basic_ostream<CharT, Traits>&
operator<<(std::basic_ostream<CharT, Traits>& os,
           const std::chrono::utc_time<Duration>& tp);
(since C++20)

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

Return value

os.

See also

(C++20)
outputs a utc_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/utc_clock/operator_ltlt