std::chrono::year_month_weekday::year, std::chrono::year_month_weekday::month, std::chrono::year_month_weekday::weekday, std::chrono::year_month_weekday::index, std::chrono::year_month_weekday::weekday_indexed
提供: cppreference.com
<tbody>
</tbody>
constexpr std::chrono::year year() const noexcept; |
(1) | (C++20以上) |
constexpr std::chrono::month month() const noexcept; |
(2) | (C++20以上) |
constexpr std::chrono::weekday weekday() const noexcept; |
(3) | (C++20以上) |
constexpr unsigned index() const noexcept; |
(4) | (C++20以上) |
constexpr std::chrono::weekday_indexed weekday_indexed() const noexcept; |
(5) | (C++20以上) |
この year_month_weekday オブジェクトに格納されているフィールドの値を取得します。
戻り値
1) 格納されている std::chrono::year の値を返します。
2) 格納されている std::chrono::month の値を返します。
3) 格納されている std::chrono::weekday の値を返します。
4) 格納されている曜日のインデックスを返します。
5)
weekday()[index()]。