std::chrono::month_weekday_last
来自cppreference.com
日期和时间工具
| 时间点 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 时长 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 时钟 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 当天时刻 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 日历 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 时区 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
chrono
I/O
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
(C++20)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| C 风格日期和时间 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::chrono::month_weekday_last
|
在标头
<chrono>
定义
|
||
|
class
month_weekday_last;
|
(C++20 起) | |
类 month_weekday_last 表示某个待确定年的特定月的最后一个星期之日。
month_weekday_last 是可平凡复制 (TriviallyCopyable)
的标准布局类型 (StandardLayoutType)
。
成员函数
构造 month_weekday_last (公开成员函数) |
|
| 取得存储的 month 和 weekday_last
值 (公开成员函数) |
|
| 检查所含的 month 和 weekday_last
是否合法 (公开成员函数) |
非成员函数
|
(C++20)
|
比较两个 month_weekday_last 值 (函数) |
|
(C++20)
|
输出 month_weekday_last 到流中 (函数模板) |
辅助类
month_weekday_last 的格式化支持 (类模板特化) |
|
| std::chrono::month_weekday_last
的散列支持 (类模板特化) |