forked from HowardHinnant/date
Rename Leap to leap
This commit is contained in:
54
tz.html
54
tz.html
@@ -65,7 +65,7 @@ Commons Attribution 4.0 International License</a>.
|
|||||||
<li><a href="#format"><code>format</code></a></li>
|
<li><a href="#format"><code>format</code></a></li>
|
||||||
<li><a href="#parse"><code>parse</code></a></li>
|
<li><a href="#parse"><code>parse</code></a></li>
|
||||||
<li><a href="#utc_clock"><code>utc_clock</code></a></li>
|
<li><a href="#utc_clock"><code>utc_clock</code></a></li>
|
||||||
<li><a href="#Leap"><code>Leap</code></a></li>
|
<li><a href="#leap"><code>leap</code></a></li>
|
||||||
<li><a href="#link"><code>link</code></a></li>
|
<li><a href="#link"><code>link</code></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
@@ -123,7 +123,7 @@ consolidate the specifications of Zones.
|
|||||||
link: This is an alternative name for a Zone.
|
link: This is an alternative name for a Zone.
|
||||||
</p></li>
|
</p></li>
|
||||||
<li><p>
|
<li><p>
|
||||||
Leap: The date of the insertion of a leap second.
|
leap: The date of the insertion of a leap second.
|
||||||
</p></li>
|
</p></li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
@@ -769,7 +769,7 @@ struct TZ_DB
|
|||||||
std::string version;
|
std::string version;
|
||||||
std::vector<time_zone> zones;
|
std::vector<time_zone> zones;
|
||||||
std::vector<link> links;
|
std::vector<link> links;
|
||||||
std::vector<Leap> leaps;
|
std::vector<leap> leaps;
|
||||||
std::vector<Rule> rules;
|
std::vector<Rule> rules;
|
||||||
};
|
};
|
||||||
</pre>
|
</pre>
|
||||||
@@ -2352,46 +2352,46 @@ Output:
|
|||||||
|
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
<a name="Leap"></a><h3><code>Leap</code></h3>
|
<a name="leap"></a><h3><code>leap</code></h3>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<pre>
|
<pre>
|
||||||
class Leap
|
class leap
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Leap(const Leap&) = default;
|
leap(const leap&) = default;
|
||||||
Leap& operator=(const Leap&) = default;
|
leap& operator=(const leap&) = default;
|
||||||
|
|
||||||
// Undocumented constructors
|
// Undocumented constructors
|
||||||
|
|
||||||
sys_seconds date() const;
|
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 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 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 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 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 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 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 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 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 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 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 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 sys_time<Duration>& x, const leap& y);
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<code>Leap</code> is a copyable class that is constructed and stored in the time zone
|
<code>leap</code> is a copyable class that is constructed and stored in the time zone
|
||||||
database when initialized. You can explicitly convert it to a <code>sys_seconds</code>
|
database when initialized. You can explicitly convert it to a <code>sys_seconds</code>
|
||||||
with the member function <code>date()</code> and that will be the date of the leap second
|
with the member function <code>date()</code> and that will be the date of the leap second
|
||||||
insertion. <code>Leap</code> is equality and less-than comparable, both with itself, and
|
insertion. <code>leap</code> is equality and less-than comparable, both with itself, and
|
||||||
with <code>sys_time<Duration></code>.
|
with <code>sys_time<Duration></code>.
|
||||||
</p>
|
</p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
Reference in New Issue
Block a user