Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

added boost

File size: 4.8 KB
Line 
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
4<title>Struct c_time</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#id2434806" title="Header &lt;boost/date_time/c_time.hpp&gt;">
9<link rel="prev" href="c_local_adjustor.html" title="Class template c_local_adjustor">
10<link rel="next" href="constrained_value.html" title="Class template constrained_value">
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="c_local_adjustor.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2434806"><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="constrained_value.html"><img src="images/next.png" alt="Next"></a>
24</div>
25<div class="refentry" lang="en">
26<a name="c_time"></a><div class="titlepage"></div>
27<div class="refnamediv">
28<h2><span class="refentrytitle">Struct c_time</span></h2>
29<p>boost::date_time::c_time &#8212; Provides a uniform interface to some 'ctime' functions. </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>struct</strong></span> c_time {
34
35  <span class="emphasis"><em>// <a href="c_time.html#id2399818-bb">public static functions</a></em></span>
36  <span class="type">std::tm *</span> <a href="c_time.html#id2506205-bb">localtime</a>(<span class="bold"><strong>const</strong></span> std::time_t *, std::tm *) ;
37  <span class="type">std::tm *</span> <a href="c_time.html#id2402870-bb">gmtime</a>(<span class="bold"><strong>const</strong></span> std::time_t *, std::tm *) ;
38  <span class="type">std::tm *</span> <a href="c_time.html#id2453184-bb">localtime</a>(<span class="bold"><strong>const</strong></span> std::time_t *, std::tm *) ;
39  <span class="type">std::tm *</span> <a href="c_time.html#id2505130-bb">gmtime</a>(<span class="bold"><strong>const</strong></span> std::time_t *, std::tm *) ;
40};</pre></div>
41<div class="refsect1" lang="en">
42<a name="id2606873"></a><h2>Description</h2>
43<p>Provides a uniform interface to some ctime functions and their '_r' counterparts. The '_r' functions require a pointer to a user created std::tm struct whereas the regular functions use a staticly created struct and return a pointer to that. These wrapper functions require the user to create a std::tm struct and send in a pointer to it. A pointer to the user created struct will be returned. </p>
44<div class="refsect2" lang="en">
45<a name="id2606886"></a><h3>
46<a name="id2399818-bb"></a><code class="computeroutput">c_time</code> public static functions</h3>
47<div class="orderedlist"><ol type="1">
48<li><pre class="literallayout"><span class="type">std::tm *</span> <a name="id2506205-bb"></a>localtime(<span class="bold"><strong>const</strong></span> std::time_t * t, std::tm * result) ;</pre></li>
49<li><pre class="literallayout"><span class="type">std::tm *</span> <a name="id2402870-bb"></a>gmtime(<span class="bold"><strong>const</strong></span> std::time_t * t, std::tm * result) ;</pre></li>
50<li><pre class="literallayout"><span class="type">std::tm *</span> <a name="id2453184-bb"></a>localtime(<span class="bold"><strong>const</strong></span> std::time_t * t, std::tm * result) ;</pre></li>
51<li><pre class="literallayout"><span class="type">std::tm *</span> <a name="id2505130-bb"></a>gmtime(<span class="bold"><strong>const</strong></span> std::time_t * t, std::tm * result) ;</pre></li>
52</ol></div>
53</div>
54</div>
55</div>
56<table width="100%"><tr>
57<td align="left"></td>
58<td align="right"><small>Copyright © 2001-2005 CrystalClear Software, Inc</small></td>
59</tr></table>
60<hr>
61<div class="spirit-nav">
62<a accesskey="p" href="c_local_adjustor.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2434806"><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="constrained_value.html"><img src="images/next.png" alt="Next"></a>
63</div>
64</body>
65</html>
Note: See TracBrowser for help on using the repository browser.