Tarball tree for barry-0.17.0.tar.bz2
[barry.git] / doc / www / doxygen / html / classBarry_1_1Sync_1_1TzWrapper.html
blob27116b7f73cadffac4c7b09cba5da7eb2ddee145
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: Barry::Sync::TzWrapper Class Reference</title>
4 <link href="doxygen.css" rel="stylesheet" type="text/css">
5 <link href="tabs.css" rel="stylesheet" type="text/css">
6 </head><body>
7 <!-- Generated by Doxygen 1.5.6 -->
8 <div class="navigation" id="top">
9 <div class="tabs">
10 <ul>
11 <li><a href="index.html"><span>Main&nbsp;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 class="current"><a href="classes.html"><span>Classes</span></a></li>
15 <li><a href="files.html"><span>Files</span></a></li>
16 <li><a href="dirs.html"><span>Directories</span></a></li>
17 </ul>
18 </div>
19 <div class="tabs">
20 <ul>
21 <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
22 <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
23 <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
24 <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
25 </ul>
26 </div>
27 <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>
28 </div>
29 </div>
30 <div class="contents">
31 <h1>Barry::Sync::TzWrapper Class Reference</h1><!-- doxytag: class="Barry::Sync::TzWrapper" --><code>#include &lt;<a class="el" href="tzwrapper_8h-source.html">tzwrapper.h</a>&gt;</code>
32 <p>
33 <div class="dynheader">
34 Collaboration diagram for Barry::Sync::TzWrapper:</div>
35 <div class="dynsection">
36 <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>
37 <map name="Barry_1_1Sync_1_1TzWrapper__coll__map">
38 <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>
39 <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
41 <p>
42 <a href="classBarry_1_1Sync_1_1TzWrapper-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
43 Wrapper class for the TZ environment variable.
44 <p>
45 This class allows setting TZ to any number of variables, and will restore the original setting on destruction.<p>
46 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>
47 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>
48 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(&amp;pacific_tm);<p>
49 In addition, there are two static utility functions used to convert ISO timestamps to struct tm* and time_t values.<p>
50 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.
51 <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>
52 <table border="0" cellpadding="0" cellspacing="0">
53 <tr><td></td></tr>
54 <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
55 <tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#e2873ae6adbe53fd7e61109a4b39b554">TzWrapper</a> ()</td></tr>
57 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Does not change TZ, only saves current setting. <a href="#e2873ae6adbe53fd7e61109a4b39b554"></a><br></td></tr>
58 <tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#11b3c0192d3b4eb7471cce7159c3c6a2">TzWrapper</a> (const char *timezone)</td></tr>
60 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Saves current setting and sets TZ to new timezone value. <a href="#11b3c0192d3b4eb7471cce7159c3c6a2"></a><br></td></tr>
61 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#46e3e3ec5c35694810271476707a6186">Set</a> (const char *timezone)</td></tr>
63 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set TZ to a new value. <a href="#46e3e3ec5c35694810271476707a6186"></a><br></td></tr>
64 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#27d8874df34bd4f04bd4430d0d4a2523">Unset</a> ()</td></tr>
66 <tr><td class="mdescLeft">&nbsp;</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>
67 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#ab3349c356c87e37d41841d78fd8f227">SetUTC</a> ()</td></tr>
69 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set timezone to UTC. <a href="#ab3349c356c87e37d41841d78fd8f227"></a><br></td></tr>
70 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#6770fc385305652d74b565b882dfab0c">SetOffset</a> (int zoneminutes)</td></tr>
72 <tr><td class="mdescLeft">&nbsp;</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>
73 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#64528d9b642db8defc4163c613ff0366">SetSysLocal</a> ()</td></tr>
75 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Use system localtime. <a href="#64528d9b642db8defc4163c613ff0366"></a><br></td></tr>
76 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#f47fbd57f1417575a1c0c958d57ca395">SetDefault</a> ()</td></tr>
78 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Use the default TZ value that the user set before running this program. <a href="#f47fbd57f1417575a1c0c958d57ca395"></a><br></td></tr>
79 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html#dd71d2129221171a01fe5efc5e3aeeab">SetOrig</a> ()</td></tr>
81 <tr><td class="mdescLeft">&nbsp;</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>
82 <tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
83 <tr><td class="memItemLeft" nowrap align="right" valign="top">static time_t&nbsp;</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>
85 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Converts an ISO timestamp (YYYYMMDDTHHMMWW[Z]) into a unix time_t. <a href="#c1524071e5a61fa789331c9784b6093d"></a><br></td></tr>
86 </table>
87 <hr><h2>Constructor &amp; Destructor Documentation</h2>
88 <a class="anchor" name="e2873ae6adbe53fd7e61109a4b39b554"></a><!-- doxytag: member="Barry::Sync::TzWrapper::TzWrapper" ref="e2873ae6adbe53fd7e61109a4b39b554" args="()" -->
89 <div class="memitem">
90 <div class="memproto">
91 <table class="memname">
92 <tr>
93 <td class="memname">Barry::Sync::TzWrapper::TzWrapper </td>
94 <td>(</td>
95 <td class="paramname"> </td>
96 <td>&nbsp;)&nbsp;</td>
97 <td><code> [inline]</code></td>
98 </tr>
99 </table>
100 </div>
101 <div class="memdoc">
104 Does not change TZ, only saves current setting.
107 <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>
109 </div>
110 </div><p>
111 <a class="anchor" name="11b3c0192d3b4eb7471cce7159c3c6a2"></a><!-- doxytag: member="Barry::Sync::TzWrapper::TzWrapper" ref="11b3c0192d3b4eb7471cce7159c3c6a2" args="(const char *timezone)" -->
112 <div class="memitem">
113 <div class="memproto">
114 <table class="memname">
115 <tr>
116 <td class="memname">Barry::Sync::TzWrapper::TzWrapper </td>
117 <td>(</td>
118 <td class="paramtype">const char *&nbsp;</td>
119 <td class="paramname"> <em>timezone</em> </td>
120 <td>&nbsp;)&nbsp;</td>
121 <td><code> [inline, explicit]</code></td>
122 </tr>
123 </table>
124 </div>
125 <div class="memdoc">
128 Saves current setting and sets TZ to new timezone value.
130 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>.
131 <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>
133 </div>
134 </div><p>
135 <hr><h2>Member Function Documentation</h2>
136 <a class="anchor" name="46e3e3ec5c35694810271476707a6186"></a><!-- doxytag: member="Barry::Sync::TzWrapper::Set" ref="46e3e3ec5c35694810271476707a6186" args="(const char *timezone)" -->
137 <div class="memitem">
138 <div class="memproto">
139 <table class="memname">
140 <tr>
141 <td class="memname"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a>&amp; Barry::Sync::TzWrapper::Set </td>
142 <td>(</td>
143 <td class="paramtype">const char *&nbsp;</td>
144 <td class="paramname"> <em>timezone</em> </td>
145 <td>&nbsp;)&nbsp;</td>
146 <td><code> [inline]</code></td>
147 </tr>
148 </table>
149 </div>
150 <div class="memdoc">
153 Set TZ to a new value.
155 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>
156 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>.
157 <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>
159 <p>Referenced by <a class="el" href="tzwrapper_8cc-source.html#l00157">SetOffset()</a>.</p>
162 <div class="dynheader">
163 Here is the caller graph for this function:</div>
164 <div class="dynsection">
165 <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>
166 <map name="classBarry_1_1Sync_1_1TzWrapper_46e3e3ec5c35694810271476707a6186_icgraph_map">
167 <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>
168 </div>
170 </div>
171 </div><p>
172 <a class="anchor" name="27d8874df34bd4f04bd4430d0d4a2523"></a><!-- doxytag: member="Barry::Sync::TzWrapper::Unset" ref="27d8874df34bd4f04bd4430d0d4a2523" args="()" -->
173 <div class="memitem">
174 <div class="memproto">
175 <table class="memname">
176 <tr>
177 <td class="memname"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a>&amp; Barry::Sync::TzWrapper::Unset </td>
178 <td>(</td>
179 <td class="paramname"> </td>
180 <td>&nbsp;)&nbsp;</td>
181 <td><code> [inline]</code></td>
182 </tr>
183 </table>
184 </div>
185 <div class="memdoc">
188 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>.
190 This is not a permanent condition, since TZ will be restored to original state upon destruction.
191 <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>
193 </div>
194 </div><p>
195 <a class="anchor" name="ab3349c356c87e37d41841d78fd8f227"></a><!-- doxytag: member="Barry::Sync::TzWrapper::SetUTC" ref="ab3349c356c87e37d41841d78fd8f227" args="()" -->
196 <div class="memitem">
197 <div class="memproto">
198 <table class="memname">
199 <tr>
200 <td class="memname"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a>&amp; Barry::Sync::TzWrapper::SetUTC </td>
201 <td>(</td>
202 <td class="paramname"> </td>
203 <td>&nbsp;)&nbsp;</td>
204 <td><code> [inline]</code></td>
205 </tr>
206 </table>
207 </div>
208 <div class="memdoc">
211 Set timezone to UTC.
214 <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>
216 <p>Referenced by <a class="el" href="tzwrapper_8cc-source.html#l00183">iso_mktime()</a>.</p>
219 <div class="dynheader">
220 Here is the caller graph for this function:</div>
221 <div class="dynsection">
222 <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>
223 <map name="classBarry_1_1Sync_1_1TzWrapper_ab3349c356c87e37d41841d78fd8f227_icgraph_map">
224 <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>
225 </div>
227 </div>
228 </div><p>
229 <a class="anchor" name="6770fc385305652d74b565b882dfab0c"></a><!-- doxytag: member="Barry::Sync::TzWrapper::SetOffset" ref="6770fc385305652d74b565b882dfab0c" args="(int zoneminutes)" -->
230 <div class="memitem">
231 <div class="memproto">
232 <table class="memname">
233 <tr>
234 <td class="memname"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a> &amp; Barry::Sync::TzWrapper::SetOffset </td>
235 <td>(</td>
236 <td class="paramtype">int&nbsp;</td>
237 <td class="paramname"> <em>zoneminutes</em> </td>
238 <td>&nbsp;)&nbsp;</td>
239 <td></td>
240 </tr>
241 </table>
242 </div>
243 <div class="memdoc">
246 Set timezone via offset in minutes Negative minutes goes west, positive goes east i.e.
248 -05:00 is EST
249 <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>
251 <p>References <a class="el" href="tzwrapper_8h-source.html#l00146">Set()</a>.</p>
253 <p>Referenced by <a class="el" href="tzwrapper_8cc-source.html#l00183">iso_mktime()</a>.</p>
256 <div class="dynheader">
257 Here is the call graph for this function:</div>
258 <div class="dynsection">
259 <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>
260 <map name="classBarry_1_1Sync_1_1TzWrapper_6770fc385305652d74b565b882dfab0c_cgraph_map">
261 <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>
262 </div>
265 <div class="dynheader">
266 Here is the caller graph for this function:</div>
267 <div class="dynsection">
268 <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>
269 <map name="classBarry_1_1Sync_1_1TzWrapper_6770fc385305652d74b565b882dfab0c_icgraph_map">
270 <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>
271 </div>
273 </div>
274 </div><p>
275 <a class="anchor" name="64528d9b642db8defc4163c613ff0366"></a><!-- doxytag: member="Barry::Sync::TzWrapper::SetSysLocal" ref="64528d9b642db8defc4163c613ff0366" args="()" -->
276 <div class="memitem">
277 <div class="memproto">
278 <table class="memname">
279 <tr>
280 <td class="memname"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a>&amp; Barry::Sync::TzWrapper::SetSysLocal </td>
281 <td>(</td>
282 <td class="paramname"> </td>
283 <td>&nbsp;)&nbsp;</td>
284 <td><code> [inline]</code></td>
285 </tr>
286 </table>
287 </div>
288 <div class="memdoc">
291 Use system localtime.
293 This overrides any TZ value that the user may have set before running your program.
294 <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>
296 </div>
297 </div><p>
298 <a class="anchor" name="f47fbd57f1417575a1c0c958d57ca395"></a><!-- doxytag: member="Barry::Sync::TzWrapper::SetDefault" ref="f47fbd57f1417575a1c0c958d57ca395" args="()" -->
299 <div class="memitem">
300 <div class="memproto">
301 <table class="memname">
302 <tr>
303 <td class="memname"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a>&amp; Barry::Sync::TzWrapper::SetDefault </td>
304 <td>(</td>
305 <td class="paramname"> </td>
306 <td>&nbsp;)&nbsp;</td>
307 <td><code> [inline]</code></td>
308 </tr>
309 </table>
310 </div>
311 <div class="memdoc">
314 Use the default TZ value that the user set before running this program.
316 In most cases, this will be the user's preferred local timezone.
317 <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>
319 </div>
320 </div><p>
321 <a class="anchor" name="dd71d2129221171a01fe5efc5e3aeeab"></a><!-- doxytag: member="Barry::Sync::TzWrapper::SetOrig" ref="dd71d2129221171a01fe5efc5e3aeeab" args="()" -->
322 <div class="memitem">
323 <div class="memproto">
324 <table class="memname">
325 <tr>
326 <td class="memname"><a class="el" href="classBarry_1_1Sync_1_1TzWrapper.html">TzWrapper</a>&amp; Barry::Sync::TzWrapper::SetOrig </td>
327 <td>(</td>
328 <td class="paramname"> </td>
329 <td>&nbsp;)&nbsp;</td>
330 <td><code> [inline]</code></td>
331 </tr>
332 </table>
333 </div>
334 <div class="memdoc">
337 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>.
340 <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>
342 </div>
343 </div><p>
344 <a class="anchor" name="c1524071e5a61fa789331c9784b6093d"></a><!-- doxytag: member="Barry::Sync::TzWrapper::iso_mktime" ref="c1524071e5a61fa789331c9784b6093d" args="(const char *timestamp)" -->
345 <div class="memitem">
346 <div class="memproto">
347 <table class="memname">
348 <tr>
349 <td class="memname">time_t Barry::Sync::TzWrapper::iso_mktime </td>
350 <td>(</td>
351 <td class="paramtype">const char *&nbsp;</td>
352 <td class="paramname"> <em>timestamp</em> </td>
353 <td>&nbsp;)&nbsp;</td>
354 <td><code> [static]</code></td>
355 </tr>
356 </table>
357 </div>
358 <div class="memdoc">
361 Converts an ISO timestamp (YYYYMMDDTHHMMWW[Z]) into a unix time_t.
363 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>
364 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.
365 <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>
367 <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>
369 <p>Referenced by <a class="el" href="vbase_8cc-source.html#l00056">Barry::Sync::vTimeConverter::vtime2unix()</a>.</p>
372 <div class="dynheader">
373 Here is the call graph for this function:</div>
374 <div class="dynsection">
375 <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>
376 <map name="classBarry_1_1Sync_1_1TzWrapper_c1524071e5a61fa789331c9784b6093d_cgraph_map">
377 <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>
378 </div>
381 <div class="dynheader">
382 Here is the caller graph for this function:</div>
383 <div class="dynsection">
384 <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>
385 <map name="classBarry_1_1Sync_1_1TzWrapper_c1524071e5a61fa789331c9784b6093d_icgraph_map">
386 <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>
387 </div>
389 </div>
390 </div><p>
391 <hr>The documentation for this class was generated from the following files:<ul>
392 <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>
393 </div>
394 <hr size="1"><address style="text-align: right;"><small>Generated on Thu Feb 10 16:14:48 2011 for Barry by&nbsp;
395 <a href="http://www.doxygen.org/index.html">
396 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
397 </body>
398 </html>