forked from HowardHinnant/date
Fix type-o's
This commit is contained in:
27
date.html
27
date.html
@@ -1741,7 +1741,7 @@ resolution of <code>seconds</code>. <code>sys_seconds</code> is also widely kno
|
|||||||
as <a href="href="http://en.wikipedia.org/wiki/Unix_time"">Unix Time</a>.
|
as <a href="href="http://en.wikipedia.org/wiki/Unix_time"">Unix Time</a>.
|
||||||
</p>
|
</p>
|
||||||
<pre>
|
<pre>
|
||||||
using sys_days = sys_time<std::chrono::seconds>;
|
using sys_seconds = sys_time<std::chrono::seconds>;
|
||||||
</pre>
|
</pre>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
@@ -1769,7 +1769,7 @@ seconds), because they mean two <i>subtly</i> different things, and are both
|
|||||||
struct local_t {};
|
struct local_t {};
|
||||||
|
|
||||||
template <class Duration>
|
template <class Duration>
|
||||||
using sys_time = std::chrono::time_point<local_t, Duration>;
|
using local_time = std::chrono::time_point<local_t, Duration>;
|
||||||
</pre>
|
</pre>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
@@ -1809,7 +1809,14 @@ There exists a <code>constexpr</code> instance of <code>last_spec</code> named
|
|||||||
a month, or the last weekday of a month.
|
a month, or the last weekday of a month.
|
||||||
</p>
|
</p>
|
||||||
<pre>
|
<pre>
|
||||||
constexpr struct last_spec {} last{};
|
struct last_spec
|
||||||
|
{
|
||||||
|
explicit last_spec() = default;
|
||||||
|
};
|
||||||
|
inline namespace literals
|
||||||
|
{
|
||||||
|
constexpr last_spec last{};
|
||||||
|
}
|
||||||
</pre>
|
</pre>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
@@ -1849,8 +1856,11 @@ constexpr day operator+(const days& x, const day& y) noexcept;
|
|||||||
constexpr day operator-(const day& x, const days& y) noexcept;
|
constexpr day operator-(const day& x, const days& y) noexcept;
|
||||||
constexpr days operator-(const day& x, const day& y) noexcept;
|
constexpr days operator-(const day& x, const day& y) noexcept;
|
||||||
|
|
||||||
constexpr day operator "" _d(unsigned long long d) noexcept;
|
|
||||||
std::ostream& operator<<(std::ostream& os, const day& d);
|
std::ostream& operator<<(std::ostream& os, const day& d);
|
||||||
|
|
||||||
|
inline namespace literals {
|
||||||
|
constexpr day operator "" _d(unsigned long long d) noexcept;
|
||||||
|
}
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p><b>Overview</b></p>
|
<p><b>Overview</b></p>
|
||||||
@@ -2149,6 +2159,7 @@ constexpr months operator-(const month& x, const month& y) noexcept;
|
|||||||
|
|
||||||
std::ostream& operator<<(std::ostream& os, const month& m);
|
std::ostream& operator<<(std::ostream& os, const month& m);
|
||||||
|
|
||||||
|
inline namespace literals {
|
||||||
constexpr month jan{1};
|
constexpr month jan{1};
|
||||||
constexpr month feb{2};
|
constexpr month feb{2};
|
||||||
constexpr month mar{3};
|
constexpr month mar{3};
|
||||||
@@ -2161,6 +2172,7 @@ constexpr month sep{9};
|
|||||||
constexpr month oct{10};
|
constexpr month oct{10};
|
||||||
constexpr month nov{11};
|
constexpr month nov{11};
|
||||||
constexpr month dec{12};
|
constexpr month dec{12};
|
||||||
|
}
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p><b>Overview</b></p>
|
<p><b>Overview</b></p>
|
||||||
@@ -2479,8 +2491,10 @@ constexpr year operator+(const years& x, const year& y) noexcept;
|
|||||||
constexpr year operator-(const year& x, const years& y) noexcept;
|
constexpr year operator-(const year& x, const years& y) noexcept;
|
||||||
constexpr years operator-(const year& x, const year& y) noexcept;
|
constexpr years operator-(const year& x, const year& y) noexcept;
|
||||||
|
|
||||||
constexpr year operator "" _y(unsigned long long y) noexcept;
|
|
||||||
std::ostream& operator<<(std::ostream& os, const year& y);
|
std::ostream& operator<<(std::ostream& os, const year& y);
|
||||||
|
inline namespace literals {
|
||||||
|
constexpr year operator "" _y(unsigned long long y) noexcept;
|
||||||
|
}
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p><b>Overview</b></p>
|
<p><b>Overview</b></p>
|
||||||
@@ -2811,6 +2825,7 @@ constexpr days operator-(const weekday& x, const weekday& y) noexcept
|
|||||||
|
|
||||||
std::ostream& operator<<(std::ostream& os, const weekday& wd);
|
std::ostream& operator<<(std::ostream& os, const weekday& wd);
|
||||||
|
|
||||||
|
inline namespace literals {
|
||||||
constexpr weekday sun{0};
|
constexpr weekday sun{0};
|
||||||
constexpr weekday mon{1};
|
constexpr weekday mon{1};
|
||||||
constexpr weekday tue{2};
|
constexpr weekday tue{2};
|
||||||
@@ -2818,6 +2833,7 @@ constexpr weekday wed{3};
|
|||||||
constexpr weekday thu{4};
|
constexpr weekday thu{4};
|
||||||
constexpr weekday fri{5};
|
constexpr weekday fri{5};
|
||||||
constexpr weekday sat{6};
|
constexpr weekday sat{6};
|
||||||
|
}
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p><b>Overview</b></p>
|
<p><b>Overview</b></p>
|
||||||
@@ -6982,7 +6998,6 @@ make_time(std::chrono::hours h, std::chrono::minutes m, std::chrono::seconds s,
|
|||||||
|
|
||||||
<a name="_46"></a><pre>
|
<a name="_46"></a><pre>
|
||||||
template <class Duration>
|
template <class Duration>
|
||||||
inline
|
|
||||||
std::ostream&
|
std::ostream&
|
||||||
operator<<(std::ostream& os,
|
operator<<(std::ostream& os,
|
||||||
const std::chrono::time_point<std::chrono::system_clock, Duration>& tp);
|
const std::chrono::time_point<std::chrono::system_clock, Duration>& tp);
|
||||||
|
4
tz.html
4
tz.html
@@ -1831,9 +1831,9 @@ operator!=(const zoned_time<Duration1>& x, const zoned_time<Duratio
|
|||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
template <class Duration>
|
template <class Duration>
|
||||||
std::ostream&
|
std::ostream&
|
||||||
operator<<(std::ostream& os, const zoned_time<Duration>& t)
|
operator<<(std::ostream& os, const zoned_time<Duration>& t)
|
||||||
</pre>
|
</pre>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p>
|
<p>
|
||||||
|
Reference in New Issue
Block a user