From 1de4e4a150b898c961341d0877bb1f60a591fbcf Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Sat, 28 May 2016 20:27:11 -0400 Subject: [PATCH] Rename Leap to leap --- tz.html | 54 +++++++++++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/tz.html b/tz.html index 987fbed..37d3ecc 100644 --- a/tz.html +++ b/tz.html @@ -65,7 +65,7 @@ Commons Attribution 4.0 International License.
  • format
  • parse
  • utc_clock
  • -
  • Leap
  • +
  • leap
  • link
  • @@ -123,7 +123,7 @@ consolidate the specifications of Zones. link: This is an alternative name for a Zone.

  • -Leap: The date of the insertion of a leap second. +leap: The date of the insertion of a leap second.

  • @@ -769,7 +769,7 @@ struct TZ_DB std::string version; std::vector<time_zone> zones; std::vector<link> links; - std::vector<Leap> leaps; + std::vector<leap> leaps; std::vector<Rule> rules; }; @@ -2352,46 +2352,46 @@ Output: -

    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 a sys_seconds with the member function date() 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 with sys_time<Duration>.