1 | <html> |
---|
2 | <head> |
---|
3 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
---|
4 | <title>Class template split_timedate_system</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#id2478063" title="Header <boost/date_time/time_system_split.hpp>"> |
---|
9 | <link rel="prev" href="counted_time_system.html" title="Class template counted_time_system"> |
---|
10 | <link rel="next" href="time_zone_base.html" title="Class template time_zone_base"> |
---|
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="counted_time_system.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2478063"><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="time_zone_base.html"><img src="images/next.png" alt="Next"></a> |
---|
24 | </div> |
---|
25 | <div class="refentry" lang="en"> |
---|
26 | <a name="split_timedate_system"></a><div class="titlepage"></div> |
---|
27 | <div class="refnamediv"> |
---|
28 | <h2><span class="refentrytitle">Class template split_timedate_system</span></h2> |
---|
29 | <p>boost::date_time::split_timedate_system — An unadjusted time system implementation. </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><<span class="bold"><strong>typename</strong></span> config, boost::int32_t ticks_per_second> |
---|
33 | <span class="bold"><strong>class</strong></span> split_timedate_system { |
---|
34 | <span class="bold"><strong>public</strong></span>: |
---|
35 | <span class="emphasis"><em>// types</em></span> |
---|
36 | <span class="bold"><strong>typedef</strong></span> config::time_rep_type time_rep_type; |
---|
37 | <span class="bold"><strong>typedef</strong></span> config::date_type date_type; |
---|
38 | <span class="bold"><strong>typedef</strong></span> config::time_duration_type time_duration_type; |
---|
39 | <span class="bold"><strong>typedef</strong></span> config::date_duration_type date_duration_type; |
---|
40 | <span class="bold"><strong>typedef</strong></span> config::int_type int_type; |
---|
41 | <span class="bold"><strong>typedef</strong></span> config::resolution_traits resolution_traits; |
---|
42 | <span class="bold"><strong>typedef</strong></span> <a href="wrapping_int.html" title="Class template wrapping_int">date_time::wrapping_int</a>< int_type, INT64_C(86400)*ticks_per_second wrap_int_type; |
---|
43 | <span class="bold"><strong>typedef</strong></span> <a href="wrapping_int.html" title="Class template wrapping_int">date_time::wrapping_int</a>< int_type, ticks_per_day > wrap_int_type; |
---|
44 | |
---|
45 | <span class="emphasis"><em>// <a href="split_timedate_system.html#id2478183-bb">public static functions</a></em></span> |
---|
46 | <span class="type">time_rep_type</span> <a href="split_timedate_system.html#id2479799-bb">get_time_rep</a>(special_values) ; |
---|
47 | <span class="type">time_rep_type</span> |
---|
48 | <a href="split_timedate_system.html#id2479822-bb">get_time_rep</a>(<span class="bold"><strong>const</strong></span> date_type &, <span class="bold"><strong>const</strong></span> time_duration_type &, |
---|
49 | date_time::dst_flags = not_dst) ; |
---|
50 | <span class="type">date_type</span> <a href="split_timedate_system.html#id2479868-bb">get_date</a>(<span class="bold"><strong>const</strong></span> time_rep_type &) ; |
---|
51 | <span class="type">time_duration_type</span> <a href="split_timedate_system.html#id2479890-bb">get_time_of_day</a>(<span class="bold"><strong>const</strong></span> time_rep_type &) ; |
---|
52 | <span class="type">std::string</span> <a href="split_timedate_system.html#id2479913-bb">zone_name</a>(<span class="bold"><strong>const</strong></span> time_rep_type &) ; |
---|
53 | <span class="type"><span class="bold"><strong>bool</strong></span></span> <a href="split_timedate_system.html#id2479935-bb">is_equal</a>(<span class="bold"><strong>const</strong></span> time_rep_type &, <span class="bold"><strong>const</strong></span> time_rep_type &) ; |
---|
54 | <span class="type"><span class="bold"><strong>bool</strong></span></span> <a href="split_timedate_system.html#id2479967-bb">is_less</a>(<span class="bold"><strong>const</strong></span> time_rep_type &, <span class="bold"><strong>const</strong></span> time_rep_type &) ; |
---|
55 | <span class="type">time_rep_type</span> <a href="split_timedate_system.html#id2480000-bb">add_days</a>(<span class="bold"><strong>const</strong></span> time_rep_type &, <span class="bold"><strong>const</strong></span> date_duration_type &) ; |
---|
56 | <span class="type">time_rep_type</span> |
---|
57 | <a href="split_timedate_system.html#id2443750-bb">subtract_days</a>(<span class="bold"><strong>const</strong></span> time_rep_type &, <span class="bold"><strong>const</strong></span> date_duration_type &) ; |
---|
58 | <span class="type">time_rep_type</span> |
---|
59 | <a href="split_timedate_system.html#id2443783-bb">subtract_time_duration</a>(<span class="bold"><strong>const</strong></span> time_rep_type &, <span class="bold"><strong>const</strong></span> time_duration_type &) ; |
---|
60 | <span class="type">time_rep_type</span> <a href="split_timedate_system.html#id2443815-bb">add_time_duration</a>(<span class="bold"><strong>const</strong></span> time_rep_type &, time_duration_type) ; |
---|
61 | <span class="type">time_duration_type</span> |
---|
62 | <a href="split_timedate_system.html#id2443848-bb">subtract_times</a>(<span class="bold"><strong>const</strong></span> time_rep_type &, <span class="bold"><strong>const</strong></span> time_rep_type &) ; |
---|
63 | |
---|
64 | <span class="emphasis"><em>// <a href="split_timedate_system.html#id2443881-bb">private member functions</a></em></span> |
---|
65 | <span class="type"></span> <a href="split_timedate_system.html#id2443886-bb">BOOST_STATIC_CONSTANT</a>(int_type, |
---|
66 | ticks_per_day = INT64_C(86400)*config::tick_per_second) ; |
---|
67 | };</pre></div> |
---|
68 | <div class="refsect1" lang="en"> |
---|
69 | <a name="id2663411"></a><h2>Description</h2> |
---|
70 | <div class="refsect2" lang="en"> |
---|
71 | <a name="id2663414"></a><h3> |
---|
72 | <a name="id2478183-bb"></a><code class="computeroutput">split_timedate_system</code> public static functions</h3> |
---|
73 | <div class="orderedlist"><ol type="1"> |
---|
74 | <li><pre class="literallayout"><span class="type">time_rep_type</span> <a name="id2479799-bb"></a>get_time_rep(special_values sv) ;</pre></li> |
---|
75 | <li><pre class="literallayout"><span class="type">time_rep_type</span> |
---|
76 | <a name="id2479822-bb"></a>get_time_rep(<span class="bold"><strong>const</strong></span> date_type & day, <span class="bold"><strong>const</strong></span> time_duration_type & tod, |
---|
77 | date_time::dst_flags dst = not_dst) ;</pre></li> |
---|
78 | <li><pre class="literallayout"><span class="type">date_type</span> <a name="id2479868-bb"></a>get_date(<span class="bold"><strong>const</strong></span> time_rep_type & val) ;</pre></li> |
---|
79 | <li><pre class="literallayout"><span class="type">time_duration_type</span> <a name="id2479890-bb"></a>get_time_of_day(<span class="bold"><strong>const</strong></span> time_rep_type & val) ;</pre></li> |
---|
80 | <li><pre class="literallayout"><span class="type">std::string</span> <a name="id2479913-bb"></a>zone_name(<span class="bold"><strong>const</strong></span> time_rep_type & ) ;</pre></li> |
---|
81 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>bool</strong></span></span> <a name="id2479935-bb"></a>is_equal(<span class="bold"><strong>const</strong></span> time_rep_type & lhs, <span class="bold"><strong>const</strong></span> time_rep_type & rhs) ;</pre></li> |
---|
82 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>bool</strong></span></span> <a name="id2479967-bb"></a>is_less(<span class="bold"><strong>const</strong></span> time_rep_type & lhs, <span class="bold"><strong>const</strong></span> time_rep_type & rhs) ;</pre></li> |
---|
83 | <li><pre class="literallayout"><span class="type">time_rep_type</span> |
---|
84 | <a name="id2480000-bb"></a>add_days(<span class="bold"><strong>const</strong></span> time_rep_type & base, <span class="bold"><strong>const</strong></span> date_duration_type & dd) ;</pre></li> |
---|
85 | <li><pre class="literallayout"><span class="type">time_rep_type</span> |
---|
86 | <a name="id2443750-bb"></a>subtract_days(<span class="bold"><strong>const</strong></span> time_rep_type & base, <span class="bold"><strong>const</strong></span> date_duration_type & dd) ;</pre></li> |
---|
87 | <li><pre class="literallayout"><span class="type">time_rep_type</span> |
---|
88 | <a name="id2443783-bb"></a>subtract_time_duration(<span class="bold"><strong>const</strong></span> time_rep_type & base, |
---|
89 | <span class="bold"><strong>const</strong></span> time_duration_type & td) ;</pre></li> |
---|
90 | <li><pre class="literallayout"><span class="type">time_rep_type</span> |
---|
91 | <a name="id2443815-bb"></a>add_time_duration(<span class="bold"><strong>const</strong></span> time_rep_type & base, time_duration_type td) ;</pre></li> |
---|
92 | <li><pre class="literallayout"><span class="type">time_duration_type</span> |
---|
93 | <a name="id2443848-bb"></a>subtract_times(<span class="bold"><strong>const</strong></span> time_rep_type & lhs, <span class="bold"><strong>const</strong></span> time_rep_type & rhs) ;</pre></li> |
---|
94 | </ol></div> |
---|
95 | </div> |
---|
96 | <div class="refsect2" lang="en"> |
---|
97 | <a name="id2663772"></a><h3> |
---|
98 | <a name="id2443881-bb"></a><code class="computeroutput">split_timedate_system</code> private member functions</h3> |
---|
99 | <div class="orderedlist"><ol type="1"><li><pre class="literallayout"><span class="type"></span> <a name="id2443886-bb"></a>BOOST_STATIC_CONSTANT(int_type , |
---|
100 | ticks_per_day = INT64_C(86400)*config::tick_per_second) ;</pre></li></ol></div> |
---|
101 | </div> |
---|
102 | </div> |
---|
103 | </div> |
---|
104 | <table width="100%"><tr> |
---|
105 | <td align="left"></td> |
---|
106 | <td align="right"><small>Copyright © 2001-2005 CrystalClear Software, Inc</small></td> |
---|
107 | </tr></table> |
---|
108 | <hr> |
---|
109 | <div class="spirit-nav"> |
---|
110 | <a accesskey="p" href="counted_time_system.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2478063"><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="time_zone_base.html"><img src="images/next.png" alt="Next"></a> |
---|
111 | </div> |
---|
112 | </body> |
---|
113 | </html> |
---|