std::chrono::operator<<(std::chrono::zoned_time)
來自 cppreference.com
< 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),其中如果 CharT
是 char,則 fmt
為 "{:L%F %T %Z}";如果 CharT
是 wchar_t,則 fmt
為 L"{:L%F %T %Z}"。
目錄 |
[編輯] 引數
os | - | 輸出流 |
tp | - | 要輸出的 zoned_time |
[編輯] 返回值
os
[編輯] 示例
本節不完整 原因:無示例 |
[編輯] 缺陷報告
下列更改行為的缺陷報告追溯地應用於以前出版的 C++ 標準。
缺陷報告 | 應用於 | 釋出時的行為 | 正確的行為 |
---|---|---|---|
P2372R3 | C++20 | 預設使用給定區域設定 | 需要 L 才能使用給定區域設定 |
[編輯] 參閱
zoned_time 的格式化支援(類模板特化) |