<!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.cc 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.cc 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="tzwrapper_8h_source.html">tzwrapper.h</a>"</code><br/> <code>#include <string.h></code><br/> <code>#include <stdio.h></code><br/> <div class="dynheader"> Include dependency graph for tzwrapper.cc:</div> <div class="dynsection"> <div class="center"><img src="tzwrapper_8cc__incl.png" border="0" usemap="#tzwrapper_8cc_map" alt=""/></div> <map name="tzwrapper_8cc_map" id="tzwrapper_8cc"> <area shape="rect" id="node3" href="tzwrapper_8h.html" title="Timezone adjustment class, wrapping the TZ environment variable to make struct tm..." alt="" coords="59,86,149,117"/><area shape="rect" id="node5" href="dll_8h.html" title="Macros for handling DLL/library API visibility." alt="" coords="5,246,51,277"/><area shape="rect" id="node9" href="time_8h.html" title="Time related conversion routines." alt="" coords="116,166,172,197"/></map> </div> <p><a href="tzwrapper_8cc_source.html">Go to the source code of this file.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <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">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> <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> </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_8cc_source.html">tzwrapper.cc</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>