Imported Upstream version 1.57.0
[platform/upstream/boost.git] / doc / html / boost / date_time / null_dst_rules.html
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Class template null_dst_rules</title>
5 <link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7 <link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
8 <link rel="up" href="../../date_time/doxy.html#header.boost.date_time.dst_rules_hpp" title="Header &lt;boost/date_time/dst_rules.hpp&gt;">
9 <link rel="prev" href="us_dst_rules.html" title="Class template us_dst_rules">
10 <link rel="next" href="dst_day_calc_rule.html" title="Class template dst_day_calc_rule">
11 </head>
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr>
14 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
15 <td align="center"><a href="../../../../index.html">Home</a></td>
16 <td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
17 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19 <td align="center"><a href="../../../../more/index.htm">More</a></td>
20 </tr></table>
21 <hr>
22 <div class="spirit-nav">
23 <a accesskey="p" href="us_dst_rules.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#header.boost.date_time.dst_rules_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="dst_day_calc_rule.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
24 </div>
25 <div class="refentry">
26 <a name="boost.date_time.null_dst_rules"></a><div class="titlepage"></div>
27 <div class="refnamediv">
28 <h2><span class="refentrytitle">Class template null_dst_rules</span></h2>
29 <p>boost::date_time::null_dst_rules &#8212; Used for local time adjustments in places that don't use dst. </p>
30 </div>
31 <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
32 <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../date_time/doxy.html#header.boost.date_time.dst_rules_hpp" title="Header &lt;boost/date_time/dst_rules.hpp&gt;">boost/date_time/dst_rules.hpp</a>&gt;
33
34 </span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> date_type_<span class="special">,</span> <span class="keyword">typename</span> time_duration_type_<span class="special">&gt;</span> 
35 <span class="keyword">class</span> <a class="link" href="null_dst_rules.html" title="Class template null_dst_rules">null_dst_rules</a> <span class="special">{</span>
36 <span class="keyword">public</span><span class="special">:</span>
37   <span class="comment">// types</span>
38   <span class="keyword">typedef</span> <span class="identifier">time_duration_type_</span> <a name="boost.date_time.null_dst_rules.time_duration_type"></a><span class="identifier">time_duration_type</span><span class="special">;</span>
39   <span class="keyword">typedef</span> <span class="identifier">date_type_</span>          <a name="boost.date_time.null_dst_rules.date_type"></a><span class="identifier">date_type</span><span class="special">;</span>         
40
41   <span class="comment">// <a class="link" href="null_dst_rules.html#idp50320608-bb">public static functions</a></span>
42   <span class="keyword">static</span> <span class="identifier">time_is_dst_result</span> 
43   <a class="link" href="null_dst_rules.html#idp50321168-bb"><span class="identifier">local_is_dst</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">date_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_duration_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
44   <span class="keyword">static</span> <span class="identifier">time_is_dst_result</span> 
45   <a class="link" href="null_dst_rules.html#idp72772880-bb"><span class="identifier">utc_is_dst</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">date_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_duration_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
46   <span class="keyword">static</span> <span class="keyword">bool</span> <a class="link" href="null_dst_rules.html#idp40800480-bb"><span class="identifier">is_dst_boundary_day</span></a><span class="special">(</span><span class="identifier">date_type</span><span class="special">)</span><span class="special">;</span>
47   <span class="keyword">static</span> <span class="identifier">time_duration_type</span> <a class="link" href="null_dst_rules.html#idp95701280-bb"><span class="identifier">dst_offset</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
48 <span class="special">}</span><span class="special">;</span></pre></div>
49 <div class="refsect1">
50 <a name="idp189692688"></a><h2>Description</h2>
51 <div class="refsect2">
52 <a name="idp189693104"></a><h3>
53 <a name="idp50320608-bb"></a><code class="computeroutput">null_dst_rules</code> public static functions</h3>
54 <div class="orderedlist"><ol class="orderedlist" type="1">
55 <li class="listitem">
56 <pre class="literallayout"><span class="keyword">static</span> <span class="identifier">time_is_dst_result</span> 
57 <a name="idp50321168-bb"></a><span class="identifier">local_is_dst</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">date_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_duration_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span></pre>Calculates if the given local time is dst or not. <p>
58 </p>
59 </li>
60 <li class="listitem">
61 <pre class="literallayout"><span class="keyword">static</span> <span class="identifier">time_is_dst_result</span> 
62 <a name="idp72772880-bb"></a><span class="identifier">utc_is_dst</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">date_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_duration_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span></pre>Calculates if the given utc time is in dst. </li>
63 <li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="keyword">bool</span> <a name="idp40800480-bb"></a><span class="identifier">is_dst_boundary_day</span><span class="special">(</span><span class="identifier">date_type</span><span class="special">)</span><span class="special">;</span></pre></li>
64 <li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">time_duration_type</span> <a name="idp95701280-bb"></a><span class="identifier">dst_offset</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
65 </ol></div>
66 </div>
67 </div>
68 </div>
69 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
70 <td align="left"></td>
71 <td align="right"><div class="copyright-footer">Copyright &#169; 2001-2005 CrystalClear Software, Inc<p>Subject to the Boost Software License, Version 1.0. (See accompanying file
72     <code class="filename">LICENSE_1_0.txt</code> or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)</p>
73 </div></td>
74 </tr></table>
75 <hr>
76 <div class="spirit-nav">
77 <a accesskey="p" href="us_dst_rules.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#header.boost.date_time.dst_rules_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="dst_day_calc_rule.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
78 </div>
79 </body>
80 </html>