<!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: Barry::Sync::TzWrapper Class 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 class="current"><a href="classes.html"><span>Classes</span></a></li> <li><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="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="namespaceBarry.html">Barry</a>::<b>Sync</b>::<a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a> </div> </div> <div class="contents"> <h1>Barry::Sync::TzWrapper Class Reference</h1><!-- doxytag: class="Barry::Sync::TzWrapper" --><code>#include <<a class="el" href="tzwrapper_8h-source.html">tzwrapper.h</a>></code> <p> <div class="dynheader"> Collaboration diagram for Barry::Sync::TzWrapper:</div> <div class="dynsection"> <p><center><img src="classBarry_1_1Sync_1_1TzWrapper__coll__graph.png" border="0" usemap="#Barry_1_1Sync_1_1TzWrapper__coll__map" alt="Collaboration graph"></center> <map name="Barry_1_1Sync_1_1TzWrapper__coll__map"> <area shape="rect" title="STL class." alt="" coords="48,83,128,109"><area shape="rect" title="STL class." alt="" coords="5,5,171,32"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <p> <a href="classBarry_1_1Sync_1_1TzWrapper-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> Wrapper class for the TZ environment variable. <p> This class allows setting TZ to any number of variables, and will restore the original setting on destruction.<p> By default, <a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html" title="Wrapper class for the TZ environment variable.">TzWrapper</a> does not change the environment at all, but only saves it. Alternately, you can use the timezone constructor to save and set a new timezone on the fly.<p> Each <a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#46e3e3ec5c35694810271476707a6186" title="Set TZ to a new value.">Set()</a> and <a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#27d8874df34bd4f04bd4430d0d4a2523" title="Deletes TZ from the environment, which has the same effect as calling SetSysLocal()...">Unset()</a> function returns a reference to <a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html" title="Wrapper class for the TZ environment variable.">TzWrapper</a>, so that you can chain function calls like this:<p> time_t utc = <a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html" title="Wrapper class for the TZ environment variable.">TzWrapper</a>("Canada/Pacific").mktime(&pacific_tm);<p> In addition, there are two static utility functions used to convert ISO timestamps to struct tm* and time_t values.<p> Note: This class is not thread-safe, since it modifies the TZ environment variable without locking. If other threads use time functions, this may interfere with their behaviour. <p>Definition at line <a class="el" href="tzwrapper_8h-source.html#l00092">92</a> of file <a class="el" href="tzwrapper_8h-source.html">tzwrapper.h</a>.</p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#e2873ae6adbe53fd7e61109a4b39b554">TzWrapper</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Does not change TZ, only saves current setting. <a href="#e2873ae6adbe53fd7e61109a4b39b554"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#11b3c0192d3b4eb7471cce7159c3c6a2">TzWrapper</a> (const char *timezone)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Saves current setting and sets TZ to new timezone value. <a href="#11b3c0192d3b4eb7471cce7159c3c6a2"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#46e3e3ec5c35694810271476707a6186">Set</a> (const char *timezone)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set TZ to a new value. <a href="#46e3e3ec5c35694810271476707a6186"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#27d8874df34bd4f04bd4430d0d4a2523">Unset</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Deletes TZ from the environment, which has the same effect as calling <a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#64528d9b642db8defc4163c613ff0366" title="Use system localtime.">SetSysLocal()</a>. <a href="#27d8874df34bd4f04bd4430d0d4a2523"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#ab3349c356c87e37d41841d78fd8f227">SetUTC</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set timezone to UTC. <a href="#ab3349c356c87e37d41841d78fd8f227"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#6770fc385305652d74b565b882dfab0c">SetOffset</a> (int zoneminutes)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set timezone via offset in minutes Negative minutes goes west, positive goes east i.e. <a href="#6770fc385305652d74b565b882dfab0c"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#64528d9b642db8defc4163c613ff0366">SetSysLocal</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Use system localtime. <a href="#64528d9b642db8defc4163c613ff0366"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#f47fbd57f1417575a1c0c958d57ca395">SetDefault</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Use the default TZ value that the user set before running this program. <a href="#f47fbd57f1417575a1c0c958d57ca395"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#dd71d2129221171a01fe5efc5e3aeeab">SetOrig</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Same as <a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#f47fbd57f1417575a1c0c958d57ca395" title="Use the default TZ value that the user set before running this program.">SetDefault()</a>. <a href="#dd71d2129221171a01fe5efc5e3aeeab"></a><br></td></tr> <tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#c1524071e5a61fa789331c9784b6093d">iso_mktime</a> (const char *timestamp)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts an ISO timestamp (YYYYMMDDTHHMMWW[Z]) into a unix time_t. <a href="#c1524071e5a61fa789331c9784b6093d"></a><br></td></tr> </table> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="e2873ae6adbe53fd7e61109a4b39b554"></a><!-- doxytag: member="Barry::Sync::TzWrapper::TzWrapper" ref="e2873ae6adbe53fd7e61109a4b39b554" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Barry::Sync::TzWrapper::TzWrapper </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Does not change TZ, only saves current setting. <p> <p>Definition at line <a class="el" href="tzwrapper_8h-source.html#l00121">121</a> of file <a class="el" href="tzwrapper_8h-source.html">tzwrapper.h</a>.</p> </div> </div><p> <a class="anchor" name="11b3c0192d3b4eb7471cce7159c3c6a2"></a><!-- doxytag: member="Barry::Sync::TzWrapper::TzWrapper" ref="11b3c0192d3b4eb7471cce7159c3c6a2" args="(const char *timezone)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Barry::Sync::TzWrapper::TzWrapper </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>timezone</em> </td> <td> ) </td> <td><code> [inline, explicit]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Saves current setting and sets TZ to new timezone value. <p> If timezone is null, it is the same as calling <a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#27d8874df34bd4f04bd4430d0d4a2523" title="Deletes TZ from the environment, which has the same effect as calling SetSysLocal()...">Unset()</a>. <p>Definition at line <a class="el" href="tzwrapper_8h-source.html#l00129">129</a> of file <a class="el" href="tzwrapper_8h-source.html">tzwrapper.h</a>.</p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="46e3e3ec5c35694810271476707a6186"></a><!-- doxytag: member="Barry::Sync::TzWrapper::Set" ref="46e3e3ec5c35694810271476707a6186" args="(const char *timezone)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a>& Barry::Sync::TzWrapper::Set </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>timezone</em> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Set TZ to a new value. <p> If timezone is null, it is the same as calling <a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#27d8874df34bd4f04bd4430d0d4a2523" title="Deletes TZ from the environment, which has the same effect as calling SetSysLocal()...">Unset()</a>.<p> If timezone is an empty or invalid timezone string, it is the same as calling <a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#ab3349c356c87e37d41841d78fd8f227" title="Set timezone to UTC.">SetUTC()</a>. <p>Definition at line <a class="el" href="tzwrapper_8h-source.html#l00146">146</a> of file <a class="el" href="tzwrapper_8h-source.html">tzwrapper.h</a>.</p> <p>Referenced by <a class="el" href="tzwrapper_8cc-source.html#l00157">SetOffset()</a>.</p> <p> <div class="dynheader"> Here is the caller graph for this function:</div> <div class="dynsection"> <p><center><img src="classBarry_1_1Sync_1_1TzWrapper_46e3e3ec5c35694810271476707a6186_icgraph.png" border="0" usemap="#classBarry_1_1Sync_1_1TzWrapper_46e3e3ec5c35694810271476707a6186_icgraph_map" alt=""></center> <map name="classBarry_1_1Sync_1_1TzWrapper_46e3e3ec5c35694810271476707a6186_icgraph_map"> <area shape="rect" href="classBarry_1_1Sync_1_1TzWrapper.html#6770fc385305652d74b565b882dfab0c" title="Set timezone via offset in minutes Negative minutes goes west, positive goes east..." alt="" coords="243,5,467,32"><area shape="rect" href="classBarry_1_1Sync_1_1TzWrapper.html#c1524071e5a61fa789331c9784b6093d" title="Converts an ISO timestamp (YYYYMMDDTHHMMWW[Z]) into a unix time_t." alt="" coords="516,5,751,32"><area shape="rect" href="classBarry_1_1Sync_1_1vTimeConverter.html#231567ee26a99891dd04f9b4635c702d" title="Convert an ISO timestamp string into a time_t, using the current system timezone..." alt="" coords="800,5,1061,32"></map> </div> </div> </div><p> <a class="anchor" name="27d8874df34bd4f04bd4430d0d4a2523"></a><!-- doxytag: member="Barry::Sync::TzWrapper::Unset" ref="27d8874df34bd4f04bd4430d0d4a2523" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a>& Barry::Sync::TzWrapper::Unset </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Deletes TZ from the environment, which has the same effect as calling <a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#64528d9b642db8defc4163c613ff0366" title="Use system localtime.">SetSysLocal()</a>. <p> This is not a permanent condition, since TZ will be restored to original state upon destruction. <p>Definition at line <a class="el" href="tzwrapper_8h-source.html#l00161">161</a> of file <a class="el" href="tzwrapper_8h-source.html">tzwrapper.h</a>.</p> </div> </div><p> <a class="anchor" name="ab3349c356c87e37d41841d78fd8f227"></a><!-- doxytag: member="Barry::Sync::TzWrapper::SetUTC" ref="ab3349c356c87e37d41841d78fd8f227" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a>& Barry::Sync::TzWrapper::SetUTC </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Set timezone to UTC. <p> <p>Definition at line <a class="el" href="tzwrapper_8h-source.html#l00170">170</a> of file <a class="el" href="tzwrapper_8h-source.html">tzwrapper.h</a>.</p> <p>Referenced by <a class="el" href="tzwrapper_8cc-source.html#l00183">iso_mktime()</a>.</p> <p> <div class="dynheader"> Here is the caller graph for this function:</div> <div class="dynsection"> <p><center><img src="classBarry_1_1Sync_1_1TzWrapper_ab3349c356c87e37d41841d78fd8f227_icgraph.png" border="0" usemap="#classBarry_1_1Sync_1_1TzWrapper_ab3349c356c87e37d41841d78fd8f227_icgraph_map" alt=""></center> <map name="classBarry_1_1Sync_1_1TzWrapper_ab3349c356c87e37d41841d78fd8f227_icgraph_map"> <area shape="rect" href="classBarry_1_1Sync_1_1TzWrapper.html#c1524071e5a61fa789331c9784b6093d" title="Converts an ISO timestamp (YYYYMMDDTHHMMWW[Z]) into a unix time_t." alt="" coords="271,5,505,32"><area shape="rect" href="classBarry_1_1Sync_1_1vTimeConverter.html#231567ee26a99891dd04f9b4635c702d" title="Convert an ISO timestamp string into a time_t, using the current system timezone..." alt="" coords="555,5,816,32"></map> </div> </div> </div><p> <a class="anchor" name="6770fc385305652d74b565b882dfab0c"></a><!-- doxytag: member="Barry::Sync::TzWrapper::SetOffset" ref="6770fc385305652d74b565b882dfab0c" args="(int zoneminutes)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a> & Barry::Sync::TzWrapper::SetOffset </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>zoneminutes</em> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Set timezone via offset in minutes Negative minutes goes west, positive goes east i.e. <p> -05:00 is EST <p>Definition at line <a class="el" href="tzwrapper_8cc-source.html#l00157">157</a> of file <a class="el" href="tzwrapper_8cc-source.html">tzwrapper.cc</a>.</p> <p>References <a class="el" href="tzwrapper_8h-source.html#l00146">Set()</a>.</p> <p>Referenced by <a class="el" href="tzwrapper_8cc-source.html#l00183">iso_mktime()</a>.</p> <p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dynsection"> <p><center><img src="classBarry_1_1Sync_1_1TzWrapper_6770fc385305652d74b565b882dfab0c_cgraph.png" border="0" usemap="#classBarry_1_1Sync_1_1TzWrapper_6770fc385305652d74b565b882dfab0c_cgraph_map" alt=""></center> <map name="classBarry_1_1Sync_1_1TzWrapper_6770fc385305652d74b565b882dfab0c_cgraph_map"> <area shape="rect" href="classBarry_1_1Sync_1_1TzWrapper.html#46e3e3ec5c35694810271476707a6186" title="Set TZ to a new value." alt="" coords="277,5,467,32"></map> </div> <p> <div class="dynheader"> Here is the caller graph for this function:</div> <div class="dynsection"> <p><center><img src="classBarry_1_1Sync_1_1TzWrapper_6770fc385305652d74b565b882dfab0c_icgraph.png" border="0" usemap="#classBarry_1_1Sync_1_1TzWrapper_6770fc385305652d74b565b882dfab0c_icgraph_map" alt=""></center> <map name="classBarry_1_1Sync_1_1TzWrapper_6770fc385305652d74b565b882dfab0c_icgraph_map"> <area shape="rect" href="classBarry_1_1Sync_1_1TzWrapper.html#c1524071e5a61fa789331c9784b6093d" title="Converts an ISO timestamp (YYYYMMDDTHHMMWW[Z]) into a unix time_t." alt="" coords="279,5,513,32"><area shape="rect" href="classBarry_1_1Sync_1_1vTimeConverter.html#231567ee26a99891dd04f9b4635c702d" title="Convert an ISO timestamp string into a time_t, using the current system timezone..." alt="" coords="563,5,824,32"></map> </div> </div> </div><p> <a class="anchor" name="64528d9b642db8defc4163c613ff0366"></a><!-- doxytag: member="Barry::Sync::TzWrapper::SetSysLocal" ref="64528d9b642db8defc4163c613ff0366" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a>& Barry::Sync::TzWrapper::SetSysLocal </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Use system localtime. <p> This overrides any TZ value that the user may have set before running your program. <p>Definition at line <a class="el" href="tzwrapper_8h-source.html#l00182">182</a> of file <a class="el" href="tzwrapper_8h-source.html">tzwrapper.h</a>.</p> </div> </div><p> <a class="anchor" name="f47fbd57f1417575a1c0c958d57ca395"></a><!-- doxytag: member="Barry::Sync::TzWrapper::SetDefault" ref="f47fbd57f1417575a1c0c958d57ca395" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a>& Barry::Sync::TzWrapper::SetDefault </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Use the default TZ value that the user set before running this program. <p> In most cases, this will be the user's preferred local timezone. <p>Definition at line <a class="el" href="tzwrapper_8h-source.html#l00190">190</a> of file <a class="el" href="tzwrapper_8h-source.html">tzwrapper.h</a>.</p> </div> </div><p> <a class="anchor" name="dd71d2129221171a01fe5efc5e3aeeab"></a><!-- doxytag: member="Barry::Sync::TzWrapper::SetOrig" ref="dd71d2129221171a01fe5efc5e3aeeab" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a>& Barry::Sync::TzWrapper::SetOrig </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Same as <a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#f47fbd57f1417575a1c0c958d57ca395" title="Use the default TZ value that the user set before running this program.">SetDefault()</a>. <p> <p>Definition at line <a class="el" href="tzwrapper_8h-source.html#l00196">196</a> of file <a class="el" href="tzwrapper_8h-source.html">tzwrapper.h</a>.</p> </div> </div><p> <a class="anchor" name="c1524071e5a61fa789331c9784b6093d"></a><!-- doxytag: member="Barry::Sync::TzWrapper::iso_mktime" ref="c1524071e5a61fa789331c9784b6093d" args="(const char *timestamp)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">time_t Barry::Sync::TzWrapper::iso_mktime </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>timestamp</em> </td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Converts an ISO timestamp (YYYYMMDDTHHMMWW[Z]) into a unix time_t. <p> If the 'Z' UTC flag is not specified, then the timestamp will be assumed to be in the current default timezone. Otherwise, <a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#ab3349c356c87e37d41841d78fd8f227" title="Set timezone to UTC.">SetUTC()</a> will be used for the conversion.<p> This function uses an internal <a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html" title="Wrapper class for the TZ environment variable.">TzWrapper</a> to adjust TZ if necessary, which is why it is a static function of <a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html" title="Wrapper class for the TZ environment variable.">TzWrapper</a>, instead of a standalone function. <p>Definition at line <a class="el" href="tzwrapper_8cc-source.html#l00183">183</a> of file <a class="el" href="tzwrapper_8cc-source.html">tzwrapper.cc</a>.</p> <p>References <a class="el" href="tzwrapper_8h-source.html#l00217">mktime()</a>, <a class="el" href="tzwrapper_8cc-source.html#l00157">SetOffset()</a>, and <a class="el" href="tzwrapper_8h-source.html#l00170">SetUTC()</a>.</p> <p>Referenced by <a class="el" href="vbase_8cc-source.html#l00056">Barry::Sync::vTimeConverter::vtime2unix()</a>.</p> <p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dynsection"> <p><center><img src="classBarry_1_1Sync_1_1TzWrapper_c1524071e5a61fa789331c9784b6093d_cgraph.png" border="0" usemap="#classBarry_1_1Sync_1_1TzWrapper_c1524071e5a61fa789331c9784b6093d_cgraph_map" alt=""></center> <map name="classBarry_1_1Sync_1_1TzWrapper_c1524071e5a61fa789331c9784b6093d_cgraph_map"> <area shape="rect" href="classBarry_1_1Sync_1_1TzWrapper.html#1f1529e9d5001b0b08de41d884c27d63" title="Barry::Sync::TzWrapper::mktime" alt="" coords="297,5,508,32"><area shape="rect" href="classBarry_1_1Sync_1_1TzWrapper.html#6770fc385305652d74b565b882dfab0c" title="Set timezone via offset in minutes Negative minutes goes west, positive goes east..." alt="" coords="291,56,515,83"><area shape="rect" href="classBarry_1_1Sync_1_1TzWrapper.html#ab3349c356c87e37d41841d78fd8f227" title="Set timezone to UTC." alt="" coords="296,107,509,133"><area shape="rect" href="classBarry_1_1Sync_1_1TzWrapper.html#46e3e3ec5c35694810271476707a6186" title="Set TZ to a new value." alt="" coords="563,56,752,83"></map> </div> <p> <div class="dynheader"> Here is the caller graph for this function:</div> <div class="dynsection"> <p><center><img src="classBarry_1_1Sync_1_1TzWrapper_c1524071e5a61fa789331c9784b6093d_icgraph.png" border="0" usemap="#classBarry_1_1Sync_1_1TzWrapper_c1524071e5a61fa789331c9784b6093d_icgraph_map" alt=""></center> <map name="classBarry_1_1Sync_1_1TzWrapper_c1524071e5a61fa789331c9784b6093d_icgraph_map"> <area shape="rect" href="classBarry_1_1Sync_1_1vTimeConverter.html#231567ee26a99891dd04f9b4635c702d" title="Convert an ISO timestamp string into a time_t, using the current system timezone..." alt="" coords="291,5,552,32"></map> </div> </div> </div><p> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="tzwrapper_8h-source.html">tzwrapper.h</a><li><a class="el" href="tzwrapper_8cc-source.html">tzwrapper.cc</a></ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Tue Mar 1 17:51:07 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>