Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/doc/html/id937125.html @ 25

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

added boost

File size: 5.6 KB
Line 
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
4<title>Class time_duration</title>
5<link rel="stylesheet" href="boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
7<link rel="start" href="index.html" title="The Boost C++ Libraries">
8<link rel="up" href="date_time/doxy.html#id937109" title="Header &lt;boost/date_time/posix_time/posix_time_config.hpp&gt;">
9<link rel="prev" href="id901063.html" title="Function operator-=">
10<link rel="next" href="simple_time_rep.html" title="Struct simple_time_rep">
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="id901063.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id937109"><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="simple_time_rep.html"><img src="images/next.png" alt="Next"></a>
24</div>
25<div class="refentry" lang="en">
26<a name="id937125"></a><div class="titlepage"></div>
27<div class="refnamediv">
28<h2><span class="refentrytitle">Class time_duration</span></h2>
29<p>boost::posix_time::time_duration &#8212; Base time duration type. </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">
33<span class="bold"><strong>class</strong></span> time_duration {
34<span class="bold"><strong>public</strong></span>:
35  <span class="emphasis"><em>// types</em></span>
36  <span class="bold"><strong>typedef</strong></span> time_res_traits                          rep_type;               
37  <span class="bold"><strong>typedef</strong></span> time_res_traits::day_type                day_type;               
38  <span class="bold"><strong>typedef</strong></span> time_res_traits::hour_type               hour_type;              
39  <span class="bold"><strong>typedef</strong></span> time_res_traits::min_type                min_type;               
40  <span class="bold"><strong>typedef</strong></span> time_res_traits::sec_type                sec_type;               
41  <span class="bold"><strong>typedef</strong></span> time_res_traits::fractional_seconds_type fractional_seconds_type;
42  <span class="bold"><strong>typedef</strong></span> time_res_traits::tick_type               tick_type;              
43  <span class="bold"><strong>typedef</strong></span> time_res_traits::impl_type               impl_type;              
44
45  <span class="emphasis"><em>// <a href="id937125.html#id937125construct-copy-destruct">construct/copy/destruct</a></em></span>
46  <a href="id937125.html#id1079612-bb">time_duration</a>(hour_type, min_type, sec_type, fractional_seconds_type = 0);
47  <a href="id937125.html#id930715-bb">time_duration</a>();
48  <a href="id937125.html#id930718-bb">time_duration</a>(boost::date_time::special_values);
49  <a href="id937125.html#id861688-bb">time_duration</a>(impl_type);
50
51  <span class="emphasis"><em>// <a href="id937125.html#id1079607-bb">public member functions</a></em></span>
52
53  <span class="emphasis"><em>// <a href="id937125.html#id861682-bb">private member functions</a></em></span>
54};</pre></div>
55<div class="refsect1" lang="en">
56<a name="id1175768"></a><h2>Description</h2>
57<div class="refsect2" lang="en">
58<a name="id1175772"></a><h3>
59<a name="id937125construct-copy-destruct"></a><code class="computeroutput">time_duration</code> construct/copy/destruct</h3>
60<div class="orderedlist"><ol type="1">
61<li><pre class="literallayout"><a name="id1079612-bb"></a>time_duration(hour_type hour, min_type min, sec_type sec,
62              fractional_seconds_type fs = 0);</pre></li>
63<li><pre class="literallayout"><a name="id930715-bb"></a>time_duration();</pre></li>
64<li><pre class="literallayout"><a name="id930718-bb"></a>time_duration(boost::date_time::special_values sv);</pre></li>
65<li><pre class="literallayout"><a name="id861688-bb"></a>time_duration(impl_type ticks);</pre></li>
66</ol></div>
67</div>
68<div class="refsect2" lang="en">
69<a name="id1175848"></a><h3>
70<a name="id1079607-bb"></a><code class="computeroutput">time_duration</code> public member functions</h3>
71<div class="orderedlist"><ol type="1"></ol></div>
72</div>
73<div class="refsect2" lang="en">
74<a name="id1175865"></a><h3>
75<a name="id861682-bb"></a><code class="computeroutput">time_duration</code> private member functions</h3>
76<div class="orderedlist"><ol type="1"></ol></div>
77</div>
78</div>
79</div>
80<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
81<td align="left"></td>
82<td align="right"><small>Copyright © 2001-2005 CrystalClear Software, Inc</small></td>
83</tr></table>
84<hr>
85<div class="spirit-nav">
86<a accesskey="p" href="id901063.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id937109"><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="simple_time_rep.html"><img src="images/next.png" alt="Next"></a>
87</div>
88</body>
89</html>
Note: See TracBrowser for help on using the repository browser.