[time.zone.leap.nonmembers]

# 30 Time library [[time]](./#time)

## 30.11 Time zones [[time.zone]](time.zone#leap.nonmembers)

### 30.11.8 Class leap_second [[time.zone.leap]](time.zone.leap#nonmembers)

#### 30.11.8.3 Non-member functions [time.zone.leap.nonmembers]

[ð](#lib:operator==,leap_second)

`constexpr bool operator==(const leap_second& x, const leap_second& y) noexcept;
`

[1](#1)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L10217)

*Returns*: x.date() == y.date()[.](#1.sentence-1)

[ð](#lib:operator%3c=%3e,leap_second)

`constexpr strong_ordering operator<=>(const leap_second& x, const leap_second& y) noexcept;
`

[2](#2)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L10228)

*Returns*: x.date() <=> y.date()[.](#2.sentence-1)

[ð](#lib:operator==,leap_second_)

`template<class Duration>
  constexpr bool operator==(const leap_second& x, const sys_time<Duration>& y) noexcept;
`

[3](#3)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L10241)

*Returns*: x.date() == y[.](#3.sentence-1)

[ð](#lib:operator%3c,leap_second)

`template<class Duration>
  constexpr bool operator<(const leap_second& x, const sys_time<Duration>& y) noexcept;
`

[4](#4)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L10254)

*Returns*: x.date() < y[.](#4.sentence-1)

[ð](#lib:operator%3c,leap_second_)

`template<class Duration>
  constexpr bool operator<(const sys_time<Duration>& x, const leap_second& y) noexcept;
`

[5](#5)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L10267)

*Returns*: x < y.date()[.](#5.sentence-1)

[ð](#lib:operator%3e,leap_second)

`template<class Duration>
  constexpr bool operator>(const leap_second& x, const sys_time<Duration>& y) noexcept;
`

[6](#6)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L10280)

*Returns*: y < x[.](#6.sentence-1)

[ð](#lib:operator%3e,leap_second_)

`template<class Duration>
  constexpr bool operator>(const sys_time<Duration>& x, const leap_second& y) noexcept;
`

[7](#7)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L10293)

*Returns*: y < x[.](#7.sentence-1)

[ð](#lib:operator%3c=,leap_second)

`template<class Duration>
  constexpr bool operator<=(const leap_second& x, const sys_time<Duration>& y) noexcept;
`

[8](#8)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L10306)

*Returns*: !(y < x)[.](#8.sentence-1)

[ð](#lib:operator%3c=,leap_second_)

`template<class Duration>
  constexpr bool operator<=(const sys_time<Duration>& x, const leap_second& y) noexcept;
`

[9](#9)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L10319)

*Returns*: !(y < x)[.](#9.sentence-1)

[ð](#lib:operator%3e=,leap_second)

`template<class Duration>
  constexpr bool operator>=(const leap_second& x, const sys_time<Duration>& y) noexcept;
`

[10](#10)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L10332)

*Returns*: !(x < y)[.](#10.sentence-1)

[ð](#lib:operator%3e=,leap_second_)

`template<class Duration>
  constexpr bool operator>=(const sys_time<Duration>& x, const leap_second& y) noexcept;
`

[11](#11)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L10345)

*Returns*: !(x < y)[.](#11.sentence-1)

[ð](#lib:operator%3c=%3e,leap_second_)

`template<class Duration>
  requires [three_way_comparable_with](cmp.concept#concept:three_way_comparable_with "17.12.4 Concept three_­way_­comparable [cmp.concept]")<sys_seconds, sys_time<Duration>>
  constexpr auto operator<=>(const leap_second& x, const sys_time<Duration>& y) noexcept;
`

[12](#12)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L10359)

*Returns*: x.date() <=> y[.](#12.sentence-1)
