mirror of
https://github.com/HowardHinnant/date.git
synced 2025-01-16 20:41:20 +08:00
Rename Leap to leap
This commit is contained in:
parent
6102717e7f
commit
1de4e4a150
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="#parse"><code>parse</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>
|
||||
</ul>
|
||||
</li>
|
||||
@ -123,7 +123,7 @@ consolidate the specifications of Zones.
|
||||
link: This is an alternative name for a Zone.
|
||||
</p></li>
|
||||
<li><p>
|
||||
Leap: The date of the insertion of a leap second.
|
||||
leap: The date of the insertion of a leap second.
|
||||
</p></li>
|
||||
</ol>
|
||||
|
||||
@ -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;
|
||||
};
|
||||
</pre>
|
||||
@ -2352,46 +2352,46 @@ Output:
|
||||
|
||||
</blockquote>
|
||||
|
||||
<a name="Leap"></a><h3><code>Leap</code></h3>
|
||||
<a name="leap"></a><h3><code>leap</code></h3>
|
||||
<blockquote>
|
||||
<pre>
|
||||
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);
|
||||
</pre>
|
||||
|
||||
<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>
|
||||
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>.
|
||||
</p>
|
||||
</blockquote>
|
||||
|
Loading…
x
Reference in New Issue
Block a user