Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 12 was 12, checked in by landauf, 17 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 time_duration</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#id2442818" title="Header &lt;boost/date_time/posix_time/posix_time_config.hpp&gt;">
9<link rel="prev" href="id2442758.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="id2442758.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2442818"><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="id2442833"></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="id2442833.html#id2442833construct-copy-destruct">construct/copy/destruct</a></em></span>
46  <a href="id2442833.html#id2442922-bb">time_duration</a>(hour_type, min_type, sec_type, fractional_seconds_type = 0);
47  <a href="id2442833.html#id2442970-bb">time_duration</a>();
48  <a href="id2442833.html#id2442973-bb">time_duration</a>(boost::date_time::special_values);
49  <a href="id2442833.html#id2442994-bb">time_duration</a>(impl_type);
50
51  <span class="emphasis"><em>// <a href="id2442833.html#id2442918-bb">public member functions</a></em></span>
52
53  <span class="emphasis"><em>// <a href="id2442833.html#id2442990-bb">private member functions</a></em></span>
54};</pre></div>
55<div class="refsect1" lang="en">
56<a name="id2677067"></a><h2>Description</h2>
57<div class="refsect2" lang="en">
58<a name="id2677070"></a><h3>
59<a name="id2442833construct-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="id2442922-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="id2442970-bb"></a>time_duration();</pre></li>
64<li><pre class="literallayout"><a name="id2442973-bb"></a>time_duration(boost::date_time::special_values sv);</pre></li>
65<li><pre class="literallayout"><a name="id2442994-bb"></a>time_duration(impl_type ticks);</pre></li>
66</ol></div>
67</div>
68<div class="refsect2" lang="en">
69<a name="id2677150"></a><h3>
70<a name="id2442918-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="id2677169"></a><h3>
75<a name="id2442990-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 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="id2442758.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2442818"><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.