<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>Barry: tzwrapper.h File Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.6 --> <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="classes.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="navpath"><a class="el" href="dir_3e14c0bb4416cf979afc3165665fc916.html">src</a> </div> </div> <div class="contents"> <h1>tzwrapper.h File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2> Timezone adjustment class, wrapping the TZ environment variable to make struct tm -> time_t conversions easier. <p> <p>Definition in file <a class="el" href="tzwrapper_8h-source.html">tzwrapper.h</a>.</p> <p> <code>#include "<a class="el" href="dll_8h-source.html">dll.h</a>"</code><br> <code>#include <string></code><br> <code>#include <<a class="el" href="time_8h-source.html">time.h</a>></code><br> <code>#include <stdlib.h></code><br> <p> <div class="dynheader"> Include dependency graph for tzwrapper.h:</div> <div class="dynsection"> <p><center><img src="tzwrapper_8h__incl.png" border="0" usemap="#tzwrapper.h_map" alt=""></center> <map name="tzwrapper.h_map"> <area shape="rect" href="dll_8h.html" title="Macros for handling DLL/library API visibility." alt="" coords="5,155,51,181"><area shape="rect" href="time_8h.html" title="Time related conversion routines." alt="" coords="116,80,172,107"></map> </div> <p> <div class="dynheader"> This graph shows which files directly or indirectly include this file:</div> <div class="dynsection"> <p><center><img src="tzwrapper_8h__dep__incl.png" border="0" usemap="#tzwrapper.hdep_map" alt=""></center> <map name="tzwrapper.hdep_map"> <area shape="rect" href="barrysync_8h.html" title="Main header file for libbarrysync." alt="" coords="5,80,93,107"><area shape="rect" href="tzwrapper_8cc.html" title="Timezone adjustment class, wrapping the TZ environment variable to make struct tm..." alt="" coords="117,80,211,107"><area shape="rect" href="vbase_8cc-source.html" title="vbase.cc" alt="" coords="235,80,309,107"></map> </div> <p> <a href="tzwrapper_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Namespaces</h2></td></tr> <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> <tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><b>Barry::Sync</b></td></tr> <tr><td colspan="2"><br><h2>Classes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">Barry::Sync::TzWrapper</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Wrapper class for the TZ environment variable. <a href="classBarry_1_1Sync_1_1TzWrapper.html#_details">More...</a><br></td></tr> <tr><td colspan="2"><br><h2>Functions</h2></td></tr> <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> <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> <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> <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> <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> <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> </table> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Tue Mar 1 17:50:52 2011 for Barry by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> </body> </html>