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: tzwrapper.cc 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>tzwrapper.cc File Reference
</h1><hr><a name=
"_details"></a><h2>Detailed Description
</h2>
24 Timezone adjustment class, wrapping the TZ environment variable to make struct tm -
> time_t conversions easier.
27 <p>Definition in file
<a class=
"el" href=
"tzwrapper_8cc-source.html">tzwrapper.cc
</a>.
</p>
30 <code>#include
"<a class=
"el" href=
"tzwrapper_8h-source.html">tzwrapper.h
</a>"</code><br>
31 <code>#include
<string.h
></code><br>
32 <code>#include
<stdio.h
></code><br>
33 <code>#include
<string
></code><br>
36 <div class=
"dynheader">
37 Include dependency graph for tzwrapper.cc:
</div>
38 <div class=
"dynsection">
39 <p><center><img src=
"tzwrapper_8cc__incl.png" border=
"0" usemap=
"#tzwrapper.cc_map" alt=
""></center>
40 <map name=
"tzwrapper.cc_map">
41 <area shape=
"rect" href=
"tzwrapper_8h.html" title=
"Timezone adjustment class, wrapping the TZ environment variable to make struct tm..." alt=
"" coords=
"69,80,157,107"><area shape=
"rect" href=
"dll_8h.html" title=
"Macros for handling DLL/library API visibility." alt=
"" coords=
"61,229,107,256"><area shape=
"rect" href=
"time_8h.html" title=
"Time related conversion routines." alt=
"" coords=
"133,155,189,181"></map>
45 <a href=
"tzwrapper_8cc-source.html">Go to the source code of this file.
</a><table border=
"0" cellpadding=
"0" cellspacing=
"0">
47 <tr><td colspan=
"2"><br><h2>Namespaces
</h2></td></tr>
48 <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>
50 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">namespace
</td><td class=
"memItemRight" valign=
"bottom"><b>Barry::Sync
</b></td></tr>
52 <tr><td colspan=
"2"><br><h2>Functions
</h2></td></tr>
53 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">time_t
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"namespaceBarry_1_1Sync.html#6beb1b54fbd8c53c81303285e9e2a742">Barry::Sync::utc_mktime
</a> (struct tm *utctime)
</td></tr>
55 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">utc_mktime() converts a struct tm that contains broken down time in utc to a time_t.
<a href=
"#6beb1b54fbd8c53c81303285e9e2a742"></a><br></td></tr>
56 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">struct tm *
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"namespaceBarry_1_1Sync.html#79b551a17561ee6d4c105cda6f56d636">Barry::Sync::iso_to_tm
</a> (const char *timestamp, struct tm *result, bool
&utc, bool *zone=
0, int *zoneminutes=
0)
</td></tr>
58 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Parses ISO timestamp in the format of YYYYMMDDTHHMMSS[Z] or YYYY-MM-DDTHH:MM:SS.uuu-HH:MM and places broken down time in result.
<a href=
"#79b551a17561ee6d4c105cda6f56d636"></a><br></td></tr>
59 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">std::string
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"namespaceBarry_1_1Sync.html#b78a05972e4aa3b6ac064125259a731e">Barry::Sync::tm_to_iso
</a> (const struct tm *t, bool utc)
</td></tr>
61 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Turns the struct tm into an ISO timestamp in the format of YYYYMMDDTHHMMSS[Z].
<a href=
"#b78a05972e4aa3b6ac064125259a731e"></a><br></td></tr>
64 <hr size=
"1"><address style=
"text-align: right;"><small>Generated on Thu Feb
10 16:
14:
31 2011 for Barry by
65 <a href=
"http://www.doxygen.org/index.html">
66 <img src=
"doxygen.png" alt=
"doxygen" align=
"middle" border=
"0"></a> 1.5.6 </small></address>