forked from HowardHinnant/date
Add clock_cast
This commit is contained in:
842
d0355r5.html
842
d0355r5.html
File diff suppressed because it is too large
Load Diff
44
tz.html
44
tz.html
@@ -1058,7 +1058,7 @@ implicitly access the <code>front()</code> of this list via the
|
|||||||
<i>read-only</i> namespace scope functions <code>get_tzdb()</code>,
|
<i>read-only</i> namespace scope functions <code>get_tzdb()</code>,
|
||||||
<code>locate_zone()</code> and <code>current_zone()</code>. Each
|
<code>locate_zone()</code> and <code>current_zone()</code>. Each
|
||||||
<code>vector</code> in <code>tzdb</code> is sorted to enable fast
|
<code>vector</code> in <code>tzdb</code> is sorted to enable fast
|
||||||
lookup. One can iterate over and inspect this database. And
|
lookup. One can iterate over and inspect this database. And
|
||||||
multiple versions of the database can be used at once, via the
|
multiple versions of the database can be used at once, via the
|
||||||
<code>tzdb_list</code>.
|
<code>tzdb_list</code>.
|
||||||
</p>
|
</p>
|
||||||
@@ -2215,7 +2215,7 @@ template <class Duration2, TimeZonePtr>
|
|||||||
<blockquote>
|
<blockquote>
|
||||||
<p>
|
<p>
|
||||||
<i>Remarks:</i> Does not participate in overload resolution unless
|
<i>Remarks:</i> Does not participate in overload resolution unless
|
||||||
<code>sys_time<Duration2></code> is implicitly convertible to
|
<code>sys_time<Duration2></code> is implicitly convertible to
|
||||||
<code>sys_time<Duration></code>.
|
<code>sys_time<Duration></code>.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
@@ -2324,7 +2324,7 @@ template <class Duration2, TimeZonePtr>
|
|||||||
<blockquote>
|
<blockquote>
|
||||||
<p>
|
<p>
|
||||||
<i>Remarks:</i> Does not participate in overload resolution unless
|
<i>Remarks:</i> Does not participate in overload resolution unless
|
||||||
<code>sys_time<Duration2></code> is implicitly convertible to
|
<code>sys_time<Duration2></code> is implicitly convertible to
|
||||||
<code>sys_time<Duration></code>.
|
<code>sys_time<Duration></code>.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
@@ -2344,7 +2344,7 @@ template <class Duration2, TimeZonePtr>
|
|||||||
<blockquote>
|
<blockquote>
|
||||||
<p>
|
<p>
|
||||||
<i>Remarks:</i> Does not participate in overload resolution unless
|
<i>Remarks:</i> Does not participate in overload resolution unless
|
||||||
<code>sys_time<Duration2></code> is implicitly convertible to
|
<code>sys_time<Duration2></code> is implicitly convertible to
|
||||||
<code>sys_time<Duration></code>.
|
<code>sys_time<Duration></code>.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
@@ -2679,10 +2679,10 @@ public:
|
|||||||
using time_point = std::chrono::time_point<utc_clock>;
|
using time_point = std::chrono::time_point<utc_clock>;
|
||||||
static constexpr bool is_steady = <i>unspecified</i>;
|
static constexpr bool is_steady = <i>unspecified</i>;
|
||||||
|
|
||||||
static time_point now() noexcept;
|
static time_point now();
|
||||||
|
|
||||||
template <class Duration>
|
template <class Duration>
|
||||||
static
|
static
|
||||||
sys_time<std::common_type_t<Duration, std::chrono::seconds>>
|
sys_time<std::common_type_t<Duration, std::chrono::seconds>>
|
||||||
to_sys(const utc_time<Duration>&);
|
to_sys(const utc_time<Duration>&);
|
||||||
|
|
||||||
@@ -2715,7 +2715,7 @@ second information. When this is the case, <code>utc_clock</code> will not exis
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
static utc_clock::time_point utc_clock::now() noexcept;
|
static utc_clock::time_point utc_clock::now();
|
||||||
</pre>
|
</pre>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p>
|
<p>
|
||||||
@@ -2726,7 +2726,7 @@ value of <code>utc_time</code>.
|
|||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
template <typename Duration>
|
template <typename Duration>
|
||||||
static
|
static
|
||||||
sys_time<std::common_type_t<Duration, std::chrono::seconds>>
|
sys_time<std::common_type_t<Duration, std::chrono::seconds>>
|
||||||
utc_clock::to_sys(const utc_time<Duration>& u);
|
utc_clock::to_sys(const utc_time<Duration>& u);
|
||||||
</pre>
|
</pre>
|
||||||
@@ -2830,16 +2830,16 @@ public:
|
|||||||
using time_point = std::chrono::time_point<tai_clock>;
|
using time_point = std::chrono::time_point<tai_clock>;
|
||||||
static constexpr bool is_steady = <i>unspecified</i>;
|
static constexpr bool is_steady = <i>unspecified</i>;
|
||||||
|
|
||||||
static time_point now() noexcept;
|
static time_point now();
|
||||||
|
|
||||||
template <class Duration>
|
|
||||||
static
|
|
||||||
utc_time<std::common_type_t<Duration, std::chrono::seconds>>
|
|
||||||
to_utc(const std::chrono::time_point<tai_clock, Duration>&) noexcept;
|
|
||||||
|
|
||||||
template <class Duration>
|
template <class Duration>
|
||||||
static
|
static
|
||||||
tai_time<std::common_type<Duration, std::chrono::seconds>>
|
utc_time<std::common_type_t<Duration, std::chrono::seconds>>
|
||||||
|
to_utc(const tai_time<Duration>&) noexcept;
|
||||||
|
|
||||||
|
template <class Duration>
|
||||||
|
static
|
||||||
|
tai_time<std::common_type_t<Duration, std::chrono::seconds>>
|
||||||
from_utc(const utc_time<Duration>&) noexcept;
|
from_utc(const utc_time<Duration>&) noexcept;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -2864,7 +2864,7 @@ second information. When this is the case, <code>tai_clock</code> will not exis
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
static tai_clock::time_point tai_clock::now() noexcept;
|
static tai_clock::time_point tai_clock::now();
|
||||||
</pre>
|
</pre>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p>
|
<p>
|
||||||
@@ -2875,7 +2875,7 @@ value of <code>tai_time</code>.
|
|||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
template <class Duration>
|
template <class Duration>
|
||||||
static
|
static
|
||||||
utc_time<std::common_type_t<Duration, std::chrono::seconds>>
|
utc_time<std::common_type_t<Duration, std::chrono::seconds>>
|
||||||
to_utc(const std::chrono::time_point<tai_clock, Duration>& t) noexcept;
|
to_utc(const std::chrono::time_point<tai_clock, Duration>& t) noexcept;
|
||||||
</pre>
|
</pre>
|
||||||
@@ -2891,7 +2891,7 @@ to_utc(const std::chrono::time_point<tai_clock, Duration>& t) noexcept
|
|||||||
<pre>
|
<pre>
|
||||||
template <class Duration>
|
template <class Duration>
|
||||||
static
|
static
|
||||||
tai_time<std::common_type<Duration, std::chrono::seconds>>
|
tai_time<std::common_type_t<Duration, std::chrono::seconds>>
|
||||||
tai_clock::from_utc(const utc_time<Duration>& t) noexcept;
|
tai_clock::from_utc(const utc_time<Duration>& t) noexcept;
|
||||||
</pre>
|
</pre>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
@@ -2975,10 +2975,10 @@ public:
|
|||||||
using time_point = std::chrono::time_point<gps_clock>;
|
using time_point = std::chrono::time_point<gps_clock>;
|
||||||
static constexpr bool is_steady = <i>unspecified</i>;
|
static constexpr bool is_steady = <i>unspecified</i>;
|
||||||
|
|
||||||
static time_point now() noexcept;
|
static time_point now();
|
||||||
|
|
||||||
template <class Duration>
|
template <class Duration>
|
||||||
static
|
static
|
||||||
utc_time<std::common_type_t<Duration, std::chrono::seconds>>
|
utc_time<std::common_type_t<Duration, std::chrono::seconds>>
|
||||||
to_utc(const gps_time<Duration>&) noexcept;
|
to_utc(const gps_time<Duration>&) noexcept;
|
||||||
|
|
||||||
@@ -3019,7 +3019,7 @@ value of <code>gps_time</code>.
|
|||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
template <class Duration>
|
template <class Duration>
|
||||||
static
|
static
|
||||||
utc_time<std::common_type_t<Duration, std::chrono::seconds>>
|
utc_time<std::common_type_t<Duration, std::chrono::seconds>>
|
||||||
gps_clock::to_utc(const gps_time<Duration>& t) noexcept;
|
gps_clock::to_utc(const gps_time<Duration>& t) noexcept;
|
||||||
</pre>
|
</pre>
|
||||||
@@ -3189,7 +3189,7 @@ convert <code>time_point<SourceClock, Duration></code> to
|
|||||||
<code>time_point<SourceClock, Duration></code> and returns a
|
<code>time_point<SourceClock, Duration></code> and returns a
|
||||||
<code>time_point<DestClock, <i>some duration</i>></code> representing an equivalent
|
<code>time_point<DestClock, <i>some duration</i>></code> representing an equivalent
|
||||||
point in time. A program may specialize <code>clock_time_conversion</code> if at least
|
point in time. A program may specialize <code>clock_time_conversion</code> if at least
|
||||||
one of the template parameters is user-defined clock type.
|
one of the template parameters is user-defined clock type.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
Reference in New Issue
Block a user