std::chrono::operator<<(std::chrono::year_month_day)

Header: <chrono>

Outputs a textual representation of ymd into the stream os. This first forms a std::basic_string s consisting of a textual representation of the date in the format yyyy-mm-dd (same as the one output by formatter with the %F specifier). Then, if !ymd.ok(), appends " is not a valid date" to s. Inserts s into os.

# Declarations

template< class CharT, class Traits >
std::basic_ostream<CharT, Traits>&
operator<<( std::basic_ostream<CharT, Traits>& os,
const std::chrono::year_month_day& ymd );

(since C++20)

# Return value

os

# Example

This section is incompleteReason: no example

# See also