std::chrono::year_month_weekday_last:: year_month_weekday_last
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
|
year_month_weekday_last::year_month_weekday_last
|
||||
| Nonmember functions | ||||
| Helper classes | ||||
|
constexpr
year_month_weekday_last
(
const
std::
chrono
::
year
&
y,
const
std::
chrono
::
month
&
m,
|
(自 C++20 起) | |
构造一个存储年份
y
、月份
m
和星期
wdl.
weekday
(
)
的
year_month_weekday_last
对象。该构造对象表示该年月中的最后一个星期几。
注释
一个
year_month_weekday_last
对象也可以通过组合部分日期类型
std::chrono::year_month
和
std::chrono::month_weekday_last
与缺失的组成部分(分别是
weekday_last
和
year
),使用
operator
/
来创建。
参见
|
(C++20)
|
格里高利历日期创建的常规语法
(函数) |