mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-28 17:28:15 +08:00
Fix type-o's
This commit is contained in:
parent
6220fa83e4
commit
c005648049
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>.
|
||||
</p>
|
||||
<pre>
|
||||
using sys_days = sys_time<std::chrono::seconds>;
|
||||
using sys_seconds = sys_time<std::chrono::seconds>;
|
||||
</pre>
|
||||
</blockquote>
|
||||
|
||||
@ -1769,7 +1769,7 @@ seconds), because they mean two <i>subtly</i> different things, and are both
|
||||
struct local_t {};
|
||||
|
||||
template <class Duration>
|
||||
using sys_time = std::chrono::time_point<local_t, Duration>;
|
||||
using local_time = std::chrono::time_point<local_t, Duration>;
|
||||
</pre>
|
||||
</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.
|
||||
</p>
|
||||
<pre>
|
||||
constexpr struct last_spec {} last{};
|
||||
struct last_spec
|
||||
{
|
||||
explicit last_spec() = default;
|
||||
};
|
||||
inline namespace literals
|
||||
{
|
||||
constexpr last_spec last{};
|
||||
}
|
||||
</pre>
|
||||
</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 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);
|
||||
|
||||
inline namespace literals {
|
||||
constexpr day operator "" _d(unsigned long long d) noexcept;
|
||||
}
|
||||
</pre>
|
||||
|
||||
<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);
|
||||
|
||||
inline namespace literals {
|
||||
constexpr month jan{1};
|
||||
constexpr month feb{2};
|
||||
constexpr month mar{3};
|
||||
@ -2161,6 +2172,7 @@ constexpr month sep{9};
|
||||
constexpr month oct{10};
|
||||
constexpr month nov{11};
|
||||
constexpr month dec{12};
|
||||
}
|
||||
</pre>
|
||||
|
||||
<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 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);
|
||||
inline namespace literals {
|
||||
constexpr year operator "" _y(unsigned long long y) noexcept;
|
||||
}
|
||||
</pre>
|
||||
|
||||
<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);
|
||||
|
||||
inline namespace literals {
|
||||
constexpr weekday sun{0};
|
||||
constexpr weekday mon{1};
|
||||
constexpr weekday tue{2};
|
||||
@ -2818,6 +2833,7 @@ constexpr weekday wed{3};
|
||||
constexpr weekday thu{4};
|
||||
constexpr weekday fri{5};
|
||||
constexpr weekday sat{6};
|
||||
}
|
||||
</pre>
|
||||
|
||||
<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>
|
||||
template <class Duration>
|
||||
inline
|
||||
std::ostream&
|
||||
operator<<(std::ostream& os,
|
||||
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>
|
||||
|
||||
<pre>
|
||||
template <class Duration>
|
||||
template <class Duration>
|
||||
std::ostream&
|
||||
operator<<(std::ostream& os, const zoned_time<Duration>& t)
|
||||
operator<<(std::ostream& os, const zoned_time<Duration>& t)
|
||||
</pre>
|
||||
<blockquote>
|
||||
<p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user