std::chrono::operator<<(std::chrono::sys_time)
From cppreference.com
 
 
 < cpp | chrono | system clock 
 
 
 C++ 
 Feature test macros (C++20)
 Concepts library (C++20)
 Metaprogramming library (C++11)
 Ranges library (C++20)
 Filesystem library (C++17)
 Concurrency support library (C++11)
 Execution control library (C++26)
Date and time library 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
(C++11)
(C++20)
  (C++20)
(C++11)
(C++11)
(C++11)
(C++20)
(C++20)
(C++20)
(C++11)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)
(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
  (C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
std::chrono::system_clock 
 
 Member functions
 Time point I/O
operator<<
Defined in header 
 
 
<chrono> 
 template< class CharT, class Traits, class Duration >
 (1) 
 (since C++20) 
std::basic_ostream <CharT, Traits>&
    operator<<( std::basic_ostream <CharT, Traits>& os,
template< class CharT, class Traits, class Duration >
 (2) 
 (since C++20) 
std::basic_ostream <CharT, Traits>&
    operator<<( std::basic_ostream <CharT, Traits>& os,
Outputs tp into the stream os.
1) Equivalent to:
return os << std::format (os.getloc(), STATICALLY-WIDEN<CharT>("{:L%F %T}"), tp);
where STATICALLY_WIDEN<CharT>("{:L%F %T}") is "{:L%F %T}" if CharT is char, and L"{:L%F %T}" if CharT is wchar_t.
2) Equivalent to os << std::chrono::year_month_day (tp);.
[edit] Return value
os
[edit] Defect reports
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
| DR | Applied to | Behavior as published | Correct behavior | 
|---|---|---|---|
| P2372R3 | C++20 | the given locale was used by default | Lis needed to use the given locale |