1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html><head><meta http-equiv=
"Content-Type" content=
"text/html;charset=UTF-8">
3 <title>Barry: time.h File Reference
</title>
4 <link href=
"doxygen.css" rel=
"stylesheet" type=
"text/css">
5 <link href=
"tabs.css" rel=
"stylesheet" type=
"text/css">
7 <!-- Generated by Doxygen 1.5.6 -->
8 <div class=
"navigation" id=
"top">
11 <li><a href=
"index.html"><span>Main
Page
</span></a></li>
12 <li><a href=
"modules.html"><span>Modules
</span></a></li>
13 <li><a href=
"namespaces.html"><span>Namespaces
</span></a></li>
14 <li><a href=
"classes.html"><span>Classes
</span></a></li>
15 <li class=
"current"><a href=
"files.html"><span>Files
</span></a></li>
16 <li><a href=
"dirs.html"><span>Directories
</span></a></li>
19 <div class=
"navpath"><a class=
"el" href=
"dir_edc0f428e3eefcfdce9c25befd901c57.html">src
</a>
22 <div class=
"contents">
23 <h1>time.h File Reference
</h1><hr><a name=
"_details"></a><h2>Detailed Description
</h2>
24 Time related conversion routines.
26 time_t is the POSIX time. min1900_t is the minutes from Jan
1,
1900
27 <p>Definition in file
<a class=
"el" href=
"time_8h-source.html">time.h
</a>.
</p>
30 <code>#include
"<a class=
"el" href=
"dll_8h-source.html">dll.h
</a>"</code><br>
31 <code>#include
<sys/time.h
></code><br>
32 <code>#include
<<a class=
"el" href=
"time_8h-source.html">time.h
</a>></code><br>
33 <code>#include
<stdint.h
></code><br>
36 <div class=
"dynheader">
37 Include dependency graph for time.h:
</div>
38 <div class=
"dynsection">
39 <p><center><img src=
"time_8h__incl.png" border=
"0" usemap=
"#time.h_map" alt=
""></center>
40 <map name=
"time.h_map">
41 <area shape=
"rect" href=
"dll_8h.html" title=
"Macros for handling DLL/library API visibility." alt=
"" coords=
"5,80,51,107"></map>
45 <div class=
"dynheader">
46 This graph shows which files directly or indirectly include this file:
</div>
47 <div class=
"dynsection">
48 <p><center><img src=
"time_8h__dep__incl.png" border=
"0" usemap=
"#time.hdep_map" alt=
""></center>
49 <map name=
"time.hdep_map">
50 <area shape=
"rect" href=
"connector_8h-source.html" title=
"connector.h" alt=
"" coords=
"111,80,199,107"><area shape=
"rect" href=
"tzwrapper_8h.html" title=
"Timezone adjustment class, wrapping the TZ environment variable to make struct tm..." alt=
"" coords=
"208,155,296,181"><area shape=
"rect" href=
"vformat_8h-source.html" title=
"vformat.h" alt=
"" coords=
"384,80,459,107"><area shape=
"rect" href=
"cbarry_8h.html" title=
"Main header file for Barry C API - incomplete." alt=
"" coords=
"483,80,549,107"><area shape=
"rect" href=
"dataqueue_8cc.html" title=
"FIFO queue of Data objects." alt=
"" coords=
"573,80,672,107"><area shape=
"rect" href=
"m__javaloader_8cc.html" title=
"Mode class for the JavaLoader mode." alt=
"" coords=
"696,80,811,107"><area shape=
"rect" href=
"m__jvmdebug_8cc.html" title=
"Mode class for the JVMDebug mode." alt=
"" coords=
"835,80,947,107"><area shape=
"rect" href=
"r__bookmark_8cc.html" title=
"Record parsing class for the phone browser bookmarks database." alt=
"" coords=
"971,80,1077,107"><area shape=
"rect" href=
"r__calendar_8cc.html" title=
"Blackberry database record parser class for calendar records." alt=
"" coords=
"1101,80,1200,107"><area shape=
"rect" href=
"r__calllog_8cc.html" title=
"Record parsing class for the phone call logs database." alt=
"" coords=
"1224,80,1312,107"><area shape=
"rect" href=
"r__contact_8cc.html" title=
"Blackberry database record parser class for contact records." alt=
"" coords=
"1336,80,1429,107"><area shape=
"rect" href=
"r__folder_8cc.html" title=
"Record parsing class for the folders database." alt=
"" coords=
"1453,80,1533,107"><area shape=
"rect" href=
"r__memo_8cc.html" title=
"Record parsing class for the memo database." alt=
"" coords=
"1557,80,1643,107"><area shape=
"rect" href=
"r__message__base_8cc.html" title=
"Base class for email-oriented Blackberry database records." alt=
"" coords=
"1667,80,1805,107"><area shape=
"rect" href=
"r__recur__base_8cc.html" title=
"Base class for recurring calendar event data." alt=
"" coords=
"1829,80,1944,107"><area shape=
"rect" href=
"r__servicebook_8cc.html" title=
"Blackberry database record parser class for Service Book records." alt=
"" coords=
"1968,80,2088,107"><area shape=
"rect" href=
"r__sms_8cc.html" title=
"Record parsing class for the SMS database." alt=
"" coords=
"2112,80,2187,107"><area shape=
"rect" href=
"r__task_8cc.html" title=
"Record parsing class for the task database." alt=
"" coords=
"2211,80,2285,107"><area shape=
"rect" href=
"r__timezone_8cc.html" title=
"Record parsing class for the timezone database." alt=
"" coords=
"2309,80,2413,107"><area shape=
"rect" href=
"record_8cc.html" title=
"Misc." alt=
"" coords=
"2437,80,2512,107"><area shape=
"rect" href=
"time_8cc.html" title=
"Conversion between time_t and cenmin_t and back." alt=
"" coords=
"2536,80,2600,107"><area shape=
"rect" href=
"bjavaloader_8cc.html" title=
"bjavaloader.cc" alt=
"" coords=
"2624,80,2728,107"><area shape=
"rect" href=
"barry_8h.html" title=
"Main header file for applications." alt=
"" coords=
"125,155,184,181"><area shape=
"rect" href=
"connector_8cc-source.html" title=
"connector.cc" alt=
"" coords=
"5,155,101,181"><area shape=
"rect" href=
"barrysync_8h.html" title=
"Main header file for libbarrysync." alt=
"" coords=
"401,304,489,331"><area shape=
"rect" href=
"tzwrapper_8cc.html" title=
"Timezone adjustment class, wrapping the TZ environment variable to make struct tm..." alt=
"" coords=
"116,229,209,256"><area shape=
"rect" href=
"vbase_8cc-source.html" title=
"vbase.cc" alt=
"" coords=
"284,229,359,256"><area shape=
"rect" href=
"vbase_8h.html" title=
"Base class for vformat support." alt=
"" coords=
"520,155,587,181"><area shape=
"rect" href=
"vevent_8h-source.html" title=
"vevent.h" alt=
"" coords=
"609,229,681,256"><area shape=
"rect" href=
"vjournal_8h-source.html" title=
"vjournal.h" alt=
"" coords=
"705,229,783,256"><area shape=
"rect" href=
"vtodo_8h-source.html" title=
"vtodo.h" alt=
"" coords=
"383,229,447,256"><area shape=
"rect" href=
"vformat_8c-source.html" title=
"vformat.c" alt=
"" coords=
"421,155,496,181"><area shape=
"rect" href=
"vcard_8h.html" title=
"Conversion routines for vcards." alt=
"" coords=
"521,229,585,256"><area shape=
"rect" href=
"mimeio_8cc.html" title=
"Storage, parser, builder classes for MIME objects (vcard, vevent, vtodo, vjournal)..." alt=
"" coords=
"609,304,689,331"><area shape=
"rect" href=
"vcard_8cc.html" title=
"Conversion routines for vcards." alt=
"" coords=
"513,304,585,331"><area shape=
"rect" href=
"vevent_8cc-source.html" title=
"vevent.cc" alt=
"" coords=
"713,304,791,331"><area shape=
"rect" href=
"vjournal_8cc-source.html" title=
"vjournal.cc" alt=
"" coords=
"815,304,897,331"><area shape=
"rect" href=
"vtodo_8cc-source.html" title=
"vtodo.cc" alt=
"" coords=
"305,304,377,331"></map>
54 <a href=
"time_8h-source.html">Go to the source code of this file.
</a><table border=
"0" cellpadding=
"0" cellspacing=
"0">
56 <tr><td colspan=
"2"><br><h2>Namespaces
</h2></td></tr>
57 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">namespace
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"namespaceBarry.html">Barry
</a></td></tr>
59 <tr><td colspan=
"2"><br><h2>Classes
</h2></td></tr>
60 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">struct
</td><td class=
"memItemRight" valign=
"bottom"><b>Barry::TimeZone
</b></td></tr>
62 <tr><td colspan=
"2"><br><h2>Functions
</h2></td></tr>
63 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">const TimeZone *
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"namespaceBarry.html#b664177c654a0cb41bc8fc40b39eabda">Barry::GetTimeZoneTable
</a> ()
</td></tr>
65 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Returns a pointer to an array of TimeZone structs.
<a href=
"#b664177c654a0cb41bc8fc40b39eabda"></a><br></td></tr>
66 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">const TimeZone *
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"namespaceBarry.html#8b42d46bf7b5cb8f4d9e0bde1d61f226">Barry::GetTimeZone
</a> (unsigned short Code)
</td></tr>
68 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Searches the internal timezone code table for the given Code and returns a pointer to a TimeZone struct found.
<a href=
"#8b42d46bf7b5cb8f4d9e0bde1d61f226"></a><br></td></tr>
69 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">unsigned short
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"namespaceBarry.html#56ac220ad3edcfbefcebb35c685212d1">Barry::GetTimeZoneCode
</a> (signed short HourOffset, signed short MinOffset)
</td></tr>
71 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Searches the internal timezone table for the first matching Code.
<a href=
"#56ac220ad3edcfbefcebb35c685212d1"></a><br></td></tr>
72 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">time_t
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"namespaceBarry.html#30255c53ebed390fc98a50e9c5d49984">Barry::DayToDate
</a> (unsigned short Day)
</td></tr>
74 <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=
"#30255c53ebed390fc98a50e9c5d49984"></a><br></td></tr>
75 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">time_t
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"namespaceBarry.html#2f4e6ee9d4afc6a26ae0166329609600">Barry::Message2Time
</a> (uint16_t r_date, uint16_t r_time)
</td></tr>
77 <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=
"#2f4e6ee9d4afc6a26ae0166329609600"></a><br></td></tr>
78 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">BXEXPORT struct timespec *
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"namespaceBarry.html#0e1dc80f82d25739631c39b545f812bb">Barry::ThreadTimeout
</a> (int timeout_ms, struct timespec *spec)
</td></tr>
80 <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=
"#0e1dc80f82d25739631c39b545f812bb"></a><br></td></tr>
83 <hr size=
"1"><address style=
"text-align: right;"><small>Generated on Thu Feb
10 16:
14:
31 2011 for Barry by
84 <a href=
"http://www.doxygen.org/index.html">
85 <img src=
"doxygen.png" alt=
"doxygen" align=
"middle" border=
"0"></a> 1.5.6 </small></address>