<!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>Barry: 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.2-20100208 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="dir_65781e9408669bb8d7d9c025fdb5fe86.html">src</a> </div> </div> <div class="contents"> <h1>time.h File Reference</h1> <p>Time related conversion routines. <a href="#_details">More...</a></p> <code>#include "<a class="el" href="dll_8h_source.html">dll.h</a>"</code><br/> <code>#include <sys/time.h></code><br/> <code>#include <<a class="el" href="time_8h_source.html">time.h</a>></code><br/> <code>#include <stdint.h></code><br/> <div class="dynheader"> Include dependency graph for time.h:</div> <div class="dynsection"> <div class="center"><img src="time_8h__incl.png" border="0" usemap="#time_8h_map" alt=""/></div> <map name="time_8h_map" id="time_8h"> <area shape="rect" id="node3" href="dll_8h.html" title="Macros for handling DLL/library API visibility." alt="" coords="5,86,51,117"/></map> </div> <div class="dynheader"> This graph shows which files directly or indirectly include this file:</div> <div class="dynsection"> <div class="center"><img src="time_8h__dep__incl.png" border="0" usemap="#time_8hdep_map" alt=""/></div> <map name="time_8hdep_map" id="time_8hdep"> <area shape="rect" id="node3" href="tzwrapper_8h.html" title="Timezone adjustment class, wrapping the TZ environment variable to make struct tm..." alt="" coords="521,166,612,197"/><area shape="rect" id="node11" href="vformat_8h_source.html" title="vformat.h" alt="" coords="301,86,376,117"/><area shape="rect" id="node43" href="cbarry_8h.html" title="Main header file for Barry C API - incomplete." alt="" coords="527,86,596,117"/><area shape="rect" id="node45" href="dataqueue_8cc.html" title="FIFO queue of Data objects." alt="" coords="620,86,724,117"/><area shape="rect" id="node48" href="m__javaloader_8cc.html" title="Mode class for the JavaLoader mode." alt="" coords="748,86,871,117"/><area shape="rect" id="node50" href="m__jvmdebug_8cc.html" title="Mode class for the JVMDebug mode." alt="" coords="895,86,1009,117"/><area shape="rect" id="node52" href="r__calendar_8cc.html" title="Blackberry database record parser class for calendar records." alt="" coords="1033,86,1135,117"/><area shape="rect" id="node54" href="r__calllog_8cc.html" title="Record parsing class for the phone call logs database." alt="" coords="1159,86,1249,117"/><area shape="rect" id="node56" href="r__contact_8cc.html" title="Blackberry database record parser class for contact records." alt="" coords="1273,86,1367,117"/><area shape="rect" id="node58" href="r__folder_8cc.html" title="Record parsing class for the folders database." alt="" coords="1391,86,1473,117"/><area shape="rect" id="node60" href="r__memo_8cc.html" title="Record parsing class for the memo database." alt="" coords="1497,86,1585,117"/><area shape="rect" id="node62" href="r__message__base_8cc.html" title="Base class for email-oriented Blackberry database records." alt="" coords="1609,86,1753,117"/><area shape="rect" id="node64" href="r__recur__base_8cc.html" title="Base class for recurring calendar event data." alt="" coords="1777,86,1895,117"/><area shape="rect" id="node66" href="r__servicebook_8cc.html" title="Blackberry database record parser class for Service Book records." alt="" coords="1919,86,2041,117"/><area shape="rect" id="node68" href="r__sms_8cc.html" title="Record parsing class for the SMS database." alt="" coords="2065,86,2140,117"/><area shape="rect" id="node70" href="r__task_8cc.html" title="Record parsing class for the task database." alt="" coords="2164,86,2239,117"/><area shape="rect" id="node72" href="r__timezone_8cc.html" title="Record parsing class for the timezone database." alt="" coords="2263,86,2367,117"/><area shape="rect" id="node74" href="record_8cc.html" title="Misc." alt="" coords="2391,86,2468,117"/><area shape="rect" id="node76" href="time_8cc.html" title="Conversion between time_t and cenmin_t and back." alt="" coords="2492,86,2556,117"/><area shape="rect" id="node5" href="barrysync_8h.html" title="Main header file for libbarrysync." alt="" coords="216,326,304,357"/><area shape="rect" id="node7" href="tzwrapper_8cc.html" title="Timezone adjustment class, wrapping the TZ environment variable to make struct tm..." alt="" coords="611,246,707,277"/><area shape="rect" id="node9" href="vbase_8cc_source.html" title="vbase.cc" alt="" coords="461,246,536,277"/><area shape="rect" id="node13" href="vbase_8h.html" title="Base class for vformat support." alt="" coords="208,166,277,197"/><area shape="rect" id="node21" href="vevent_8h_source.html" title="vevent.h" alt="" coords="32,246,104,277"/><area shape="rect" id="node26" href="vjournal_8h_source.html" title="vjournal.h" alt="" coords="128,246,205,277"/><area shape="rect" id="node31" href="vtodo_8h_source.html" title="vtodo.h" alt="" coords="371,246,437,277"/><area shape="rect" id="node41" href="vformat_8c_source.html" title="vformat.c" alt="" coords="301,166,376,197"/><area shape="rect" id="node16" href="vcard_8h.html" title="Conversion routines for vcards." alt="" coords="280,246,347,277"/><area shape="rect" id="node19" href="vcard_8cc.html" title="Conversion routines for vcards." alt="" coords="328,326,400,357"/><area shape="rect" id="node24" href="vevent_8cc_source.html" title="vevent.cc" alt="" coords="5,326,83,357"/><area shape="rect" id="node29" href="vjournal_8cc_source.html" title="vjournal.cc" alt="" coords="107,326,192,357"/><area shape="rect" id="node34" href="vtodo_8cc_source.html" title="vtodo.cc" alt="" coords="424,326,496,357"/></map> </div> <p><a href="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>Classes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structBarry_1_1TimeZone.html">Barry::TimeZone</a></td></tr> <tr><td colspan="2"><h2>Namespaces</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceBarry.html">Barry</a></td></tr> <p><tr><td class="mdescLeft"> </td><td class="mdescRight"><p>Project namespace, containing all related functions and classes. </p> <br/></td></tr> </p> <tr><td colspan="2"><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const TimeZone * </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceBarry.html#ab664177c654a0cb41bc8fc40b39eabda">Barry::GetTimeZoneTable</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a pointer to an array of <a class="el" href="structBarry_1_1TimeZone.html">TimeZone</a> structs. <a href="#ab664177c654a0cb41bc8fc40b39eabda"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const TimeZone * </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceBarry.html#a8b42d46bf7b5cb8f4d9e0bde1d61f226">Barry::GetTimeZone</a> (unsigned short Code)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Searches the internal timezone code table for the given Code and returns a pointer to a <a class="el" href="structBarry_1_1TimeZone.html">TimeZone</a> struct found. <a href="#a8b42d46bf7b5cb8f4d9e0bde1d61f226"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">unsigned short </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceBarry.html#a56ac220ad3edcfbefcebb35c685212d1">Barry::GetTimeZoneCode</a> (signed short HourOffset, signed short MinOffset)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Searches the internal timezone table for the first matching Code. <a href="#a56ac220ad3edcfbefcebb35c685212d1"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceBarry.html#a30255c53ebed390fc98a50e9c5d49984">Barry::DayToDate</a> (unsigned short Day)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">This routine takes the day of the year and returns a time_t adjusted from the first of the year. <a href="#a30255c53ebed390fc98a50e9c5d49984"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceBarry.html#a2f4e6ee9d4afc6a26ae0166329609600">Barry::Message2Time</a> (uint16_t r_date, uint16_t r_time)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Localize the funky math used to convert a Blackberry message timestamp into a time_t. <a href="#a2f4e6ee9d4afc6a26ae0166329609600"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">BXEXPORT struct timespec * </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceBarry.html#a0e1dc80f82d25739631c39b545f812bb">Barry::ThreadTimeout</a> (int timeout_ms, struct timespec *spec)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a pthread_cond_timedwait() compatible timespec struct, based on a given timeout in milliseconds. <a href="#a0e1dc80f82d25739631c39b545f812bb"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Time related conversion routines. </p> <p>time_t is the POSIX time. min1900_t is the minutes from Jan 1, 1900 </p> <p>Definition in file <a class="el" href="time_8h_source.html">time.h</a>.</p> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2-20100208 </small></address> </body> </html>