<!-- This comment will put IE 6, 7 and 8 in quirks mode --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>ICU 4.4.1: simpletz.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javaScript" src="search/search.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body onload='searchBox.OnSelectItem(0);'> <!-- Generated by Doxygen 1.6.2-20100208 --> <script type="text/javascript"><!-- var searchBox = new SearchBox("searchBox", "search",false,'Search'); --></script> <div class="navigation" id="top"> <div class="tabs"> <ul> <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="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <img id="MSearchSelect" src="search/search.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </div> </li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <h1>simpletz.h</h1><a href="simpletz_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span> <a name="l00002"></a>00002 <span class="comment"> ********************************************************************************</span> <a name="l00003"></a>00003 <span class="comment"> * Copyright (C) 1997-2009, International Business Machines *</span> <a name="l00004"></a>00004 <span class="comment"> * Corporation and others. All Rights Reserved. *</span> <a name="l00005"></a>00005 <span class="comment"> ********************************************************************************</span> <a name="l00006"></a>00006 <span class="comment"> *</span> <a name="l00007"></a>00007 <span class="comment"> * File SIMPLETZ.H</span> <a name="l00008"></a>00008 <span class="comment"> *</span> <a name="l00009"></a>00009 <span class="comment"> * Modification History:</span> <a name="l00010"></a>00010 <span class="comment"> *</span> <a name="l00011"></a>00011 <span class="comment"> * Date Name Description</span> <a name="l00012"></a>00012 <span class="comment"> * 04/21/97 aliu Overhauled header.</span> <a name="l00013"></a>00013 <span class="comment"> * 08/10/98 stephen JDK 1.2 sync</span> <a name="l00014"></a>00014 <span class="comment"> * Added setStartRule() / setEndRule() overloads</span> <a name="l00015"></a>00015 <span class="comment"> * Added hasSameRules()</span> <a name="l00016"></a>00016 <span class="comment"> * 09/02/98 stephen Added getOffset(monthLen)</span> <a name="l00017"></a>00017 <span class="comment"> * Changed getOffset() to take UErrorCode</span> <a name="l00018"></a>00018 <span class="comment"> * 07/09/99 stephen Removed millisPerHour (unused, for HP compiler)</span> <a name="l00019"></a>00019 <span class="comment"> * 12/02/99 aliu Added TimeMode and constructor and setStart/EndRule</span> <a name="l00020"></a>00020 <span class="comment"> * methods that take TimeMode. Added to docs.</span> <a name="l00021"></a>00021 <span class="comment"> ********************************************************************************</span> <a name="l00022"></a>00022 <span class="comment"> */</span> <a name="l00023"></a>00023 <a name="l00024"></a>00024 <span class="preprocessor">#ifndef SIMPLETZ_H</span> <a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define SIMPLETZ_H</span> <a name="l00026"></a>00026 <span class="preprocessor"></span> <a name="l00027"></a>00027 <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> <a name="l00028"></a>00028 <a name="l00034"></a>00034 <span class="preprocessor">#if !UCONFIG_NO_FORMATTING</span> <a name="l00035"></a>00035 <span class="preprocessor"></span> <a name="l00036"></a>00036 <span class="preprocessor">#include "<a class="code" href="basictz_8h.html" title="C++ API: ICU TimeZone base class.">unicode/basictz.h</a>"</span> <a name="l00037"></a>00037 <a name="l00038"></a>00038 <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> <a name="l00039"></a>00039 <a name="l00040"></a>00040 <span class="comment">// forward declaration</span> <a name="l00041"></a>00041 <span class="keyword">class </span><a class="code" href="classInitialTimeZoneRule.html" title="InitialTimeZoneRule represents a time zone rule representing a time zone effective...">InitialTimeZoneRule</a>; <a name="l00042"></a>00042 <span class="keyword">class </span><a class="code" href="classTimeZoneTransition.html" title="TimeZoneTransition is a class representing a time zone transition.">TimeZoneTransition</a>; <a name="l00043"></a>00043 <span class="keyword">class </span><a class="code" href="classAnnualTimeZoneRule.html" title="AnnualTimeZoneRule is a class used for representing a time zone rule which takes...">AnnualTimeZoneRule</a>; <a name="l00044"></a>00044 <a name="l00061"></a><a class="code" href="classSimpleTimeZone.html">00061</a> <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...">U_I18N_API</a> <a class="code" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a>: <span class="keyword">public</span> <a class="code" href="classBasicTimeZone.html" title="BasicTimeZone is an abstract class extending TimeZone.">BasicTimeZone</a> { <a name="l00062"></a>00062 <span class="keyword">public</span>: <a name="l00063"></a>00063 <a name="l00075"></a><a class="code" href="classSimpleTimeZone.html#aa0134e78ee3cc1d65ea434839d39158e">00075</a> <span class="keyword">enum</span> <a class="code" href="classSimpleTimeZone.html#aa0134e78ee3cc1d65ea434839d39158e" title="TimeMode is used, together with a millisecond offset after midnight, to specify a...">TimeMode</a> { <a name="l00076"></a>00076 WALL_TIME = 0, <a name="l00077"></a>00077 STANDARD_TIME, <a name="l00078"></a>00078 UTC_TIME <a name="l00079"></a>00079 }; <a name="l00080"></a>00080 <a name="l00086"></a>00086 <a class="code" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a>(<span class="keyword">const</span> <a class="code" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a>& source); <a name="l00087"></a>00087 <a name="l00093"></a>00093 <a class="code" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a>& <a class="code" href="classTimeZone.html#a2b67f0f38a5462a2096ce5e3c0b6890e" title="Default assignment operator.">operator=</a>(<span class="keyword">const</span> <a class="code" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a>& right); <a name="l00094"></a>00094 <a name="l00099"></a>00099 <span class="keyword">virtual</span> ~<a class="code" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a>(); <a name="l00100"></a>00100 <a name="l00110"></a>00110 <span class="keyword">virtual</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> <a class="code" href="classTimeZone.html#a2c75a7026d9e0f061d0561fdcd6285bc" title="Returns true if the two TimeZones are equal.">operator==</a>(<span class="keyword">const</span> <a class="code" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a>& that) <span class="keyword">const</span>; <a name="l00111"></a>00111 <a name="l00123"></a>00123 <a class="code" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a>(int32_t rawOffsetGMT, <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& ID); <a name="l00124"></a>00124 <a name="l00160"></a>00160 <a class="code" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a>(int32_t rawOffsetGMT, <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& ID, <a name="l00161"></a>00161 int8_t savingsStartMonth, int8_t savingsStartDayOfWeekInMonth, <a name="l00162"></a>00162 int8_t savingsStartDayOfWeek, int32_t savingsStartTime, <a name="l00163"></a>00163 int8_t savingsEndMonth, int8_t savingsEndDayOfWeekInMonth, <a name="l00164"></a>00164 int8_t savingsEndDayOfWeek, int32_t savingsEndTime, <a name="l00165"></a>00165 <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a>& status); <a name="l00203"></a>00203 <a class="code" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a>(int32_t rawOffsetGMT, <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& ID, <a name="l00204"></a>00204 int8_t savingsStartMonth, int8_t savingsStartDayOfWeekInMonth, <a name="l00205"></a>00205 int8_t savingsStartDayOfWeek, int32_t savingsStartTime, <a name="l00206"></a>00206 int8_t savingsEndMonth, int8_t savingsEndDayOfWeekInMonth, <a name="l00207"></a>00207 int8_t savingsEndDayOfWeek, int32_t savingsEndTime, <a name="l00208"></a>00208 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...">UErrorCode</a>& status); <a name="l00209"></a>00209 <a name="l00251"></a>00251 <a class="code" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a>(int32_t rawOffsetGMT, <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& ID, <a name="l00252"></a>00252 int8_t savingsStartMonth, int8_t savingsStartDayOfWeekInMonth, <a name="l00253"></a>00253 int8_t savingsStartDayOfWeek, int32_t savingsStartTime, <a name="l00254"></a>00254 TimeMode savingsStartTimeMode, <a name="l00255"></a>00255 int8_t savingsEndMonth, int8_t savingsEndDayOfWeekInMonth, <a name="l00256"></a>00256 int8_t savingsEndDayOfWeek, int32_t savingsEndTime, TimeMode savingsEndTimeMode, <a name="l00257"></a>00257 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...">UErrorCode</a>& status); <a name="l00258"></a>00258 <a name="l00267"></a>00267 <span class="keywordtype">void</span> setStartYear(int32_t year); <a name="l00268"></a>00268 <a name="l00311"></a>00311 <span class="keywordtype">void</span> setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, <a name="l00312"></a>00312 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...">UErrorCode</a>& status); <a name="l00357"></a>00357 <span class="keywordtype">void</span> setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, <a name="l00358"></a>00358 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...">UErrorCode</a>& status); <a name="l00359"></a>00359 <a name="l00371"></a>00371 <span class="keywordtype">void</span> setStartRule(int32_t month, int32_t dayOfMonth, int32_t time, <a name="l00372"></a>00372 <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a>& status); <a name="l00386"></a>00386 <span class="keywordtype">void</span> setStartRule(int32_t month, int32_t dayOfMonth, int32_t time, <a name="l00387"></a>00387 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...">UErrorCode</a>& status); <a name="l00388"></a>00388 <a name="l00405"></a>00405 <span class="keywordtype">void</span> setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, <a name="l00406"></a>00406 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...">UErrorCode</a>& status); <a name="l00425"></a>00425 <span class="keywordtype">void</span> setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, <a name="l00426"></a>00426 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...">UErrorCode</a>& status); <a name="l00427"></a>00427 <a name="l00450"></a>00450 <span class="keywordtype">void</span> setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, <a name="l00451"></a>00451 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...">UErrorCode</a>& status); <a name="l00452"></a>00452 <a name="l00477"></a>00477 <span class="keywordtype">void</span> setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, <a name="l00478"></a>00478 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...">UErrorCode</a>& status); <a name="l00479"></a>00479 <a name="l00491"></a>00491 <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...">UErrorCode</a>& status); <a name="l00492"></a>00492 <a name="l00506"></a>00506 <span class="keywordtype">void</span> setEndRule(int32_t month, int32_t dayOfMonth, int32_t time, <a name="l00507"></a>00507 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...">UErrorCode</a>& status); <a name="l00508"></a>00508 <a name="l00525"></a>00525 <span class="keywordtype">void</span> setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, <a name="l00526"></a>00526 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...">UErrorCode</a>& status); <a name="l00527"></a>00527 <a name="l00546"></a>00546 <span class="keywordtype">void</span> setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, <a name="l00547"></a>00547 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...">UErrorCode</a>& status); <a name="l00548"></a>00548 <a name="l00569"></a>00569 <span class="keyword">virtual</span> int32_t <a class="code" href="classTimeZone.html#a017d9aeff3e3bbef824088d8fadeb800" title="Returns the TimeZone&#39;s adjusted GMT offset (i.e., the number of milliseconds...">getOffset</a>(uint8_t era, int32_t year, int32_t month, int32_t day, <a name="l00570"></a>00570 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...">UErrorCode</a>& status) <span class="keyword">const</span>; <a name="l00571"></a>00571 <a name="l00587"></a>00587 <span class="keyword">virtual</span> int32_t <a class="code" href="classTimeZone.html#a017d9aeff3e3bbef824088d8fadeb800" title="Returns the TimeZone&#39;s adjusted GMT offset (i.e., the number of milliseconds...">getOffset</a>(uint8_t era, int32_t year, int32_t month, int32_t day, <a name="l00588"></a>00588 uint8_t dayOfWeek, int32_t milliseconds, <a name="l00589"></a>00589 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...">UErrorCode</a>& status) <span class="keyword">const</span>; <a name="l00606"></a>00606 <span class="keyword">virtual</span> int32_t <a class="code" href="classTimeZone.html#a017d9aeff3e3bbef824088d8fadeb800" title="Returns the TimeZone&#39;s adjusted GMT offset (i.e., the number of milliseconds...">getOffset</a>(uint8_t era, int32_t year, int32_t month, int32_t day, <a name="l00607"></a>00607 uint8_t dayOfWeek, int32_t milliseconds, <a name="l00608"></a>00608 int32_t monthLength, int32_t prevMonthLength, <a name="l00609"></a>00609 <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a>& status) <span class="keyword">const</span>; <a name="l00610"></a>00610 <a name="l00616"></a>00616 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTimeZone.html#a017d9aeff3e3bbef824088d8fadeb800" title="Returns the TimeZone&#39;s adjusted GMT offset (i.e., the number of milliseconds...">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, <a name="l00617"></a>00617 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...">UErrorCode</a>& ec) <span class="keyword">const</span>; <a name="l00618"></a>00618 <a name="l00623"></a>00623 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classBasicTimeZone.html#a4d84c1cdcdd96ae9ac75cdb9e04002fe" 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, <a name="l00624"></a>00624 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...">UErrorCode</a>& status) <span class="comment">/*const*/</span>; <a name="l00625"></a>00625 <a name="l00633"></a>00633 <span class="keyword">virtual</span> int32_t <a class="code" href="classTimeZone.html#a8ad1d8e8ab11e48628ff5789d8d0170d" title="Returns the TimeZone&#39;s raw GMT offset (i.e., the number of milliseconds to add...">getRawOffset</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>; <a name="l00634"></a>00634 <a name="l00642"></a>00642 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTimeZone.html#aa10a9a17184453e742bab37a99efb84e" title="Sets the TimeZone&#39;s raw GMT offset (i.e., the number of milliseconds to add to...">setRawOffset</a>(int32_t offsetMillis); <a name="l00643"></a>00643 <a name="l00652"></a>00652 <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...">UErrorCode</a>& status); <a name="l00653"></a>00653 <a name="l00661"></a>00661 <span class="keyword">virtual</span> int32_t <a class="code" href="classTimeZone.html#ab6f2f5a872528bd8ab664378338deaad" title="Returns the amount of time to be added to local standard time to get local wall clock...">getDSTSavings</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>; <a name="l00662"></a>00662 <a name="l00669"></a>00669 <span class="keyword">virtual</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> <a class="code" href="classTimeZone.html#a075576d70d80a056b9b9f8ef39acafee" title="Queries if this time zone uses daylight savings time.">useDaylightTime</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>; <a name="l00670"></a>00670 <a name="l00685"></a>00685 <span class="keyword">virtual</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> <a class="code" href="classTimeZone.html#abb24bd8b13b6fdf6d123747084ecbd68" 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...">UErrorCode</a>& status) <span class="keyword">const</span>; <a name="l00686"></a>00686 <a name="l00693"></a>00693 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> <a class="code" href="classTimeZone.html#aebed1d2142308466e51029d0b895d932" 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="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a>& other) <span class="keyword">const</span>; <a name="l00694"></a>00694 <a name="l00702"></a>00702 <span class="keyword">virtual</span> <a class="code" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a>* <a class="code" href="classTimeZone.html#a35b23140b29f59560b12da3450289347" title="Clones TimeZone objects polymorphically.">clone</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>; <a name="l00703"></a>00703 <a name="l00712"></a>00712 <span class="keyword">virtual</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> <a class="code" href="classBasicTimeZone.html#a7139f3be13450d9833717644227fd2e4" 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="classTimeZoneTransition.html" title="TimeZoneTransition is a class representing a time zone transition.">TimeZoneTransition</a>& result) <span class="comment">/*const*/</span>; <a name="l00713"></a>00713 <a name="l00722"></a>00722 <span class="keyword">virtual</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> <a class="code" href="classBasicTimeZone.html#a8eb6e573592f43efdb497e20c7a34beb" 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="classTimeZoneTransition.html" title="TimeZoneTransition is a class representing a time zone transition.">TimeZoneTransition</a>& result) <span class="comment">/*const*/</span>; <a name="l00723"></a>00723 <a name="l00732"></a>00732 <span class="keyword">virtual</span> int32_t <a class="code" href="classBasicTimeZone.html#a6a24226cfc738d554a2a563021ccee28" title="Returns the number of TimeZoneRules which represents time transitions, for this time...">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...">UErrorCode</a>& status) <span class="comment">/*const*/</span>; <a name="l00733"></a>00733 <a name="l00750"></a>00750 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classBasicTimeZone.html#a4db4254a521bad3811df69ba032369fe" title="Gets the InitialTimeZoneRule and the set of TimeZoneRule which represent time transitions...">getTimeZoneRules</a>(<span class="keyword">const</span> <a class="code" href="classInitialTimeZoneRule.html" title="InitialTimeZoneRule represents a time zone rule representing a time zone effective...">InitialTimeZoneRule</a>*& initial, <a name="l00751"></a>00751 <span class="keyword">const</span> <a class="code" href="classTimeZoneRule.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...">UErrorCode</a>& status) <span class="comment">/*const*/</span>; <a name="l00752"></a>00752 <a name="l00753"></a>00753 <a name="l00754"></a>00754 <span class="keyword">public</span>: <a name="l00755"></a>00755 <a name="l00766"></a>00766 <span class="keyword">virtual</span> <a class="code" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f" title="UClassID is used to identify classes without using RTTI, since RTTI is not yet supported...">UClassID</a> <a class="code" href="classTimeZone.html#a825e1474130ebcdfedc7ffa64c016220" title="Returns a unique class ID POLYMORPHICALLY.">getDynamicClassID</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>; <a name="l00767"></a>00767 <a name="l00779"></a>00779 <span class="keyword">static</span> <a class="code" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f" title="UClassID is used to identify classes without using RTTI, since RTTI is not yet supported...">UClassID</a> <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> <a class="code" href="classTimeZone.html#a6089503a336da33a745c99ce9a03bc16" title="Return the class ID for this class.">getStaticClassID</a>(<span class="keywordtype">void</span>); <a name="l00780"></a>00780 <a name="l00781"></a>00781 <span class="keyword">private</span>: <a name="l00785"></a>00785 <span class="keyword">enum</span> EMode <a name="l00786"></a>00786 { <a name="l00787"></a>00787 DOM_MODE = 1, <a name="l00788"></a>00788 DOW_IN_MONTH_MODE, <a name="l00789"></a>00789 DOW_GE_DOM_MODE, <a name="l00790"></a>00790 DOW_LE_DOM_MODE <a name="l00791"></a>00791 }; <a name="l00792"></a>00792 <a name="l00793"></a>00793 <a class="code" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a>(); <span class="comment">// default constructor not implemented</span> <a name="l00794"></a>00794 <a name="l00814"></a>00814 <span class="keywordtype">void</span> construct(int32_t rawOffsetGMT, <a name="l00815"></a>00815 int8_t startMonth, int8_t startDay, int8_t startDayOfWeek, <a name="l00816"></a>00816 int32_t startTime, TimeMode startTimeMode, <a name="l00817"></a>00817 int8_t endMonth, int8_t endDay, int8_t endDayOfWeek, <a name="l00818"></a>00818 int32_t endTime, TimeMode endTimeMode, <a name="l00819"></a>00819 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...">UErrorCode</a>& status); <a name="l00820"></a>00820 <a name="l00830"></a>00830 <span class="keyword">static</span> int32_t compareToRule(int8_t month, int8_t monthLen, int8_t prevMonthLen, <a name="l00831"></a>00831 int8_t dayOfMonth, <a name="l00832"></a>00832 int8_t dayOfWeek, int32_t millis, int32_t millisDelta, <a name="l00833"></a>00833 EMode ruleMode, int8_t ruleMonth, int8_t ruleDayOfWeek, <a name="l00834"></a>00834 int8_t ruleDay, int32_t ruleMillis); <a name="l00835"></a>00835 <a name="l00851"></a>00851 <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...">UErrorCode</a>& status); <a name="l00852"></a>00852 <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...">UErrorCode</a>& status); <a name="l00853"></a>00853 <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...">UErrorCode</a>& status); <a name="l00854"></a>00854 <a name="l00855"></a>00855 int8_t startMonth, startDay, startDayOfWeek; <span class="comment">// the month, day, DOW, and time DST starts</span> <a name="l00856"></a>00856 int32_t startTime; <a name="l00857"></a>00857 TimeMode startTimeMode, endTimeMode; <span class="comment">// Mode for startTime, endTime; see TimeMode</span> <a name="l00858"></a>00858 int8_t endMonth, endDay, endDayOfWeek; <span class="comment">// the month, day, DOW, and time DST ends</span> <a name="l00859"></a>00859 int32_t endTime; <a name="l00860"></a>00860 int32_t startYear; <span class="comment">// the year these DST rules took effect</span> <a name="l00861"></a>00861 int32_t rawOffset; <span class="comment">// the TimeZone's raw GMT offset</span> <a name="l00862"></a>00862 <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> <a name="l00863"></a>00863 <span class="keyword">static</span> <span class="keyword">const</span> int8_t STATICMONTHLENGTH[12]; <span class="comment">// lengths of the months</span> <a name="l00864"></a>00864 EMode startMode, endMode; <span class="comment">// flags indicating what kind of rules the DST rules are</span> <a name="l00865"></a>00865 <a name="l00870"></a>00870 int32_t dstSavings; <a name="l00871"></a>00871 <a name="l00872"></a>00872 <span class="comment">/* Private for BasicTimeZone implementation */</span> <a name="l00873"></a>00873 <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...">UErrorCode</a>& status); <a name="l00874"></a>00874 <span class="keywordtype">void</span> clearTransitionRules(<span class="keywordtype">void</span>); <a name="l00875"></a>00875 <span class="keywordtype">void</span> deleteTransitionRules(<span class="keywordtype">void</span>); <a name="l00876"></a>00876 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> transitionRulesInitialized; <a name="l00877"></a>00877 <a class="code" href="classInitialTimeZoneRule.html" title="InitialTimeZoneRule represents a time zone rule representing a time zone effective...">InitialTimeZoneRule</a>* initialRule; <a name="l00878"></a>00878 <a class="code" href="classTimeZoneTransition.html" title="TimeZoneTransition is a class representing a time zone transition.">TimeZoneTransition</a>* firstTransition; <a name="l00879"></a>00879 <a class="code" href="classAnnualTimeZoneRule.html" title="AnnualTimeZoneRule is a class used for representing a time zone rule which takes...">AnnualTimeZoneRule</a>* stdRule; <a name="l00880"></a>00880 <a class="code" href="classAnnualTimeZoneRule.html" title="AnnualTimeZoneRule is a class used for representing a time zone rule which takes...">AnnualTimeZoneRule</a>* dstRule; <a name="l00881"></a>00881 }; <a name="l00882"></a>00882 <a name="l00883"></a><a class="code" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196">00883</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">SimpleTimeZone::setStartRule</a>(int32_t month, int32_t dayOfWeekInMonth, <a name="l00884"></a>00884 int32_t dayOfWeek, <a name="l00885"></a>00885 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...">UErrorCode</a>& status) { <a name="l00886"></a>00886 <a class="code" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule</a>(month, dayOfWeekInMonth, dayOfWeek, time, WALL_TIME, status); <a name="l00887"></a>00887 } <a name="l00888"></a>00888 <a name="l00889"></a><a class="code" href="classSimpleTimeZone.html#a804b78f9d989933d8f01e7da8d847a78">00889</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">SimpleTimeZone::setStartRule</a>(int32_t month, int32_t dayOfMonth, <a name="l00890"></a>00890 int32_t time, <a name="l00891"></a>00891 <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a>& status) { <a name="l00892"></a>00892 <a class="code" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule</a>(month, dayOfMonth, time, WALL_TIME, status); <a name="l00893"></a>00893 } <a name="l00894"></a>00894 <a name="l00895"></a><a class="code" href="classSimpleTimeZone.html#a660bbd9cb4ac87a081aa9a31e46e651c">00895</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">SimpleTimeZone::setStartRule</a>(int32_t month, int32_t dayOfMonth, <a name="l00896"></a>00896 int32_t dayOfWeek, <a name="l00897"></a>00897 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...">UErrorCode</a>& status) { <a name="l00898"></a>00898 <a class="code" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule</a>(month, dayOfMonth, dayOfWeek, time, WALL_TIME, after, status); <a name="l00899"></a>00899 } <a name="l00900"></a>00900 <a name="l00901"></a><a class="code" href="classSimpleTimeZone.html#ae2eee23700f7405a563cf01e3cedd797">00901</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classSimpleTimeZone.html#ae2eee23700f7405a563cf01e3cedd797" title="Sets the daylight savings ending rule.">SimpleTimeZone::setEndRule</a>(int32_t month, int32_t dayOfWeekInMonth, <a name="l00902"></a>00902 int32_t dayOfWeek, <a name="l00903"></a>00903 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...">UErrorCode</a>& status) { <a name="l00904"></a>00904 <a class="code" href="classSimpleTimeZone.html#ae2eee23700f7405a563cf01e3cedd797" title="Sets the daylight savings ending rule.">setEndRule</a>(month, dayOfWeekInMonth, dayOfWeek, time, WALL_TIME, status); <a name="l00905"></a>00905 } <a name="l00906"></a>00906 <a name="l00907"></a><a class="code" href="classSimpleTimeZone.html#a74dd5abdc15565cde82c64354b9897a2">00907</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classSimpleTimeZone.html#ae2eee23700f7405a563cf01e3cedd797" title="Sets the daylight savings ending rule.">SimpleTimeZone::setEndRule</a>(int32_t month, int32_t dayOfMonth, <a name="l00908"></a>00908 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...">UErrorCode</a>& status) { <a name="l00909"></a>00909 <a class="code" href="classSimpleTimeZone.html#ae2eee23700f7405a563cf01e3cedd797" title="Sets the daylight savings ending rule.">setEndRule</a>(month, dayOfMonth, time, WALL_TIME, status); <a name="l00910"></a>00910 } <a name="l00911"></a>00911 <a name="l00912"></a><a class="code" href="classSimpleTimeZone.html#afd814ed5b3e6dec7d9713b1f29e7652e">00912</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classSimpleTimeZone.html#ae2eee23700f7405a563cf01e3cedd797" title="Sets the daylight savings ending rule.">SimpleTimeZone::setEndRule</a>(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, <a name="l00913"></a>00913 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...">UErrorCode</a>& status) { <a name="l00914"></a>00914 <a class="code" href="classSimpleTimeZone.html#ae2eee23700f7405a563cf01e3cedd797" title="Sets the daylight savings ending rule.">setEndRule</a>(month, dayOfMonth, dayOfWeek, time, WALL_TIME, after, status); <a name="l00915"></a>00915 } <a name="l00916"></a>00916 <a name="l00917"></a>00917 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a name="l00918"></a><a class="code" href="classSimpleTimeZone.html#a7af810373fc0ec1c97fb23fb40c43c01">00918</a> <a class="code" href="classSimpleTimeZone.html#abc1b15b477116968f77a3c5ab9e85d32" title="Returns the TimeZone&#39;s adjusted GMT offset (i.e., the number of milliseconds...">SimpleTimeZone::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& rawOffsetRef, <a name="l00919"></a>00919 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...">UErrorCode</a>& ec)<span class="keyword"> const </span>{ <a name="l00920"></a>00920 <a class="code" href="classSimpleTimeZone.html#abc1b15b477116968f77a3c5ab9e85d32" title="Returns the TimeZone&#39;s adjusted GMT offset (i.e., the number of milliseconds...">TimeZone::getOffset</a>(date, local, rawOffsetRef, dstOffsetRef, ec); <a name="l00921"></a>00921 } <a name="l00922"></a>00922 <a name="l00923"></a>00923 <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> <a name="l00924"></a>00924 <a name="l00925"></a>00925 <span class="preprocessor">#endif </span><span class="comment">/* #if !UCONFIG_NO_FORMATTING */</span> <a name="l00926"></a>00926 <a name="l00927"></a>00927 <span class="preprocessor">#endif // _SIMPLETZ</span> </pre></div></div> <!--- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Defines</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2-20100208 </small></address> </body> </html>