Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/doc/html/dst_calc_engine.html @ 12

Last change on this file since 12 was 12, checked in by landauf, 18 years ago

added boost

File size: 5.5 KB
Line 
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
4<title>Class template dst_calc_engine</title>
5<link rel="stylesheet" href="boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
7<link rel="start" href="index.html" title="The Boost C++ Libraries">
8<link rel="up" href="date_time/doxy.html#id2510544" title="Header &lt;boost/date_time/dst_rules.hpp&gt;">
9<link rel="prev" href="dst_calculator.html" title="Class template dst_calculator">
10<link rel="next" href="us_dst_rules.html" title="Class template us_dst_rules">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%">
14<td valign="top"><img alt="boost.png (6897 bytes)" width="277" height="86" src="../../boost.png"></td>
15<td align="center"><a href="../../index.htm">Home</a></td>
16<td align="center"><a href="../../libs/libraries.htm">Libraries</a></td>
17<td align="center"><a href="../../people/people.htm">People</a></td>
18<td align="center"><a href="../../more/faq.htm">FAQ</a></td>
19<td align="center"><a href="../../more/index.htm">More</a></td>
20</table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="dst_calculator.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2510544"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="us_dst_rules.html"><img src="images/next.png" alt="Next"></a>
24</div>
25<div class="refentry" lang="en">
26<a name="dst_calc_engine"></a><div class="titlepage"></div>
27<div class="refnamediv">
28<h2><span class="refentrytitle">Class template dst_calc_engine</span></h2>
29<p>boost::date_time::dst_calc_engine &#8212; Compile-time configurable daylight savings time calculation engine. </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="bold"><strong>template</strong></span>&lt;<span class="bold"><strong>typename</strong></span> date_type, <span class="bold"><strong>typename</strong></span> time_duration_type, <span class="bold"><strong>typename</strong></span> dst_traits&gt; 
33<span class="bold"><strong>class</strong></span> dst_calc_engine {
34<span class="bold"><strong>public</strong></span>:
35  <span class="emphasis"><em>// types</em></span>
36  <span class="bold"><strong>typedef</strong></span> date_type::year_type                            year_type;    
37  <span class="bold"><strong>typedef</strong></span> date_type::calendar_type                        calendar_type;
38  <span class="bold"><strong>typedef</strong></span> <a href="dst_calculator.html" title="Class template dst_calculator">dst_calculator</a>&lt; date_type, time_duration_type &gt; dstcalc;      
39
40  <span class="emphasis"><em>// <a href="dst_calc_engine.html#id2420605-bb">public static functions</a></em></span>
41  <span class="type">time_is_dst_result</span> 
42  <a href="dst_calc_engine.html#id2416353-bb">local_is_dst</a>(<span class="bold"><strong>const</strong></span> date_type &amp;, <span class="bold"><strong>const</strong></span> time_duration_type &amp;) ;
43  <span class="type"><span class="bold"><strong>bool</strong></span></span> <a href="dst_calc_engine.html#id2423485-bb">is_dst_boundary_day</a>(date_type) ;
44  <span class="type">time_duration_type</span> <a href="dst_calc_engine.html#id2458677-bb">dst_offset</a>() ;
45  <span class="type">date_type</span> <a href="dst_calc_engine.html#id2508391-bb">local_dst_start_day</a>(year_type) ;
46  <span class="type">date_type</span> <a href="dst_calc_engine.html#id2522676-bb">local_dst_end_day</a>(year_type) ;
47};</pre></div>
48<div class="refsect1" lang="en">
49<a name="id2632457"></a><h2>Description</h2>
50<div class="refsect2" lang="en">
51<a name="id2632460"></a><h3>
52<a name="id2420605-bb"></a><code class="computeroutput">dst_calc_engine</code> public static functions</h3>
53<div class="orderedlist"><ol type="1">
54<li>
55<pre class="literallayout"><span class="type">time_is_dst_result</span> 
56<a name="id2416353-bb"></a>local_is_dst(<span class="bold"><strong>const</strong></span> date_type &amp; d, <span class="bold"><strong>const</strong></span> time_duration_type &amp; td) ;</pre>
57<p>Determines if the time is really in DST or not. Also checks for invalid and ambiguous.
58</p>
59</li>
60<li><pre class="literallayout"><span class="type"><span class="bold"><strong>bool</strong></span></span> <a name="id2423485-bb"></a>is_dst_boundary_day(date_type d) ;</pre></li>
61<li><pre class="literallayout"><span class="type">time_duration_type</span> <a name="id2458677-bb"></a>dst_offset() ;</pre></li>
62<li><pre class="literallayout"><span class="type">date_type</span> <a name="id2508391-bb"></a>local_dst_start_day(year_type year) ;</pre></li>
63<li><pre class="literallayout"><span class="type">date_type</span> <a name="id2522676-bb"></a>local_dst_end_day(year_type year) ;</pre></li>
64</ol></div>
65</div>
66</div>
67</div>
68<table width="100%"><tr>
69<td align="left"></td>
70<td align="right"><small>Copyright © 2001-2005 CrystalClear Software, Inc</small></td>
71</tr></table>
72<hr>
73<div class="spirit-nav">
74<a accesskey="p" href="dst_calculator.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2510544"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="us_dst_rules.html"><img src="images/next.png" alt="Next"></a>
75</div>
76</body>
77</html>
Note: See TracBrowser for help on using the repository browser.