std::chrono::operator<<(std::chrono::zoned_time)
来自 cppreference.cn
< cpp | chrono | zoned time
定义于头文件 <chrono> |
||
template< class CharT, class Traits, class Duration, class TimeZonePtr > std::basic_ostream<CharT, Traits>& |
(C++20 起) | |
输出 tp 到流 os,如同以 std::format(os.getloc(), fmt, tp) 进行,其中 fmt
若 CharT
为 char 则为 "{:L%F %T %Z}",若 CharT
为 wchar_t 则为 L"{:L%F %T %Z}"。
目录 |
[edit] 参数
os | - | 输出流 |
tp | - | 要输出的 zoned_time |
[edit] 返回值
os
[edit] 示例
此章节不完整 原因:无示例 |
[edit] 缺陷报告
下列行为更改缺陷报告被追溯性地应用于先前发布的 C++ 标准。
DR | 应用于 | 如同发布的行为 | 正确的行为 |
---|---|---|---|
P2372R3 | C++20 | 默认使用给定的区域设置 | 需要 L 以使用给定的区域设置 |
[edit] 参见
zoned_time 的格式化支持(类模板特化) |