std::chrono::operator ==,!=,<,<=,>,>= (std::chrono::time_zone)

来自cppreference.com
< cpp‎ | chrono‎ | time zone
 
 
 
日期和时间工具
(C++11)
(C++11)
时钟
(C++20)
                                                  
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
日历
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
时区
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
C 风格日期和时间
 
std::chrono::time_zone
成员函数
非成员函数
operator==operator!=operator<operator<=operator>operator>=
 
bool operator==(const std::chrono::time_zone& x, const std::chrono::time_zone& y) noexcept;
(1) (C++20 起)
bool operator!=(const std::chrono::time_zone& x, const std::chrono::time_zone& y) noexcept;
(2) (C++20 起)
bool operator< (const std::chrono::time_zone& x, const std::chrono::time_zone& y) noexcept;
(3) (C++20 起)
bool operator> (const std::chrono::time_zone& x, const std::chrono::time_zone& y) noexcept;
(4) (C++20 起)
bool operator<=(const std::chrono::time_zone& x, const std::chrono::time_zone& y) noexcept;
(5) (C++20 起)
bool operator>=(const std::chrono::time_zone& x, const std::chrono::time_zone& y) noexcept;
(6) (C++20 起)

以名称比较二个 time_zone 对象 xy

[编辑] 返回值

1) x.name() == y.name()
2) x.name() != y.name()
3) x.name() < y.name()
4) x.name() > y.name()
5) x.name() <= y.name()
6) x.name() >= y.name()