From 1de4e4a150b898c961341d0877bb1f60a591fbcf Mon Sep 17 00:00:00 2001
From: Howard Hinnant format
parse
utc_clock
Leap
leap
link
-Leap: The date of the insertion of a leap second. +leap: The date of the insertion of a leap second.
Leap
leap
-class Leap +class leap { public: - Leap(const Leap&) = default; - Leap& operator=(const Leap&) = default; + leap(const leap&) = default; + leap& operator=(const leap&) = default; // Undocumented constructors sys_seconds date() const; }; -bool operator==(const Leap& x, const Leap& y); -bool operator!=(const Leap& x, const Leap& y); -bool operator< (const Leap& x, const Leap& y); -bool operator> (const Leap& x, const Leap& y); -bool operator<=(const Leap& x, const Leap& y); -bool operator>=(const Leap& x, const Leap& y); +bool operator==(const leap& x, const leap& y); +bool operator!=(const leap& x, const leap& y); +bool operator< (const leap& x, const leap& y); +bool operator> (const leap& x, const leap& y); +bool operator<=(const leap& x, const leap& y); +bool operator>=(const leap& x, const leap& y); -template <class Duration> bool operator==(const const Leap& x, const sys_time<Duration>& y); -template <class Duration> bool operator==(const sys_time<Duration>& x, const Leap& y); -template <class Duration> bool operator!=(const Leap& x, const sys_time<Duration>& y); -template <class Duration> bool operator!=(const sys_time<Duration>& x, const Leap& y); -template <class Duration> bool operator< (const Leap& x, const sys_time<Duration>& y); -template <class Duration> bool operator< (const sys_time<Duration>& x, const Leap& y); -template <class Duration> bool operator> (const Leap& x, const sys_time<Duration>& y); -template <class Duration> bool operator> (const sys_time<Duration>& x, const Leap& y); -template <class Duration> bool operator<=(const Leap& x, const sys_time<Duration>& y); -template <class Duration> bool operator<=(const sys_time<Duration>& x, const Leap& y); -template <class Duration> bool operator>=(const Leap& x, const sys_time<Duration>& y); -template <class Duration> bool operator>=(const sys_time<Duration>& x, const Leap& y); +template <class Duration> bool operator==(const const leap& x, const sys_time<Duration>& y); +template <class Duration> bool operator==(const sys_time<Duration>& x, const leap& y); +template <class Duration> bool operator!=(const leap& x, const sys_time<Duration>& y); +template <class Duration> bool operator!=(const sys_time<Duration>& x, const leap& y); +template <class Duration> bool operator< (const leap& x, const sys_time<Duration>& y); +template <class Duration> bool operator< (const sys_time<Duration>& x, const leap& y); +template <class Duration> bool operator> (const leap& x, const sys_time<Duration>& y); +template <class Duration> bool operator> (const sys_time<Duration>& x, const leap& y); +template <class Duration> bool operator<=(const leap& x, const sys_time<Duration>& y); +template <class Duration> bool operator<=(const sys_time<Duration>& x, const leap& y); +template <class Duration> bool operator>=(const leap& x, const sys_time<Duration>& y); +template <class Duration> bool operator>=(const sys_time<Duration>& x, const leap& y);-
Leap
is a copyable class that is constructed and stored in the time zone +leap
is a copyable class that is constructed and stored in the time zone database when initialized. You can explicitly convert it to asys_seconds
with the member functiondate()
and that will be the date of the leap second -insertion.Leap
is equality and less-than comparable, both with itself, and +insertion.leap
is equality and less-than comparable, both with itself, and withsys_time<Duration>
.