名前空間
変種
操作

std::chrono::year_month

From cppreference.com
< cpp‎ | chrono
 
 
 
 
ヘッダー <chrono> で定義
class year_month;
(C++20以降)

クラスyear_monthは、特定の日付が指定されていない、特定の年の特定月を表します。std::chrono::monthsの解像度を持つ、フィールドベースの時間点です。

year_monthは、TriviallyCopyableStandardLayoutTypeです。

[編集] メンバ関数

year_monthを構築します。
(public member function) [編集]
格納されている年と月を取得します。
(public member function) [編集]
year_monthをいくつかの月または年数だけ変更します。
(public member function) [編集]
このyear_monthが有効かどうかをチェックします。
(public member function) [編集]

[編集] 非メンバ関数

2つのyear_month値を比較します。
(function) [編集]
year_month に対して演算を実行する
(関数) [edit]
year_monthをストリームに出力します。
(function template) [編集]
指定された書式に従ってストリームから year_month を解析する
(関数テンプレート) [edit]

[編集] ヘルパークラス

year_month の書式設定サポート
(クラス テンプレートの特殊化) [edit]
std::chrono::year_monthのハッシュサポート。
(クラステンプレートの特殊化)
English 日本語 中文(简体) 中文(繁體)