名前空間
変種
操作

std::chrono::operator<<(std::chrono::zoned_time)

From cppreference.com
< cpp‎ | chrono‎ | zoned time
 
 
 
 
ヘッダー <chrono> で定義
template< class CharT, class Traits, class Duration, class TimeZonePtr >

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

                const std::chrono::zoned_time<Duration, TimeZonePtr>& tp );
(C++20以降)

ストリーム ostp を出力します。これは、std::format(os.getloc(), fmt, tp) によるかのように動作します。ここで、fmt は、CharTchar の場合は "{:L%F %T %Z}"CharTwchar_t の場合は L"{:L%F %T %Z}" です。

目次

[編集] パラメータ

os - 出力ストリーム
tp - 出力する `zoned_time`

[編集] 戻り値

os

[編集]

[編集] 不具合報告

以下の動作変更を伴う欠陥報告が、以前に公開されたC++標準に遡って適用されました。

DR 適用対象 公開された動作 正しい動作
P2372R3 C++20 指定されたロケールがデフォルトで使用されました 指定されたロケールを使用するにはLが必要です

[編集] 関連項目

zoned_time の書式設定サポート
(クラス テンプレートの特殊化) [edit]
English 日本語 中文(简体) 中文(繁體)