std::chrono::operator==,<=>(std::chrono::time_zone_link)
来自cppreference.com
< cpp | chrono | time zone link
工具库
日期和时间工具
时间点 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
时长 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
时钟 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
当天时刻 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
日历 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
时区 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
chrono
I/O
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(C++20)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
C 风格日期和时间 |
std::chrono::time_zone_link
成员函数 | ||||
非成员函数 | ||||
operator==operator<=>
|
在标头
<chrono>
定义
|
||
bool
operator==(
const
std::chrono::time_zone_link&
x,
const std::chrono::time_zone_link& y ) noexcept; |
(1) | (C++20 起) |
std::strong_ordering
operator<=>(
const
std::chrono::time_zone_link&
x,
const std::chrono::time_zone_link& y ) noexcept; |
(2) | (C++20 起) |
按名称比较二个 time_zone_link
值 x
与 y
。
<
、 <=
、 >
、 >=
及 !=
运算符分别从 operator<=>
与
operator==
合成。
返回值
1) x.name()
== y.name() 。
2) x.name()
<=> y.name() 。