aboutsummaryrefslogtreecommitdiff
path: root/doc/oscl_html/oscl__time_8h.html
blob: b2ddf257c63734278ca0fd26c4d641fb32ee1d32 (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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>oscl: oscl_time.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>oscl_time.h File Reference</h1>
<p>The file <a class="el" href="oscl__time_8h.html" title="The file oscl_time.h defines to classes NTPTime and TimeValue for getting, manipulating...">oscl_time.h</a> defines to classes <a class="el" href="classNTPTime.html" title="The NTPTime class represents a time value as the number of seconds since 0h (UTC)...">NTPTime</a> and <a class="el" href="classTimeValue.html" title="The TimeValue class represents a time value in a format native to the system.">TimeValue</a> for getting, manipulating, and formatting time values. The <a class="el" href="classTimeValue.html" title="The TimeValue class represents a time value in a format native to the system.">TimeValue</a> class is based on the native system time format while <a class="el" href="classNTPTime.html" title="The NTPTime class represents a time value as the number of seconds since 0h (UTC)...">NTPTime</a> is used for the standard Network Time Protocol format.  
<a href="#_details">More...</a></p>
<code>#include &quot;<a class="el" href="oscl__base_8h_source.html">oscl_base.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="osclconfig__time_8h_source.html">osclconfig_time.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="oscl__time_8h_source.html">oscl_int64_utils.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="oscl__int64__utils_8h_source.html">oscl_int64_utils.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="oscl__assert_8h_source.html">oscl_assert.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="oscl__stdstring_8h_source.html">oscl_stdstring.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="oscl__mem__basic__functions_8h_source.html">oscl_mem_basic_functions.h</a>&quot;</code><br/>

<p><a href="oscl__time_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Data Structures</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNTPTime.html">NTPTime</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The <a class="el" href="classNTPTime.html" title="The NTPTime class represents a time value as the number of seconds since 0h (UTC)...">NTPTime</a> class represents a time value as the number of seconds since 0h (UTC) Jan. 1, 1900.  <a href="classNTPTime.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html">TimeValue</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The <a class="el" href="classTimeValue.html" title="The TimeValue class represents a time value in a format native to the system.">TimeValue</a> class represents a time value in a format native to the system.  <a href="classTimeValue.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclbase.html#ga84d4ef38e5682881eb75ff4a64bc38b3">CtimeStrBuf</a> [<a class="el" href="group__osclbase.html#ga0cc83fd35f446400713d1d9f3b2dd4c6">CTIME_BUFFER_SIZE</a>]</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclbase.html#gad13c32c10063619e00563a850f87b86a">PV8601timeStrBuf</a> [<a class="el" href="group__osclbase.html#ga141a5fd80c38f29950e7b7d67d4867b1">PV8601TIME_BUFFER_SIZE</a>]</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclbase.html#ga83f7b514c3cbe5977e2916ca10e11869">ISO8601timeStrBuf</a> [<a class="el" href="group__osclbase.html#ga4469595fff8ac9560ee57d6d9d841063">ISO8601TIME_BUFFER_SIZE</a>]</td></tr>
<tr><td colspan="2"><h2>Enumerations</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclbase.html#ga0423d00e0eb199de523a92031b5a1107">TimeUnits</a> { <a class="el" href="group__osclbase.html#gga0423d00e0eb199de523a92031b5a1107a70367ff8e866216e6a822a2c952abfc1">SECONDS</a> =  0, 
<a class="el" href="group__osclbase.html#gga0423d00e0eb199de523a92031b5a1107a1043c5211bc8c40b382a93bd238c9131">MILLISECONDS</a> =  1, 
<a class="el" href="group__osclbase.html#gga0423d00e0eb199de523a92031b5a1107ac9db1eab6da2865d20c916504baedc90">MICROSECONDS</a> =  2
 }</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><p>The TimeUnits enum can be used when constructing a <a class="el" href="classTimeValue.html" title="The TimeValue class represents a time value in a format native to the system.">TimeValue</a> class. </p>
 <a href="group__osclbase.html#ga0423d00e0eb199de523a92031b5a1107">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_IMPORT_REF void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclbase.html#gaf8168ec6b9c21c8e865b2aa298755545">PV8601ToRFC822</a> (<a class="el" href="group__osclbase.html#gad13c32c10063619e00563a850f87b86a">PV8601timeStrBuf</a> pv8601_buffer, <a class="el" href="group__osclbase.html#ga84d4ef38e5682881eb75ff4a64bc38b3">CtimeStrBuf</a> ctime_buffer)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_IMPORT_REF void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclbase.html#ga1534c1d2b6f0d1a47339d6f83b7bbaff">ISO8601ToRFC822</a> (<a class="el" href="group__osclbase.html#ga83f7b514c3cbe5977e2916ca10e11869">ISO8601timeStrBuf</a> iso8601_buffer, <a class="el" href="group__osclbase.html#ga84d4ef38e5682881eb75ff4a64bc38b3">CtimeStrBuf</a> ctime_buffer)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_IMPORT_REF void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclbase.html#gab50d565fcef75fe4b35a2794a287c69b">RFC822ToPV8601</a> (<a class="el" href="group__osclbase.html#ga84d4ef38e5682881eb75ff4a64bc38b3">CtimeStrBuf</a> ctime_buffer, <a class="el" href="group__osclbase.html#gad13c32c10063619e00563a850f87b86a">PV8601timeStrBuf</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF <a class="el" href="classTimeValue.html">TimeValue</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclbase.html#ga0160b519c243a5c4014441960c1a6513">operator-</a> (const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;a, const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;b)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF <a class="el" href="classTimeValue.html">TimeValue</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclbase.html#gac9801d8727210aa7b54eecb075928ddb">operator+</a> (const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;a, const int32 bSeconds)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF <a class="el" href="classTimeValue.html">TimeValue</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclbase.html#gaf95dddd28ac94a3f770ee5e21e3f651a">operator+</a> (const int32 aSeconds, const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;b)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF <a class="el" href="classTimeValue.html">TimeValue</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclbase.html#gaad205c6ab5de6350a12169ad301ecb99">operator-</a> (const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;a, const int32 bSeconds)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF <a class="el" href="classTimeValue.html">TimeValue</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclbase.html#ga6149e8da543152f53ad88a79f4f407ee">operator-</a> (const int32 aSeconds, const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;b)</td></tr>
<tr><td colspan="2"><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclbase.html#ga0cc83fd35f446400713d1d9f3b2dd4c6">CTIME_BUFFER_SIZE</a> = 26</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclbase.html#ga141a5fd80c38f29950e7b7d67d4867b1">PV8601TIME_BUFFER_SIZE</a> = 21</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclbase.html#ga4469595fff8ac9560ee57d6d9d841063">ISO8601TIME_BUFFER_SIZE</a> = 21</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclbase.html#ga47b0da9361952507ef28f0600d787aa4">USEC_PER_SEC</a> = 1000000</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclbase.html#ga35f59c57e0e2b9e1b5eb78a8bed8160d">MSEC_PER_SEC</a> = 1000</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const uint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__osclbase.html#ga5ddea7a32bba8fc995966bc1dcc7a768">unix_ntp_offset</a> = 2208988800U</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>The file <a class="el" href="oscl__time_8h.html" title="The file oscl_time.h defines to classes NTPTime and TimeValue for getting, manipulating...">oscl_time.h</a> defines to classes <a class="el" href="classNTPTime.html" title="The NTPTime class represents a time value as the number of seconds since 0h (UTC)...">NTPTime</a> and <a class="el" href="classTimeValue.html" title="The TimeValue class represents a time value in a format native to the system.">TimeValue</a> for getting, manipulating, and formatting time values. The <a class="el" href="classTimeValue.html" title="The TimeValue class represents a time value in a format native to the system.">TimeValue</a> class is based on the native system time format while <a class="el" href="classNTPTime.html" title="The NTPTime class represents a time value as the number of seconds since 0h (UTC)...">NTPTime</a> is used for the standard Network Time Protocol format. </p>
</div>
<hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small>
<address style="align: left;"><small>Posting Version: CORE_9.004.1.1 </small>
</small></address>
</body>
</html>