Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

added boost

File size: 5.3 KB
Line 
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
4<title>Class template day_clock</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#id2411166" title="Header &lt;boost/date_time/date_clock_device.hpp&gt;">
9<link rel="prev" href="boost/date_time/date.html" title="Class template date">
10<link rel="next" href="date_duration.html" title="Class template date_duration">
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="boost/date_time/date.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2411166"><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="date_duration.html"><img src="images/next.png" alt="Next"></a>
24</div>
25<div class="refentry" lang="en">
26<a name="day_clock"></a><div class="titlepage"></div>
27<div class="refnamediv">
28<h2><span class="refentrytitle">Class template day_clock</span></h2>
29<p>boost::date_time::day_clock &#8212; A clock providing day level services based on C time_t capabilities. </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&gt; 
33<span class="bold"><strong>class</strong></span> day_clock {
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::ymd_type ymd_type;
37
38  <span class="emphasis"><em>// <a href="day_clock.html#id2419143-bb">public static functions</a></em></span>
39  <span class="type">date_type</span> <a href="day_clock.html#id2419147-bb">local_day</a>() ;
40  <span class="type">date_type::ymd_type</span> <a href="day_clock.html#id2467054-bb">local_day_ymd</a>() ;
41  <span class="type">date_type::ymd_type</span> <a href="day_clock.html#id2396215-bb">universal_day_ymd</a>() ;
42  <span class="type">date_type</span> <a href="day_clock.html#id2467300-bb">universal_day</a>() ;
43
44  <span class="emphasis"><em>// <a href="day_clock.html#id2441109-bb">private static functions</a></em></span>
45  <span class="type">::std::tm *</span> <a href="day_clock.html#id2441113-bb">get_local_time</a>(std::tm &amp;) ;
46  <span class="type">::std::tm *</span> <a href="day_clock.html#id2423655-bb">get_universal_time</a>(std::tm &amp;) ;
47};</pre></div>
48<div class="refsect1" lang="en">
49<a name="id2609357"></a><h2>Description</h2>
50<p>This clock uses Posix interfaces as its implementation and hence uses the timezone settings of the operating system. Incorrect user settings will result in incorrect results for the calls to local_day. </p>
51<div class="refsect2" lang="en">
52<a name="id2609366"></a><h3>
53<a name="id2419143-bb"></a><code class="computeroutput">day_clock</code> public static functions</h3>
54<div class="orderedlist"><ol type="1">
55<li><pre class="literallayout"><span class="type">date_type</span> <a name="id2419147-bb"></a>local_day() ;</pre></li>
56<li><pre class="literallayout"><span class="type">date_type::ymd_type</span> <a name="id2467054-bb"></a>local_day_ymd() ;</pre></li>
57<li><pre class="literallayout"><span class="type">date_type::ymd_type</span> <a name="id2396215-bb"></a>universal_day_ymd() ;</pre></li>
58<li><pre class="literallayout"><span class="type">date_type</span> <a name="id2467300-bb"></a>universal_day() ;</pre></li>
59</ol></div>
60</div>
61<div class="refsect2" lang="en">
62<a name="id2609457"></a><h3>
63<a name="id2441109-bb"></a><code class="computeroutput">day_clock</code> private static functions</h3>
64<div class="orderedlist"><ol type="1">
65<li><pre class="literallayout"><span class="type">::std::tm *</span> <a name="id2441113-bb"></a>get_local_time(std::tm &amp; result) ;</pre></li>
66<li><pre class="literallayout"><span class="type">::std::tm *</span> <a name="id2423655-bb"></a>get_universal_time(std::tm &amp; result) ;</pre></li>
67</ol></div>
68</div>
69</div>
70</div>
71<table width="100%"><tr>
72<td align="left"></td>
73<td align="right"><small>Copyright © 2001-2005 CrystalClear Software, Inc</small></td>
74</tr></table>
75<hr>
76<div class="spirit-nav">
77<a accesskey="p" href="boost/date_time/date.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2411166"><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="date_duration.html"><img src="images/next.png" alt="Next"></a>
78</div>
79</body>
80</html>
Note: See TracBrowser for help on using the repository browser.