summaryrefslogtreecommitdiff
path: root/doc/html/counted_time_system.html
blob: 114369d6a9590370366b40e8137f24af9687ce51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Class template counted_time_system</title>
<link rel="stylesheet" href="boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<link rel="start" href="index.html" title="The Boost C++ Libraries">
<link rel="up" href="date_time/doxy.html#id2471523" title="Header &lt;boost/date_time/time_system_counted.hpp&gt;">
<link rel="prev" href="counted_time_rep.html" title="Struct template counted_time_rep">
<link rel="next" href="split_timedate_system.html" title="Class template split_timedate_system">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%">
<td valign="top"><img alt="boost.png (6897 bytes)" width="277" height="86" src="../../boost.png"></td>
<td align="center"><a href="../../index.htm">Home</a></td>
<td align="center"><a href="../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="../../people/people.htm">People</a></td>
<td align="center"><a href="../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../more/index.htm">More</a></td>
</table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="counted_time_rep.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2471523"><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="split_timedate_system.html"><img src="images/next.png" alt="Next"></a>
</div>
<div class="refentry" lang="en">
<a name="counted_time_system"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class template counted_time_system</span></h2>
<p>boost::date_time::counted_time_system &#8212; An unadjusted time system implementation. </p>
</div>
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<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> time_rep&gt; 
<span class="bold"><strong>class</strong></span> counted_time_system {
<span class="bold"><strong>public</strong></span>:
  <span class="emphasis"><em>// types</em></span>
  <span class="bold"><strong>typedef</strong></span> time_rep                                    time_rep_type;          
  <span class="bold"><strong>typedef</strong></span> time_rep_type::impl_type                    impl_type;              
  <span class="bold"><strong>typedef</strong></span> time_rep_type::time_duration_type           time_duration_type;     
  <span class="bold"><strong>typedef</strong></span> time_duration_type::fractional_seconds_type fractional_seconds_type;
  <span class="bold"><strong>typedef</strong></span> time_rep_type::date_type                    date_type;              
  <span class="bold"><strong>typedef</strong></span> time_rep_type::date_duration_type           date_duration_type;     

  <span class="emphasis"><em>// <a href="counted_time_system.html#id2483706-bb">public static functions</a></em></span>
  <span class="bold"><strong>template</strong></span>&lt;<span class="bold"><strong>typename</strong></span> T&gt; <span class="type"><span class="bold"><strong>void</strong></span></span> <a href="counted_time_system.html#id2483710-bb">unused_var</a>(<span class="bold"><strong>const</strong></span> T &amp;) ;
  <span class="type">time_rep_type</span> 
  <a href="counted_time_system.html#id2483741-bb">get_time_rep</a>(<span class="bold"><strong>const</strong></span> date_type &amp;, <span class="bold"><strong>const</strong></span> time_duration_type &amp;, 
               date_time::dst_flags = not_dst) ;
  <span class="type">time_rep_type</span> <a href="counted_time_system.html#id2483788-bb">get_time_rep</a>(special_values) ;
  <span class="type">date_type</span> <a href="counted_time_system.html#id2483811-bb">get_date</a>(<span class="bold"><strong>const</strong></span> time_rep_type &amp;) ;
  <span class="type">time_duration_type</span> <a href="counted_time_system.html#id2483833-bb">get_time_of_day</a>(<span class="bold"><strong>const</strong></span> time_rep_type &amp;) ;
  <span class="type">std::string</span> <a href="counted_time_system.html#id2483856-bb">zone_name</a>(<span class="bold"><strong>const</strong></span> time_rep_type &amp;) ;
  <span class="type"><span class="bold"><strong>bool</strong></span></span> <a href="counted_time_system.html#id2472212-bb">is_equal</a>(<span class="bold"><strong>const</strong></span> time_rep_type &amp;, <span class="bold"><strong>const</strong></span> time_rep_type &amp;) ;
  <span class="type"><span class="bold"><strong>bool</strong></span></span> <a href="counted_time_system.html#id2472243-bb">is_less</a>(<span class="bold"><strong>const</strong></span> time_rep_type &amp;, <span class="bold"><strong>const</strong></span> time_rep_type &amp;) ;
  <span class="type">time_rep_type</span> <a href="counted_time_system.html#id2472275-bb">add_days</a>(<span class="bold"><strong>const</strong></span> time_rep_type &amp;, <span class="bold"><strong>const</strong></span> date_duration_type &amp;) ;
  <span class="type">time_rep_type</span> 
  <a href="counted_time_system.html#id2472307-bb">subtract_days</a>(<span class="bold"><strong>const</strong></span> time_rep_type &amp;, <span class="bold"><strong>const</strong></span> date_duration_type &amp;) ;
  <span class="type">time_rep_type</span> 
  <a href="counted_time_system.html#id2472340-bb">subtract_time_duration</a>(<span class="bold"><strong>const</strong></span> time_rep_type &amp;, <span class="bold"><strong>const</strong></span> time_duration_type &amp;) ;
  <span class="type">time_rep_type</span> <a href="counted_time_system.html#id2472372-bb">add_time_duration</a>(<span class="bold"><strong>const</strong></span> time_rep_type &amp;, time_duration_type) ;
  <span class="type">time_duration_type</span> 
  <a href="counted_time_system.html#id2478024-bb">subtract_times</a>(<span class="bold"><strong>const</strong></span> time_rep_type &amp;, <span class="bold"><strong>const</strong></span> time_rep_type &amp;) ;
};</pre></div>
<div class="refsect1" lang="en">
<a name="id2662497"></a><h2>Description</h2>
<div class="refsect2" lang="en">
<a name="id2662500"></a><h3>
<a name="id2483706-bb"></a><code class="computeroutput">counted_time_system</code> public static functions</h3>
<div class="orderedlist"><ol type="1">
<li><pre class="literallayout"><span class="bold"><strong>template</strong></span>&lt;<span class="bold"><strong>typename</strong></span> T&gt; <span class="type"><span class="bold"><strong>void</strong></span></span> <a name="id2483710-bb"></a>unused_var(<span class="bold"><strong>const</strong></span> T &amp; ) ;</pre></li>
<li><pre class="literallayout"><span class="type">time_rep_type</span> 
<a name="id2483741-bb"></a>get_time_rep(<span class="bold"><strong>const</strong></span> date_type &amp; day, <span class="bold"><strong>const</strong></span> time_duration_type &amp; tod, 
             date_time::dst_flags dst = not_dst) ;</pre></li>
<li><pre class="literallayout"><span class="type">time_rep_type</span> <a name="id2483788-bb"></a>get_time_rep(special_values sv) ;</pre></li>
<li><pre class="literallayout"><span class="type">date_type</span> <a name="id2483811-bb"></a>get_date(<span class="bold"><strong>const</strong></span> time_rep_type &amp; val) ;</pre></li>
<li><pre class="literallayout"><span class="type">time_duration_type</span> <a name="id2483833-bb"></a>get_time_of_day(<span class="bold"><strong>const</strong></span> time_rep_type &amp; val) ;</pre></li>
<li><pre class="literallayout"><span class="type">std::string</span> <a name="id2483856-bb"></a>zone_name(<span class="bold"><strong>const</strong></span> time_rep_type &amp; ) ;</pre></li>
<li><pre class="literallayout"><span class="type"><span class="bold"><strong>bool</strong></span></span> <a name="id2472212-bb"></a>is_equal(<span class="bold"><strong>const</strong></span> time_rep_type &amp; lhs, <span class="bold"><strong>const</strong></span> time_rep_type &amp; rhs) ;</pre></li>
<li><pre class="literallayout"><span class="type"><span class="bold"><strong>bool</strong></span></span> <a name="id2472243-bb"></a>is_less(<span class="bold"><strong>const</strong></span> time_rep_type &amp; lhs, <span class="bold"><strong>const</strong></span> time_rep_type &amp; rhs) ;</pre></li>
<li><pre class="literallayout"><span class="type">time_rep_type</span> 
<a name="id2472275-bb"></a>add_days(<span class="bold"><strong>const</strong></span> time_rep_type &amp; base, <span class="bold"><strong>const</strong></span> date_duration_type &amp; dd) ;</pre></li>
<li><pre class="literallayout"><span class="type">time_rep_type</span> 
<a name="id2472307-bb"></a>subtract_days(<span class="bold"><strong>const</strong></span> time_rep_type &amp; base, <span class="bold"><strong>const</strong></span> date_duration_type &amp; dd) ;</pre></li>
<li><pre class="literallayout"><span class="type">time_rep_type</span> 
<a name="id2472340-bb"></a>subtract_time_duration(<span class="bold"><strong>const</strong></span> time_rep_type &amp; base, 
                       <span class="bold"><strong>const</strong></span> time_duration_type &amp; td) ;</pre></li>
<li><pre class="literallayout"><span class="type">time_rep_type</span> 
<a name="id2472372-bb"></a>add_time_duration(<span class="bold"><strong>const</strong></span> time_rep_type &amp; base, time_duration_type td) ;</pre></li>
<li><pre class="literallayout"><span class="type">time_duration_type</span> 
<a name="id2478024-bb"></a>subtract_times(<span class="bold"><strong>const</strong></span> time_rep_type &amp; lhs, <span class="bold"><strong>const</strong></span> time_rep_type &amp; rhs) ;</pre></li>
</ol></div>
</div>
</div>
</div>
<table width="100%"><tr>
<td align="left"></td>
<td align="right"><small>Copyright © 2001-2005 CrystalClear Software, Inc</small></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="counted_time_rep.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2471523"><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="split_timedate_system.html"><img src="images/next.png" alt="Next"></a>
</div>
</body>
</html>