std::chrono::year_month_weekday_last::year_month_weekday_last
来自cppreference.com
< cpp | chrono | year month weekday
last
工具库
日期和时间工具
| 时间点 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 时长 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 时钟 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 当天时刻 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 日历 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 时区 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
chrono
I/O
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
(C++20)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| C 风格日期和时间 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::chrono::year_month_weekday_last
| 成员函数 | ||||
|
year_month_weekday_last::year_month_weekday_last
|
||||
| 非成员函数 | ||||
| 辅助类 | ||||
|
constexpr
year_month_weekday_last(const
std::chrono::year&
y, const
std::chrono::month&
m,
const chrono::weekday_last& wdl) noexcept; |
(C++20 起) | |
构造存储 year y 、 month m 、
weekday wdl.weekday() 的
year_month_weekday_last 对象。构造的对象表示该年和月的最后一个星期之日。
注意
亦能通过用 operator/ 将部分日期类型 std::chrono::year_month 及 std::chrono::month_weekday_last 与缺失成分(分别为
weekday_last 和年)结合创建 year_month_weekday_last 。
参阅
|
(C++20)
|
创建格里高利历日期的约定语法 (函数) |