<!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"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>ICU 52.1: simpletz.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">ICU 52.1  <span id="projectnumber">52.1</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.1.2 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</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>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_73bc6a9bb617ea1bc89a10aa59ce84e4.html">i18n</a></li><li class="navelem"><a class="el" href="dir_0119ce638985e8a1561a00fdb5f76ff6.html">unicode</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">simpletz.h</div> </div> </div><!--header--> <div class="contents"> <a href="simpletz_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div> <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> ********************************************************************************</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * Copyright (C) 1997-2013, International Business Machines *</span></div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * Corporation and others. All Rights Reserved. *</span></div> <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> ********************************************************************************</span></div> <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> *</span></div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * File SIMPLETZ.H</span></div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> *</span></div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * Modification History:</span></div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> *</span></div> <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * Date Name Description</span></div> <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * 04/21/97 aliu Overhauled header.</span></div> <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * 08/10/98 stephen JDK 1.2 sync</span></div> <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * Added setStartRule() / setEndRule() overloads</span></div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * Added hasSameRules()</span></div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * 09/02/98 stephen Added getOffset(monthLen)</span></div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * Changed getOffset() to take UErrorCode</span></div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * 07/09/99 stephen Removed millisPerHour (unused, for HP compiler)</span></div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * 12/02/99 aliu Added TimeMode and constructor and setStart/EndRule</span></div> <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * methods that take TimeMode. Added to docs.</span></div> <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> ********************************************************************************</span></div> <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> */</span></div> <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div> <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#ifndef SIMPLETZ_H</span></div> <div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor"></span><span class="preprocessor">#define SIMPLETZ_H</span></div> <div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="utypes_8h.html" title="Basic definitions for ICU, for both C and C++ APIs.">unicode/utypes.h</a>"</span></div> <div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div> <div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#if !UCONFIG_NO_FORMATTING</span></div> <div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#include "<a class="code" href="basictz_8h.html" title="C++ API: ICU TimeZone base class.">unicode/basictz.h</a>"</span></div> <div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div> <div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <a class="code" href="uversion_8h.html#a7d9374e037299886d4192b763b4c5e8b" title="This is used to begin a declaration of a public ICU C++ API.">U_NAMESPACE_BEGIN</a></div> <div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div> <div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment">// forward declaration</span></div> <div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">class </span>InitialTimeZoneRule;</div> <div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="keyword">class </span>TimeZoneTransition;</div> <div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="keyword">class </span>AnnualTimeZoneRule;</div> <div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div> <div class="line"><a name="l00061"></a><span class="lineno"><a class="code" href="classicu_1_1SimpleTimeZone.html"> 61</a></span> <span class="keyword">class </span><a class="code" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a" title="Set to export library symbols from inside the i18n library, and to import them from outside...">U_I18N_API</a> <a class="code" href="classicu_1_1SimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for use with a Gregoria...">SimpleTimeZone</a>: <span class="keyword">public</span> <a class="code" href="classicu_1_1BasicTimeZone.html" title="BasicTimeZone is an abstract class extending TimeZone.">BasicTimeZone</a> {</div> <div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="keyword">public</span>:</div> <div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div> <div class="line"><a name="l00075"></a><span class="lineno"><a class="code" href="classicu_1_1SimpleTimeZone.html#a2108a448ec99a7c20a1bf31c2a98327a"> 75</a></span>  <span class="keyword">enum</span> <a class="code" href="classicu_1_1SimpleTimeZone.html#a2108a448ec99a7c20a1bf31c2a98327a" title="TimeMode is used, together with a millisecond offset after midnight, to specify a rule transition tim...">TimeMode</a> {</div> <div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  WALL_TIME = 0,</div> <div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  STANDARD_TIME,</div> <div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  UTC_TIME</div> <div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  };</div> <div class="line"><a name="l00080"></a><span class="lineno"> 80</span> </div> <div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <a class="code" href="classicu_1_1SimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for use with a Gregoria...">SimpleTimeZone</a>(<span class="keyword">const</span> <a class="code" href="classicu_1_1SimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for use with a Gregoria...">SimpleTimeZone</a>& source);</div> <div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div> <div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <a class="code" href="classicu_1_1SimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for use with a Gregoria...">SimpleTimeZone</a>& <a class="code" href="classicu_1_1TimeZone.html#a7b3f170ef0dc76e81249898960b787ba" title="Default assignment operator.">operator=</a>(<span class="keyword">const</span> <a class="code" href="classicu_1_1SimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for use with a Gregoria...">SimpleTimeZone</a>& right);</div> <div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div> <div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keyword">virtual</span> ~<a class="code" href="classicu_1_1SimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for use with a Gregoria...">SimpleTimeZone</a>();</div> <div class="line"><a name="l00100"></a><span class="lineno"> 100</span> </div> <div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keyword">virtual</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> <a class="code" href="classicu_1_1TimeZone.html#a8c2b510e0d3d56ccc00de547b39efa80" title="Returns true if the two TimeZones are equal.">operator==</a>(<span class="keyword">const</span> <a class="code" href="classicu_1_1TimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a>& that) <span class="keyword">const</span>;</div> <div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div> <div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="classicu_1_1SimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for use with a Gregoria...">SimpleTimeZone</a>(int32_t rawOffsetGMT, <span class="keyword">const</span> <a class="code" href="classicu_1_1UnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a>& ID);</div> <div class="line"><a name="l00124"></a><span class="lineno"> 124</span> </div> <div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="code" href="classicu_1_1SimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for use with a Gregoria...">SimpleTimeZone</a>(int32_t rawOffsetGMT, <span class="keyword">const</span> <a class="code" href="classicu_1_1UnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a>& ID,</div> <div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  int8_t savingsStartMonth, int8_t savingsStartDayOfWeekInMonth,</div> <div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  int8_t savingsStartDayOfWeek, int32_t savingsStartTime,</div> <div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  int8_t savingsEndMonth, int8_t savingsEndDayOfWeekInMonth,</div> <div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  int8_t savingsEndDayOfWeek, int32_t savingsEndTime,</div> <div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status);</div> <div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <a class="code" href="classicu_1_1SimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for use with a Gregoria...">SimpleTimeZone</a>(int32_t rawOffsetGMT, <span class="keyword">const</span> <a class="code" href="classicu_1_1UnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a>& ID,</div> <div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  int8_t savingsStartMonth, int8_t savingsStartDayOfWeekInMonth,</div> <div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  int8_t savingsStartDayOfWeek, int32_t savingsStartTime,</div> <div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  int8_t savingsEndMonth, int8_t savingsEndDayOfWeekInMonth,</div> <div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  int8_t savingsEndDayOfWeek, int32_t savingsEndTime,</div> <div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  int32_t savingsDST, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status);</div> <div class="line"><a name="l00209"></a><span class="lineno"> 209</span> </div> <div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <a class="code" href="classicu_1_1SimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for use with a Gregoria...">SimpleTimeZone</a>(int32_t rawOffsetGMT, <span class="keyword">const</span> <a class="code" href="classicu_1_1UnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a>& ID,</div> <div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  int8_t savingsStartMonth, int8_t savingsStartDayOfWeekInMonth,</div> <div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  int8_t savingsStartDayOfWeek, int32_t savingsStartTime,</div> <div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  TimeMode savingsStartTimeMode,</div> <div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  int8_t savingsEndMonth, int8_t savingsEndDayOfWeekInMonth,</div> <div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  int8_t savingsEndDayOfWeek, int32_t savingsEndTime, TimeMode savingsEndTimeMode,</div> <div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  int32_t savingsDST, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status);</div> <div class="line"><a name="l00258"></a><span class="lineno"> 258</span> </div> <div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  <span class="keywordtype">void</span> setStartYear(int32_t year);</div> <div class="line"><a name="l00268"></a><span class="lineno"> 268</span> </div> <div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  <span class="keywordtype">void</span> setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,</div> <div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  int32_t time, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status);</div> <div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  <span class="keywordtype">void</span> setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,</div> <div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  int32_t time, TimeMode mode, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status);</div> <div class="line"><a name="l00359"></a><span class="lineno"> 359</span> </div> <div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  <span class="keywordtype">void</span> setStartRule(int32_t month, int32_t dayOfMonth, int32_t time,</div> <div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status);</div> <div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  <span class="keywordtype">void</span> setStartRule(int32_t month, int32_t dayOfMonth, int32_t time,</div> <div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  TimeMode mode, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status);</div> <div class="line"><a name="l00388"></a><span class="lineno"> 388</span> </div> <div class="line"><a name="l00405"></a><span class="lineno"> 405</span>  <span class="keywordtype">void</span> setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,</div> <div class="line"><a name="l00406"></a><span class="lineno"> 406</span>  int32_t time, <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> after, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status);</div> <div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  <span class="keywordtype">void</span> setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,</div> <div class="line"><a name="l00426"></a><span class="lineno"> 426</span>  int32_t time, TimeMode mode, <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> after, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status);</div> <div class="line"><a name="l00427"></a><span class="lineno"> 427</span> </div> <div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  <span class="keywordtype">void</span> setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,</div> <div class="line"><a name="l00451"></a><span class="lineno"> 451</span>  int32_t time, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status);</div> <div class="line"><a name="l00452"></a><span class="lineno"> 452</span> </div> <div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  <span class="keywordtype">void</span> setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,</div> <div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  int32_t time, TimeMode mode, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status);</div> <div class="line"><a name="l00479"></a><span class="lineno"> 479</span> </div> <div class="line"><a name="l00491"></a><span class="lineno"> 491</span>  <span class="keywordtype">void</span> setEndRule(int32_t month, int32_t dayOfMonth, int32_t time, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status);</div> <div class="line"><a name="l00492"></a><span class="lineno"> 492</span> </div> <div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  <span class="keywordtype">void</span> setEndRule(int32_t month, int32_t dayOfMonth, int32_t time,</div> <div class="line"><a name="l00507"></a><span class="lineno"> 507</span>  TimeMode mode, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status);</div> <div class="line"><a name="l00508"></a><span class="lineno"> 508</span> </div> <div class="line"><a name="l00525"></a><span class="lineno"> 525</span>  <span class="keywordtype">void</span> setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,</div> <div class="line"><a name="l00526"></a><span class="lineno"> 526</span>  int32_t time, <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> after, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status);</div> <div class="line"><a name="l00527"></a><span class="lineno"> 527</span> </div> <div class="line"><a name="l00546"></a><span class="lineno"> 546</span>  <span class="keywordtype">void</span> setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,</div> <div class="line"><a name="l00547"></a><span class="lineno"> 547</span>  int32_t time, TimeMode mode, <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> after, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status);</div> <div class="line"><a name="l00548"></a><span class="lineno"> 548</span> </div> <div class="line"><a name="l00569"></a><span class="lineno"> 569</span>  <span class="keyword">virtual</span> int32_t <a class="code" href="classicu_1_1TimeZone.html#a46ea292ce977f08f7a1b4868994b5914" title="Returns the TimeZone's adjusted GMT offset (i.e., the number of milliseconds to add to GMT to get loc...">getOffset</a>(uint8_t era, int32_t year, int32_t month, int32_t day,</div> <div class="line"><a name="l00570"></a><span class="lineno"> 570</span>  uint8_t dayOfWeek, int32_t millis, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status) <span class="keyword">const</span>;</div> <div class="line"><a name="l00571"></a><span class="lineno"> 571</span> </div> <div class="line"><a name="l00587"></a><span class="lineno"> 587</span>  <span class="keyword">virtual</span> int32_t <a class="code" href="classicu_1_1TimeZone.html#a46ea292ce977f08f7a1b4868994b5914" title="Returns the TimeZone's adjusted GMT offset (i.e., the number of milliseconds to add to GMT to get loc...">getOffset</a>(uint8_t era, int32_t year, int32_t month, int32_t day,</div> <div class="line"><a name="l00588"></a><span class="lineno"> 588</span>  uint8_t dayOfWeek, int32_t milliseconds,</div> <div class="line"><a name="l00589"></a><span class="lineno"> 589</span>  int32_t monthLength, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status) <span class="keyword">const</span>;</div> <div class="line"><a name="l00606"></a><span class="lineno"> 606</span>  <span class="keyword">virtual</span> int32_t <a class="code" href="classicu_1_1TimeZone.html#a46ea292ce977f08f7a1b4868994b5914" title="Returns the TimeZone's adjusted GMT offset (i.e., the number of milliseconds to add to GMT to get loc...">getOffset</a>(uint8_t era, int32_t year, int32_t month, int32_t day,</div> <div class="line"><a name="l00607"></a><span class="lineno"> 607</span>  uint8_t dayOfWeek, int32_t milliseconds,</div> <div class="line"><a name="l00608"></a><span class="lineno"> 608</span>  int32_t monthLength, int32_t prevMonthLength,</div> <div class="line"><a name="l00609"></a><span class="lineno"> 609</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status) <span class="keyword">const</span>;</div> <div class="line"><a name="l00610"></a><span class="lineno"> 610</span> </div> <div class="line"><a name="l00616"></a><span class="lineno"> 616</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classicu_1_1TimeZone.html#a46ea292ce977f08f7a1b4868994b5914" title="Returns the TimeZone's adjusted GMT offset (i.e., the number of milliseconds to add to GMT to get loc...">getOffset</a>(<a class="code" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039" title="Date and Time data type.">UDate</a> date, <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> local, int32_t& rawOffset,</div> <div class="line"><a name="l00617"></a><span class="lineno"> 617</span>  int32_t& dstOffset, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& ec) <span class="keyword">const</span>;</div> <div class="line"><a name="l00618"></a><span class="lineno"> 618</span> </div> <div class="line"><a name="l00623"></a><span class="lineno"> 623</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classicu_1_1BasicTimeZone.html#a6330c04073b93ead7945b9a31d6700bc" title="Get time zone offsets from local wall time.">getOffsetFromLocal</a>(<a class="code" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039" title="Date and Time data type.">UDate</a> date, int32_t nonExistingTimeOpt, int32_t duplicatedTimeOpt,</div> <div class="line"><a name="l00624"></a><span class="lineno"> 624</span>  int32_t& rawOffset, int32_t& dstOffset, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status) <span class="keyword">const</span>;</div> <div class="line"><a name="l00625"></a><span class="lineno"> 625</span> </div> <div class="line"><a name="l00633"></a><span class="lineno"> 633</span>  <span class="keyword">virtual</span> int32_t <a class="code" href="classicu_1_1TimeZone.html#a36d5dfcbaec14010c151344752b9eea8" title="Returns the TimeZone's raw GMT offset (i.e., the number of milliseconds to add to GMT to get local ti...">getRawOffset</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;</div> <div class="line"><a name="l00634"></a><span class="lineno"> 634</span> </div> <div class="line"><a name="l00642"></a><span class="lineno"> 642</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classicu_1_1TimeZone.html#a19c3aad4a860a75067855605aaeb8e1e" title="Sets the TimeZone's raw GMT offset (i.e., the number of milliseconds to add to GMT to get local time...">setRawOffset</a>(int32_t offsetMillis);</div> <div class="line"><a name="l00643"></a><span class="lineno"> 643</span> </div> <div class="line"><a name="l00652"></a><span class="lineno"> 652</span>  <span class="keywordtype">void</span> setDSTSavings(int32_t millisSavedDuringDST, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status);</div> <div class="line"><a name="l00653"></a><span class="lineno"> 653</span> </div> <div class="line"><a name="l00661"></a><span class="lineno"> 661</span>  <span class="keyword">virtual</span> int32_t <a class="code" href="classicu_1_1TimeZone.html#a8ed17d2111fc563c6a5169a9d17acb98" title="Returns the amount of time to be added to local standard time to get local wall clock time...">getDSTSavings</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;</div> <div class="line"><a name="l00662"></a><span class="lineno"> 662</span> </div> <div class="line"><a name="l00669"></a><span class="lineno"> 669</span>  <span class="keyword">virtual</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> <a class="code" href="classicu_1_1TimeZone.html#a838c7663925e7d1805475c2c5053d416" title="Queries if this time zone uses daylight savings time.">useDaylightTime</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;</div> <div class="line"><a name="l00670"></a><span class="lineno"> 670</span> </div> <div class="line"><a name="l00685"></a><span class="lineno"> 685</span>  <span class="keyword">virtual</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> <a class="code" href="classicu_1_1TimeZone.html#ad9698381477a6f59ead590bb8917c1a4" title="Queries if the given date is in daylight savings time in this time zone.">inDaylightTime</a>(<a class="code" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039" title="Date and Time data type.">UDate</a> date, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status) <span class="keyword">const</span>;</div> <div class="line"><a name="l00686"></a><span class="lineno"> 686</span> </div> <div class="line"><a name="l00693"></a><span class="lineno"> 693</span>  <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> <a class="code" href="classicu_1_1TimeZone.html#af7e240212db4c8f714286a739506abb5" title="Returns true if this zone has the same rule and offset as another zone.">hasSameRules</a>(<span class="keyword">const</span> <a class="code" href="classicu_1_1TimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a>& other) <span class="keyword">const</span>;</div> <div class="line"><a name="l00694"></a><span class="lineno"> 694</span> </div> <div class="line"><a name="l00702"></a><span class="lineno"> 702</span>  <span class="keyword">virtual</span> <a class="code" href="classicu_1_1TimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a>* <a class="code" href="classicu_1_1TimeZone.html#adb3568dd3c62e6dcb55a74037535bcbb" title="Clones TimeZone objects polymorphically.">clone</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;</div> <div class="line"><a name="l00703"></a><span class="lineno"> 703</span> </div> <div class="line"><a name="l00712"></a><span class="lineno"> 712</span>  <span class="keyword">virtual</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> <a class="code" href="classicu_1_1BasicTimeZone.html#ac398f0647dd9c3206d2eb6029fb5d7a9" title="Gets the first time zone transition after the base time.">getNextTransition</a>(<a class="code" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039" title="Date and Time data type.">UDate</a> base, <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> inclusive, <a class="code" href="classicu_1_1TimeZoneTransition.html" title="TimeZoneTransition is a class representing a time zone transition.">TimeZoneTransition</a>& result) <span class="keyword">const</span>;</div> <div class="line"><a name="l00713"></a><span class="lineno"> 713</span> </div> <div class="line"><a name="l00722"></a><span class="lineno"> 722</span>  <span class="keyword">virtual</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> <a class="code" href="classicu_1_1BasicTimeZone.html#ae8b73123130deae483830b36f2da2c87" title="Gets the most recent time zone transition before the base time.">getPreviousTransition</a>(<a class="code" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039" title="Date and Time data type.">UDate</a> base, <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> inclusive, <a class="code" href="classicu_1_1TimeZoneTransition.html" title="TimeZoneTransition is a class representing a time zone transition.">TimeZoneTransition</a>& result) <span class="keyword">const</span>;</div> <div class="line"><a name="l00723"></a><span class="lineno"> 723</span> </div> <div class="line"><a name="l00732"></a><span class="lineno"> 732</span>  <span class="keyword">virtual</span> int32_t <a class="code" href="classicu_1_1BasicTimeZone.html#af96a42842f1963c58a9b953010a7f295" title="Returns the number of TimeZoneRules which represents time transitions, for this time zone...">countTransitionRules</a>(<a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status) <span class="keyword">const</span>;</div> <div class="line"><a name="l00733"></a><span class="lineno"> 733</span> </div> <div class="line"><a name="l00750"></a><span class="lineno"> 750</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classicu_1_1BasicTimeZone.html#aa3b25fc7ca494eca418d1a629f896a5b" title="Gets the InitialTimeZoneRule and the set of TimeZoneRule which represent time transitions for this ti...">getTimeZoneRules</a>(<span class="keyword">const</span> <a class="code" href="classicu_1_1InitialTimeZoneRule.html" title="InitialTimeZoneRule represents a time zone rule representing a time zone effective from the beginning...">InitialTimeZoneRule</a>*& initial,</div> <div class="line"><a name="l00751"></a><span class="lineno"> 751</span>  <span class="keyword">const</span> <a class="code" href="classicu_1_1TimeZoneRule.html" title="TimeZoneRule is a class representing a rule for time zone.">TimeZoneRule</a>* trsrules[], int32_t& trscount, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status) <span class="keyword">const</span>;</div> <div class="line"><a name="l00752"></a><span class="lineno"> 752</span> </div> <div class="line"><a name="l00753"></a><span class="lineno"> 753</span> </div> <div class="line"><a name="l00754"></a><span class="lineno"> 754</span> <span class="keyword">public</span>:</div> <div class="line"><a name="l00755"></a><span class="lineno"> 755</span> </div> <div class="line"><a name="l00766"></a><span class="lineno"> 766</span>  <span class="keyword">virtual</span> <a class="code" href="uobject_8h.html#a22af10545208a455a6e884008df48e9f" title="UClassID is used to identify classes without using the compiler's RTTI.">UClassID</a> <a class="code" href="classicu_1_1TimeZone.html#a01e831eb651448ff2fdf7d825de19663" title="Returns a unique class ID POLYMORPHICALLY.">getDynamicClassID</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;</div> <div class="line"><a name="l00767"></a><span class="lineno"> 767</span> </div> <div class="line"><a name="l00779"></a><span class="lineno"> 779</span>  <span class="keyword">static</span> <a class="code" href="uobject_8h.html#a22af10545208a455a6e884008df48e9f" title="UClassID is used to identify classes without using the compiler's RTTI.">UClassID</a> U_EXPORT2 <a class="code" href="classicu_1_1TimeZone.html#a13c672b604041624746d936671a3bbd2" title="Return the class ID for this class.">getStaticClassID</a>(<span class="keywordtype">void</span>);</div> <div class="line"><a name="l00780"></a><span class="lineno"> 780</span> </div> <div class="line"><a name="l00781"></a><span class="lineno"> 781</span> <span class="keyword">private</span>:</div> <div class="line"><a name="l00785"></a><span class="lineno"> 785</span>  <span class="keyword">enum</span> EMode</div> <div class="line"><a name="l00786"></a><span class="lineno"> 786</span>  {</div> <div class="line"><a name="l00787"></a><span class="lineno"> 787</span>  DOM_MODE = 1,</div> <div class="line"><a name="l00788"></a><span class="lineno"> 788</span>  DOW_IN_MONTH_MODE,</div> <div class="line"><a name="l00789"></a><span class="lineno"> 789</span>  DOW_GE_DOM_MODE,</div> <div class="line"><a name="l00790"></a><span class="lineno"> 790</span>  DOW_LE_DOM_MODE</div> <div class="line"><a name="l00791"></a><span class="lineno"> 791</span>  };</div> <div class="line"><a name="l00792"></a><span class="lineno"> 792</span> </div> <div class="line"><a name="l00793"></a><span class="lineno"> 793</span>  SimpleTimeZone(); <span class="comment">// default constructor not implemented</span></div> <div class="line"><a name="l00794"></a><span class="lineno"> 794</span> </div> <div class="line"><a name="l00814"></a><span class="lineno"> 814</span>  <span class="keywordtype">void</span> construct(int32_t rawOffsetGMT,</div> <div class="line"><a name="l00815"></a><span class="lineno"> 815</span>  int8_t startMonth, int8_t startDay, int8_t startDayOfWeek,</div> <div class="line"><a name="l00816"></a><span class="lineno"> 816</span>  int32_t startTime, TimeMode startTimeMode,</div> <div class="line"><a name="l00817"></a><span class="lineno"> 817</span>  int8_t endMonth, int8_t endDay, int8_t endDayOfWeek,</div> <div class="line"><a name="l00818"></a><span class="lineno"> 818</span>  int32_t endTime, TimeMode endTimeMode,</div> <div class="line"><a name="l00819"></a><span class="lineno"> 819</span>  int32_t dstSavings, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status);</div> <div class="line"><a name="l00820"></a><span class="lineno"> 820</span> </div> <div class="line"><a name="l00830"></a><span class="lineno"> 830</span>  <span class="keyword">static</span> int32_t compareToRule(int8_t month, int8_t monthLen, int8_t prevMonthLen,</div> <div class="line"><a name="l00831"></a><span class="lineno"> 831</span>  int8_t dayOfMonth,</div> <div class="line"><a name="l00832"></a><span class="lineno"> 832</span>  int8_t dayOfWeek, int32_t millis, int32_t millisDelta,</div> <div class="line"><a name="l00833"></a><span class="lineno"> 833</span>  EMode ruleMode, int8_t ruleMonth, int8_t ruleDayOfWeek,</div> <div class="line"><a name="l00834"></a><span class="lineno"> 834</span>  int8_t ruleDay, int32_t ruleMillis);</div> <div class="line"><a name="l00835"></a><span class="lineno"> 835</span> </div> <div class="line"><a name="l00851"></a><span class="lineno"> 851</span>  <span class="keywordtype">void</span> decodeRules(<a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status);</div> <div class="line"><a name="l00852"></a><span class="lineno"> 852</span>  <span class="keywordtype">void</span> decodeStartRule(<a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status);</div> <div class="line"><a name="l00853"></a><span class="lineno"> 853</span>  <span class="keywordtype">void</span> decodeEndRule(<a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status);</div> <div class="line"><a name="l00854"></a><span class="lineno"> 854</span> </div> <div class="line"><a name="l00855"></a><span class="lineno"> 855</span>  int8_t startMonth, startDay, startDayOfWeek; <span class="comment">// the month, day, DOW, and time DST starts</span></div> <div class="line"><a name="l00856"></a><span class="lineno"> 856</span>  int32_t startTime;</div> <div class="line"><a name="l00857"></a><span class="lineno"> 857</span>  TimeMode startTimeMode, endTimeMode; <span class="comment">// Mode for startTime, endTime; see TimeMode</span></div> <div class="line"><a name="l00858"></a><span class="lineno"> 858</span>  int8_t endMonth, endDay, endDayOfWeek; <span class="comment">// the month, day, DOW, and time DST ends</span></div> <div class="line"><a name="l00859"></a><span class="lineno"> 859</span>  int32_t endTime;</div> <div class="line"><a name="l00860"></a><span class="lineno"> 860</span>  int32_t startYear; <span class="comment">// the year these DST rules took effect</span></div> <div class="line"><a name="l00861"></a><span class="lineno"> 861</span>  int32_t rawOffset; <span class="comment">// the TimeZone's raw GMT offset</span></div> <div class="line"><a name="l00862"></a><span class="lineno"> 862</span>  <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> useDaylight; <span class="comment">// flag indicating whether this TimeZone uses DST</span></div> <div class="line"><a name="l00863"></a><span class="lineno"> 863</span>  <span class="keyword">static</span> <span class="keyword">const</span> int8_t STATICMONTHLENGTH[12]; <span class="comment">// lengths of the months</span></div> <div class="line"><a name="l00864"></a><span class="lineno"> 864</span>  EMode startMode, endMode; <span class="comment">// flags indicating what kind of rules the DST rules are</span></div> <div class="line"><a name="l00865"></a><span class="lineno"> 865</span> </div> <div class="line"><a name="l00870"></a><span class="lineno"> 870</span>  int32_t dstSavings;</div> <div class="line"><a name="l00871"></a><span class="lineno"> 871</span> </div> <div class="line"><a name="l00872"></a><span class="lineno"> 872</span>  <span class="comment">/* Private for BasicTimeZone implementation */</span></div> <div class="line"><a name="l00873"></a><span class="lineno"> 873</span>  <span class="keywordtype">void</span> checkTransitionRules(<a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status) <span class="keyword">const</span>;</div> <div class="line"><a name="l00874"></a><span class="lineno"> 874</span>  <span class="keywordtype">void</span> initTransitionRules(<a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status);</div> <div class="line"><a name="l00875"></a><span class="lineno"> 875</span>  <span class="keywordtype">void</span> clearTransitionRules(<span class="keywordtype">void</span>);</div> <div class="line"><a name="l00876"></a><span class="lineno"> 876</span>  <span class="keywordtype">void</span> deleteTransitionRules(<span class="keywordtype">void</span>);</div> <div class="line"><a name="l00877"></a><span class="lineno"> 877</span>  <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> transitionRulesInitialized;</div> <div class="line"><a name="l00878"></a><span class="lineno"> 878</span>  InitialTimeZoneRule* initialRule;</div> <div class="line"><a name="l00879"></a><span class="lineno"> 879</span>  TimeZoneTransition* firstTransition;</div> <div class="line"><a name="l00880"></a><span class="lineno"> 880</span>  AnnualTimeZoneRule* stdRule;</div> <div class="line"><a name="l00881"></a><span class="lineno"> 881</span>  AnnualTimeZoneRule* dstRule;</div> <div class="line"><a name="l00882"></a><span class="lineno"> 882</span> };</div> <div class="line"><a name="l00883"></a><span class="lineno"> 883</span> </div> <div class="line"><a name="l00884"></a><span class="lineno"><a class="code" href="classicu_1_1SimpleTimeZone.html#af2b8b798c7e88baa0274fe0419008513"> 884</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfWeekInMonth,</div> <div class="line"><a name="l00885"></a><span class="lineno"> 885</span>  int32_t dayOfWeek,</div> <div class="line"><a name="l00886"></a><span class="lineno"> 886</span>  int32_t time, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status) {</div> <div class="line"><a name="l00887"></a><span class="lineno"> 887</span>  setStartRule(month, dayOfWeekInMonth, dayOfWeek, time, WALL_TIME, status);</div> <div class="line"><a name="l00888"></a><span class="lineno"> 888</span> }</div> <div class="line"><a name="l00889"></a><span class="lineno"> 889</span> </div> <div class="line"><a name="l00890"></a><span class="lineno"><a class="code" href="classicu_1_1SimpleTimeZone.html#a4a7559b00c81fd2f89f587572dc8b2a3"> 890</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfMonth,</div> <div class="line"><a name="l00891"></a><span class="lineno"> 891</span>  int32_t time,</div> <div class="line"><a name="l00892"></a><span class="lineno"> 892</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status) {</div> <div class="line"><a name="l00893"></a><span class="lineno"> 893</span>  setStartRule(month, dayOfMonth, time, WALL_TIME, status);</div> <div class="line"><a name="l00894"></a><span class="lineno"> 894</span> }</div> <div class="line"><a name="l00895"></a><span class="lineno"> 895</span> </div> <div class="line"><a name="l00896"></a><span class="lineno"><a class="code" href="classicu_1_1SimpleTimeZone.html#a6e0005498f791ddf5d6594636bbc4266"> 896</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfMonth,</div> <div class="line"><a name="l00897"></a><span class="lineno"> 897</span>  int32_t dayOfWeek,</div> <div class="line"><a name="l00898"></a><span class="lineno"> 898</span>  int32_t time, <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> after, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status) {</div> <div class="line"><a name="l00899"></a><span class="lineno"> 899</span>  setStartRule(month, dayOfMonth, dayOfWeek, time, WALL_TIME, after, status);</div> <div class="line"><a name="l00900"></a><span class="lineno"> 900</span> }</div> <div class="line"><a name="l00901"></a><span class="lineno"> 901</span> </div> <div class="line"><a name="l00902"></a><span class="lineno"><a class="code" href="classicu_1_1SimpleTimeZone.html#aa36fc90af66b358342cd70e1a6369fa6"> 902</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfWeekInMonth,</div> <div class="line"><a name="l00903"></a><span class="lineno"> 903</span>  int32_t dayOfWeek,</div> <div class="line"><a name="l00904"></a><span class="lineno"> 904</span>  int32_t time, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status) {</div> <div class="line"><a name="l00905"></a><span class="lineno"> 905</span>  setEndRule(month, dayOfWeekInMonth, dayOfWeek, time, WALL_TIME, status);</div> <div class="line"><a name="l00906"></a><span class="lineno"> 906</span> }</div> <div class="line"><a name="l00907"></a><span class="lineno"> 907</span> </div> <div class="line"><a name="l00908"></a><span class="lineno"><a class="code" href="classicu_1_1SimpleTimeZone.html#acfe3fe995a5592a11c2ff7b1359d9249"> 908</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfMonth,</div> <div class="line"><a name="l00909"></a><span class="lineno"> 909</span>  int32_t time, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status) {</div> <div class="line"><a name="l00910"></a><span class="lineno"> 910</span>  setEndRule(month, dayOfMonth, time, WALL_TIME, status);</div> <div class="line"><a name="l00911"></a><span class="lineno"> 911</span> }</div> <div class="line"><a name="l00912"></a><span class="lineno"> 912</span> </div> <div class="line"><a name="l00913"></a><span class="lineno"><a class="code" href="classicu_1_1SimpleTimeZone.html#a6e423a05b7eaf3753666250c45af29f3"> 913</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,</div> <div class="line"><a name="l00914"></a><span class="lineno"> 914</span>  int32_t time, <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> after, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& status) {</div> <div class="line"><a name="l00915"></a><span class="lineno"> 915</span>  setEndRule(month, dayOfMonth, dayOfWeek, time, WALL_TIME, after, status);</div> <div class="line"><a name="l00916"></a><span class="lineno"> 916</span> }</div> <div class="line"><a name="l00917"></a><span class="lineno"> 917</span> </div> <div class="line"><a name="l00918"></a><span class="lineno"> 918</span> <span class="keyword">inline</span> <span class="keywordtype">void</span></div> <div class="line"><a name="l00919"></a><span class="lineno"><a class="code" href="classicu_1_1SimpleTimeZone.html#a6d4f2019915ecaa246386f317191ffdd"> 919</a></span> SimpleTimeZone::getOffset(<a class="code" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039" title="Date and Time data type.">UDate</a> date, <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> local, int32_t& rawOffsetRef,</div> <div class="line"><a name="l00920"></a><span class="lineno"> 920</span>  int32_t& dstOffsetRef, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a>& ec)<span class="keyword"> const </span>{</div> <div class="line"><a name="l00921"></a><span class="lineno"> 921</span>  TimeZone::getOffset(date, local, rawOffsetRef, dstOffsetRef, ec);</div> <div class="line"><a name="l00922"></a><span class="lineno"> 922</span> }</div> <div class="line"><a name="l00923"></a><span class="lineno"> 923</span> </div> <div class="line"><a name="l00924"></a><span class="lineno"> 924</span> <a class="code" href="uversion_8h.html#a3da1f00f3b02976ac53c014a3e4c0933" title="This is used to end a declaration of a public ICU C++ API.">U_NAMESPACE_END</a></div> <div class="line"><a name="l00925"></a><span class="lineno"> 925</span> </div> <div class="line"><a name="l00926"></a><span class="lineno"> 926</span> <span class="preprocessor">#endif </span><span class="comment">/* #if !UCONFIG_NO_FORMATTING */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00927"></a><span class="lineno"> 927</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00928"></a><span class="lineno"> 928</span> <span class="preprocessor">#endif // _SIMPLETZ</span></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Fri Oct 4 2013 14:10:21 for ICU 52.1 by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.1.2 </small></address> </body> </html>