std::chrono::operator<<(std::chrono::sys_time)

Header: <chrono>

Outputs tp into the stream os.

# Declarations

template< class CharT, class Traits, class Duration >
std::basic_ostream<CharT, Traits>&
operator<<( std::basic_ostream<CharT, Traits>& os,
const std::chrono::sys_time<Duration>& tp );

(since C++20)

template< class CharT, class Traits, class Duration >
std::basic_ostream<CharT, Traits>&
operator<<( std::basic_ostream<CharT, Traits>& os,
const std::chrono::sys_days& tp );

(since C++20)

# Return value

os

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
P2372R3C++20the given locale was used by defaultL is needed to use the given locale

# See also