1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> 3 <title>oscl_time.h File Reference</title> 4 <link href="doxygen.css" rel="stylesheet" type="text/css"> 5 </head><body> 6 <!-- Generated by Doxygen 1.2.18 --> 7 <center> 8 <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> </center> 9 <hr><h1>oscl_time.h File Reference</h1>The file <a class="el" href="oscl__time_8h.html">oscl_time.h</a> defines to classes <a class="el" href="classNTPTime.html">NTPTime</a> and <a class="el" href="classTimeValue.html">TimeValue</a> for getting, manipulating, and formatting time values. The <a class="el" href="classTimeValue.html">TimeValue</a> class is based on the native system time format while <a class="el" href="classNTPTime.html">NTPTime</a> is used for the standard Network Time Protocol format. 10 <a href="#_details">More...</a> 11 <p> 12 <code>#include "<a class="el" href="oscl__base_8h-source.html">oscl_base.h</a>"</code><br> 13 <code>#include "<a class="el" href="osclconfig__time_8h-source.html">osclconfig_time.h</a>"</code><br> 14 <code>#include "<a class="el" href="oscl__int64__utils_8h-source.html">oscl_int64_utils.h</a>"</code><br> 15 <code>#include "oscl_time.inl"</code><br> 16 17 <p> 18 <a href="oscl__time_8h-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0> 19 <tr><td></td></tr> 20 <tr><td colspan=2><br><h2>Data Structures</h2></td></tr> 21 <tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classNTPTime.html">NTPTime</a></td></tr> 22 <tr><td> </td><td><font size=-1><em>The NTPTime class represents a time value as the number of seconds since 0h (UTC) Jan. 1, 1900.</em> <a href="classNTPTime.html#_details">More...</a><em></em></font><br><br></td></tr> 23 <tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classTimeValue.html">TimeValue</a></td></tr> 24 <tr><td> </td><td><font size=-1><em>The TimeValue class represents a time value in a format native to the system.</em> <a href="classTimeValue.html#_details">More...</a><em></em></font><br><br></td></tr> 25 <tr><td colspan=2><br><h2>Typedefs</h2></td></tr> 26 <tr><td nowrap align=right valign=top>typedef char </td><td valign=bottom><a class="el" href="group__osclbase.html#a2">CtimeStrBuf</a> [<a class="el" href="group__osclbase.html#a0">CTIME_BUFFER_SIZE</a>]</td></tr> 27 <tr><td nowrap align=right valign=top>typedef char </td><td valign=bottom><a class="el" href="group__osclbase.html#a3">PV8601timeStrBuf</a> [<a class="el" href="group__osclbase.html#a1">PV8601TIME_BUFFER_SIZE</a>]</td></tr> 28 <tr><td colspan=2><br><h2>Enumerations</h2></td></tr> 29 <tr><td nowrap align=right valign=top>enum </td><td valign=bottom><a class="el" href="group__osclbase.html#a109">TimeUnits</a> { <a class="el" href="group__osclbase.html#a109a10">SECONDS</a> = 0, 30 <a class="el" href="group__osclbase.html#a109a11">MILLISECONDS</a> = 1, 31 <a class="el" href="group__osclbase.html#a109a12">MICROSECONDS</a> = 2 32 }</td></tr> 33 <tr><td> </td><td><font size=-1><em>The TimeUnits enum can be used when constructing a <a class="el" href="classTimeValue.html">TimeValue</a> class.</em> <a href="group__osclbase.html#a109">More...</a><em></em></font><br><br></td></tr> 34 <tr><td colspan=2><br><h2>Functions</h2></td></tr> 35 <tr><td nowrap align=right valign=top>OSCL_IMPORT_REF void </td><td valign=bottom><a class="el" href="group__osclbase.html#a75">PV8601ToRFC822</a> (<a class="el" href="group__osclbase.html#a3">PV8601timeStrBuf</a> pv8601_buffer, <a class="el" href="group__osclbase.html#a2">CtimeStrBuf</a> ctime_buffer)</td></tr> 36 <tr><td nowrap align=right valign=top>OSCL_IMPORT_REF void </td><td valign=bottom><a class="el" href="group__osclbase.html#a76">RFC822ToPV8601</a> (<a class="el" href="group__osclbase.html#a2">CtimeStrBuf</a> ctime_buffer, <a class="el" href="group__osclbase.html#a3">PV8601timeStrBuf</a>)</td></tr> 37 <tr><td nowrap align=right valign=top>OSCL_COND_IMPORT_REF <a class="el" href="classTimeValue.html">TimeValue</a> </td><td valign=bottom><a class="el" href="group__osclbase.html#a77">operator-</a> (const <a class="el" href="classTimeValue.html">TimeValue</a> &a, const <a class="el" href="classTimeValue.html">TimeValue</a> &b)</td></tr> 38 <tr><td colspan=2><br><h2>Variables</h2></td></tr> 39 <tr><td nowrap align=right valign=top>const int </td><td valign=bottom><a class="el" href="group__osclbase.html#a0">CTIME_BUFFER_SIZE</a> = 26</td></tr> 40 <tr><td nowrap align=right valign=top>const int </td><td valign=bottom><a class="el" href="group__osclbase.html#a1">PV8601TIME_BUFFER_SIZE</a> = 21</td></tr> 41 <tr><td nowrap align=right valign=top>const long </td><td valign=bottom><a class="el" href="group__osclbase.html#a4">USEC_PER_SEC</a> = 1000000</td></tr> 42 <tr><td nowrap align=right valign=top>const long </td><td valign=bottom><a class="el" href="group__osclbase.html#a5">MSEC_PER_SEC</a> = 1000</td></tr> 43 <tr><td nowrap align=right valign=top>const uint32 </td><td valign=bottom><a class="el" href="group__osclbase.html#a9">unix_ntp_offset</a> = 2208988800U</td></tr> 44 </table> 45 <hr><a name="_details"></a><h2>Detailed Description</h2> 46 The file <a class="el" href="oscl__time_8h.html">oscl_time.h</a> defines to classes <a class="el" href="classNTPTime.html">NTPTime</a> and <a class="el" href="classTimeValue.html">TimeValue</a> for getting, manipulating, and formatting time values. The <a class="el" href="classTimeValue.html">TimeValue</a> class is based on the native system time format while <a class="el" href="classNTPTime.html">NTPTime</a> is used for the standard Network Time Protocol format. 47 <p> 48 49 <p> 50 <hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small> 51 <address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small> 52 </small></address> 53 </body> 54 </html> 55