std::chrono::operator<< (std::chrono::local_time)

来自cppreference.com
< cpp‎ | chrono‎ | local t
 
 
 
日期和时间工具
(C++11)
(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 风格日期和时间
 
std::chrono::local_t
时间点 I/O
operator<<
 
template <class CharT, class Traits, class Duration>

std::basic_ostream<CharT, Traits>&
operator<<(std::basic_ostream<CharT, Traits>& os,

           const std::chrono::local_time<Duration>& tp);
(C++20 起)

如同用 os << std::chrono::sys_time<Duration>(tp.time_since_epoch()); 输出 tp 到流 os 中。

返回值

os

参阅

进行 sys_time 上的流输出
(函数模板)