summaryrefslogtreecommitdiff
path: root/doc/html/boost/date_time/static_local_time_adjustor.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/boost/date_time/static_local_time_adjustor.html')
-rw-r--r--doc/html/boost/date_time/static_local_time_adjustor.html22
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/html/boost/date_time/static_local_time_adjustor.html b/doc/html/boost/date_time/static_local_time_adjustor.html
index d842b4d9f2..1db0c6da4c 100644
--- a/doc/html/boost/date_time/static_local_time_adjustor.html
+++ b/doc/html/boost/date_time/static_local_time_adjustor.html
@@ -7,7 +7,7 @@
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../date_time/doxy.html#header.boost.date_time.local_time_adjustor_hpp" title="Header &lt;boost/date_time/local_time_adjustor.hpp&gt;">
-<link rel="prev" href="dynamic__idm46563424080928.html" title="Class template dynamic_local_time_adjustor">
+<link rel="prev" href="dynamic_local_idp730860992.html" title="Class template dynamic_local_time_adjustor">
<link rel="next" href="local_adjustor.html" title="Class template local_adjustor">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
@@ -21,7 +21,7 @@
</tr></table>
<hr>
<div class="spirit-nav">
-<a accesskey="p" href="dynamic__idm46563424080928.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#header.boost.date_time.local_time_adjustor_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="local_adjustor.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
+<a accesskey="p" href="dynamic_local_idp730860992.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#header.boost.date_time.local_time_adjustor_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="local_adjustor.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.date_time.static_local_time_adjustor"></a><div class="titlepage"></div>
@@ -39,20 +39,20 @@
<span class="keyword">typedef</span> <span class="identifier">time_type</span><span class="special">::</span><span class="identifier">time_duration_type</span> <a name="boost.date_time.static_local_time_adjustor.time_duration_type"></a><span class="identifier">time_duration_type</span><span class="special">;</span>
<span class="keyword">typedef</span> <span class="identifier">time_type</span><span class="special">::</span><span class="identifier">date_type</span> <a name="boost.date_time.static_local_time_adjustor.date_type"></a><span class="identifier">date_type</span><span class="special">;</span>
- <span class="comment">// <a class="link" href="static_local_time_adjustor.html#idm46563424067440-bb">public static functions</a></span>
- <span class="keyword">static</span> <span class="identifier">time_duration_type</span> <a class="link" href="static_local_time_adjustor.html#idm46563424066880-bb"><span class="identifier">utc_to_local_offset</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
+ <span class="comment">// <a class="link" href="static_local_time_adjustor.html#idp730874480-bb">public static functions</a></span>
+ <span class="keyword">static</span> <span class="identifier">time_duration_type</span> <a class="link" href="static_local_time_adjustor.html#idp730875040-bb"><span class="identifier">utc_to_local_offset</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
<span class="keyword">static</span> <span class="identifier">time_duration_type</span>
- <a class="link" href="static_local_time_adjustor.html#idm46563424062464-bb"><span class="identifier">local_to_utc_offset</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_type</span> <span class="special">&amp;</span><span class="special">,</span>
+ <a class="link" href="static_local_time_adjustor.html#idp730879456-bb"><span class="identifier">local_to_utc_offset</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_type</span> <span class="special">&amp;</span><span class="special">,</span>
<span class="identifier">date_time</span><span class="special">::</span><span class="identifier">dst_flags</span> <span class="special">=</span> <span class="identifier">date_time</span><span class="special">::</span><span class="identifier">calculate</span><span class="special">)</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
-<a name="idm45928072839840"></a><h2>Description</h2>
+<a name="idp320131056"></a><h2>Description</h2>
<div class="refsect2">
-<a name="idm45928072839456"></a><h3>
-<a name="idm46563424067440-bb"></a><code class="computeroutput">static_local_time_adjustor</code> public static functions</h3>
+<a name="idp320131472"></a><h3>
+<a name="idp730874480-bb"></a><code class="computeroutput">static_local_time_adjustor</code> public static functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
-<pre class="literallayout"><span class="keyword">static</span> <span class="identifier">time_duration_type</span> <a name="idm46563424066880-bb"></a><span class="identifier">utc_to_local_offset</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_type</span> <span class="special">&amp;</span> t<span class="special">)</span><span class="special">;</span></pre>Calculates the offset from a utc time to local based on dst and utc offset. <p>
+<pre class="literallayout"><span class="keyword">static</span> <span class="identifier">time_duration_type</span> <a name="idp730875040-bb"></a><span class="identifier">utc_to_local_offset</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_type</span> <span class="special">&amp;</span> t<span class="special">)</span><span class="special">;</span></pre>Calculates the offset from a utc time to local based on dst and utc offset. <p>
The logic is as follows. Starting with UTC time use the offset to create a label for an non-dst adjusted local time. Then call dst_rules::local_is_dst with the non adjust local time. The results of this function will either unabiguously decide that the initial local time is in dst or return an illegal or ambiguous result. An illegal result only occurs at the end of dst (where labels are skipped) and indicates that dst has ended. An ambiguous result means that we need to recheck by making a dst adjustment and then rechecking. If the dst offset is added to the utc time and the recheck proves non-ambiguous then we are past the boundary. If it is still ambiguous then we are ahead of the boundary and dst is still in effect.</p>
<p>TODO &#8211; check if all dst offsets are positive. If not then the algorithm needs to check for this and reverse the illegal/ambiguous logic. </p>
<div class="variablelist"><table border="0" class="variablelist compact">
@@ -77,7 +77,7 @@ The logic is as follows. Starting with UTC time use the offset to create a label
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">static</span> <span class="identifier">time_duration_type</span>
-<a name="idm46563424062464-bb"></a><span class="identifier">local_to_utc_offset</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_type</span> <span class="special">&amp;</span> t<span class="special">,</span>
+<a name="idp730879456-bb"></a><span class="identifier">local_to_utc_offset</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_type</span> <span class="special">&amp;</span> t<span class="special">,</span>
<span class="identifier">date_time</span><span class="special">::</span><span class="identifier">dst_flags</span> dst <span class="special">=</span> <span class="identifier">date_time</span><span class="special">::</span><span class="identifier">calculate</span><span class="special">)</span><span class="special">;</span></pre>Get the offset to UTC given a local time. </li>
</ol></div>
</div>
@@ -91,7 +91,7 @@ The logic is as follows. Starting with UTC time use the offset to create a label
</tr></table>
<hr>
<div class="spirit-nav">
-<a accesskey="p" href="dynamic__idm46563424080928.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#header.boost.date_time.local_time_adjustor_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="local_adjustor.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
+<a accesskey="p" href="dynamic_local_idp730860992.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#header.boost.date_time.local_time_adjustor_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="local_adjustor.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>