<!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: tzwrapper.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>tzwrapper.h File Reference</h1> <p>Timezone adjustment class, wrapping the TZ environment variable to make struct tm -> time_t conversions easier. <a href="#_details">More...</a></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/> <div class="dynheader"> Include dependency graph for tzwrapper.h:</div> <div class="dynsection"> <div class="center"><img src="tzwrapper_8h__incl.png" border="0" usemap="#tzwrapper_8h_map" alt=""/></div> <map name="tzwrapper_8h_map" id="tzwrapper_8h"> <area shape="rect" id="node3" href="dll_8h.html" title="Macros for handling DLL/library API visibility." alt="" coords="5,166,51,197"/><area shape="rect" id="node7" href="time_8h.html" title="Time related conversion routines." alt="" coords="116,86,172,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="tzwrapper_8h__dep__incl.png" border="0" usemap="#tzwrapper_8hdep_map" alt=""/></div> <map name="tzwrapper_8hdep_map" id="tzwrapper_8hdep"> <area shape="rect" id="node3" href="barrysync_8h.html" title="Main header file for libbarrysync." alt="" coords="5,86,93,117"/><area shape="rect" id="node5" href="tzwrapper_8cc.html" title="Timezone adjustment class, wrapping the TZ environment variable to make struct tm..." alt="" coords="117,86,213,117"/><area shape="rect" id="node7" href="vbase_8cc_source.html" title="vbase.cc" alt="" coords="237,86,312,117"/></map> </div> <p><a href="tzwrapper_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">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"><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">struct tm * </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceBarry_1_1Sync.html#a874655fa7e2f017a37998c8958f942a7">Barry::Sync::iso_to_tm</a> (const char *timestamp, struct tm *result, bool &utc)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Parses ISO timestamp in the format of YYYYMMDDTHHMMSS[Z] and places broken down time in result. <a href="#a874655fa7e2f017a37998c8958f942a7"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceBarry_1_1Sync.html#ab78a05972e4aa3b6ac064125259a731e">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="#ab78a05972e4aa3b6ac064125259a731e"></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_1_1Sync.html#a6beb1b54fbd8c53c81303285e9e2a742">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="#a6beb1b54fbd8c53c81303285e9e2a742"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>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> </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>