<!-- 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: timezone.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.1 --> <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>timezone.h</h1><a href="timezone_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">* Copyright (c) 1997-2010, International Business Machines Corporation</span> <a name="l00003"></a>00003 <span class="comment">* and others. All Rights Reserved.</span> <a name="l00004"></a>00004 <span class="comment">**************************************************************************</span> <a name="l00005"></a>00005 <span class="comment">*</span> <a name="l00006"></a>00006 <span class="comment">* File TIMEZONE.H</span> <a name="l00007"></a>00007 <span class="comment">*</span> <a name="l00008"></a>00008 <span class="comment">* Modification History:</span> <a name="l00009"></a>00009 <span class="comment">*</span> <a name="l00010"></a>00010 <span class="comment">* Date Name Description</span> <a name="l00011"></a>00011 <span class="comment">* 04/21/97 aliu Overhauled header.</span> <a name="l00012"></a>00012 <span class="comment">* 07/09/97 helena Changed createInstance to createDefault.</span> <a name="l00013"></a>00013 <span class="comment">* 08/06/97 aliu Removed dependency on internal header for Hashtable.</span> <a name="l00014"></a>00014 <span class="comment">* 08/10/98 stephen Changed getDisplayName() API conventions to match</span> <a name="l00015"></a>00015 <span class="comment">* 08/19/98 stephen Changed createTimeZone() to never return 0</span> <a name="l00016"></a>00016 <span class="comment">* 09/02/98 stephen Sync to JDK 1.2 8/31</span> <a name="l00017"></a>00017 <span class="comment">* - Added getOffset(... monthlen ...)</span> <a name="l00018"></a>00018 <span class="comment">* - Added hasSameRules()</span> <a name="l00019"></a>00019 <span class="comment">* 09/15/98 stephen Added getStaticClassID</span> <a name="l00020"></a>00020 <span class="comment">* 12/03/99 aliu Moved data out of static table into icudata.dll.</span> <a name="l00021"></a>00021 <span class="comment">* Hashtable replaced by new static data structures.</span> <a name="l00022"></a>00022 <span class="comment">* 12/14/99 aliu Made GMT public.</span> <a name="l00023"></a>00023 <span class="comment">* 08/15/01 grhoten Made GMT private and added the getGMT() function</span> <a name="l00024"></a>00024 <span class="comment">**************************************************************************</span> <a name="l00025"></a>00025 <span class="comment">*/</span> <a name="l00026"></a>00026 <a name="l00027"></a>00027 <span class="preprocessor">#ifndef TIMEZONE_H</span> <a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor">#define TIMEZONE_H</span> <a name="l00029"></a>00029 <span class="preprocessor"></span> <a name="l00030"></a>00030 <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="l00031"></a>00031 <a name="l00037"></a>00037 <span class="preprocessor">#if !UCONFIG_NO_FORMATTING</span> <a name="l00038"></a>00038 <span class="preprocessor"></span> <a name="l00039"></a>00039 <span class="preprocessor">#include "<a class="code" href="uobject_8h.html" title="C++ API: Common ICU base class UObject.">unicode/uobject.h</a>"</span> <a name="l00040"></a>00040 <span class="preprocessor">#include "<a class="code" href="unistr_8h.html" title="C++ API: Unicode String.">unicode/unistr.h</a>"</span> <a name="l00041"></a>00041 <span class="preprocessor">#include "<a class="code" href="ures_8h.html" title="C API: Resource Bundle.">unicode/ures.h</a>"</span> <a name="l00042"></a>00042 <a name="l00043"></a>00043 <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="l00044"></a>00044 <a name="l00045"></a>00045 <span class="keyword">class </span><a class="code" href="classStringEnumeration.html" title="Base class for &#39;pure&#39; C++ implementations of uenum api.">StringEnumeration</a>; <a name="l00046"></a>00046 <a name="l00122"></a><a class="code" href="classTimeZone.html">00122</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="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> : <span class="keyword">public</span> <a class="code" href="classUObject.html" title="UObject is the common ICU &quot;boilerplate&quot; class.">UObject</a> { <a name="l00123"></a>00123 <span class="keyword">public</span>: <a name="l00127"></a>00127 <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 name="l00128"></a>00128 <a name="l00135"></a>00135 <span class="keyword">static</span> <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>* <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> getGMT(<span class="keywordtype">void</span>); <a name="l00136"></a>00136 <a name="l00147"></a>00147 <span class="keyword">static</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="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> createTimeZone(<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="l00148"></a>00148 <a name="l00156"></a>00156 <span class="keyword">static</span> <a class="code" href="classStringEnumeration.html" title="Base class for &#39;pure&#39; C++ implementations of uenum api.">StringEnumeration</a>* <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> createEnumeration(); <a name="l00157"></a>00157 <a name="l00175"></a>00175 <span class="keyword">static</span> <a class="code" href="classStringEnumeration.html" title="Base class for &#39;pure&#39; C++ implementations of uenum api.">StringEnumeration</a>* <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> createEnumeration(int32_t rawOffset); <a name="l00176"></a>00176 <a name="l00187"></a>00187 <span class="keyword">static</span> <a class="code" href="classStringEnumeration.html" title="Base class for &#39;pure&#39; C++ implementations of uenum api.">StringEnumeration</a>* <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> createEnumeration(<span class="keyword">const</span> <span class="keywordtype">char</span>* country); <a name="l00188"></a>00188 <a name="l00203"></a>00203 <span class="keyword">static</span> int32_t <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> countEquivalentIDs(<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>& <span class="keywordtype">id</span>); <a name="l00204"></a>00204 <a name="l00224"></a>00224 <span class="keyword">static</span> <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> <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> getEquivalentID(<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>& <span class="keywordtype">id</span>, <a name="l00225"></a>00225 int32_t index); <a name="l00226"></a>00226 <a name="l00239"></a>00239 <span class="keyword">static</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="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> createDefault(<span class="keywordtype">void</span>); <a name="l00240"></a>00240 <a name="l00250"></a>00250 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> adoptDefault(<a class="code" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a>* zone); <a name="l00251"></a>00251 <a name="l00259"></a>00259 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> setDefault(<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>& zone); <a name="l00260"></a>00260 <a name="l00267"></a>00267 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> getTZDataVersion(<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="l00268"></a>00268 <a name="l00282"></a>00282 <span class="keyword">static</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> getCanonicalID(<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>& <span class="keywordtype">id</span>, <a name="l00283"></a>00283 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& canonicalID, <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="l00284"></a>00284 <a name="l00300"></a>00300 <span class="keyword">static</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> getCanonicalID(<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>& <span class="keywordtype">id</span>, <a name="l00301"></a>00301 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& canonicalID, <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a>& isSystemID, <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="l00302"></a>00302 <a name="l00312"></a>00312 <span class="keyword">virtual</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> <a class="code" href="stringpiece_8h.html#a7652049cbac0bfeae2cd2aa4514a3352" title="Global operator == for StringPiece.">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="l00313"></a>00313 <a name="l00323"></a><a class="code" href="classTimeZone.html#a21d77d23b5771d6c505df92a67f90c0b">00323</a> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> <a class="code" href="classTimeZone.html#a21d77d23b5771d6c505df92a67f90c0b" title="Returns true if the two TimeZones are NOT equal; that is, if operator==() returns...">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>{<span class="keywordflow">return</span> !<a class="code" href="stringpiece_8h.html#a7652049cbac0bfeae2cd2aa4514a3352" title="Global operator == for StringPiece.">operator==</a>(that);} <a name="l00324"></a>00324 <a name="l00349"></a>00349 <span class="keyword">virtual</span> int32_t getOffset(uint8_t era, int32_t year, int32_t month, int32_t day, <a name="l00350"></a>00350 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> = 0; <a name="l00351"></a>00351 <a name="l00372"></a>00372 <span class="keyword">virtual</span> int32_t getOffset(uint8_t era, int32_t year, int32_t month, int32_t day, <a name="l00373"></a>00373 uint8_t dayOfWeek, int32_t milliseconds, <a name="l00374"></a>00374 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> = 0; <a name="l00375"></a>00375 <a name="l00399"></a>00399 <span class="keyword">virtual</span> <span class="keywordtype">void</span> 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& rawOffset, <a name="l00400"></a>00400 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="l00401"></a>00401 <a name="l00409"></a>00409 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setRawOffset(int32_t offsetMillis) = 0; <a name="l00410"></a>00410 <a name="l00418"></a>00418 <span class="keyword">virtual</span> int32_t getRawOffset(<span class="keywordtype">void</span>) <span class="keyword">const</span> = 0; <a name="l00419"></a>00419 <a name="l00427"></a>00427 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& getID(<a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& ID) <span class="keyword">const</span>; <a name="l00428"></a>00428 <a name="l00442"></a>00442 <span class="keywordtype">void</span> setID(<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="l00443"></a>00443 <a name="l00448"></a><a class="code" href="classTimeZone.html#a3389b02eacd9bdcd90943165c63f1393">00448</a> <span class="keyword">enum</span> <a class="code" href="classTimeZone.html#a3389b02eacd9bdcd90943165c63f1393" title="Enum for use with getDisplayName.">EDisplayType</a> { <a name="l00453"></a><a class="code" href="classTimeZone.html#a3389b02eacd9bdcd90943165c63f1393a721dd973541bdad74cd4af5d41a99993">00453</a> SHORT = 1, <a name="l00458"></a><a class="code" href="classTimeZone.html#a3389b02eacd9bdcd90943165c63f1393a1f63fa890c7aee89716ef1591d79c53f">00458</a> LONG, <a name="l00463"></a><a class="code" href="classTimeZone.html#a3389b02eacd9bdcd90943165c63f1393a7eb16b35ebf8ebf5dc0cf9173c2c2d6c">00463</a> SHORT_GENERIC, <a name="l00468"></a><a class="code" href="classTimeZone.html#a3389b02eacd9bdcd90943165c63f1393ad4acebec1b76a620d38a5c2e349537ef">00468</a> LONG_GENERIC, <a name="l00474"></a><a class="code" href="classTimeZone.html#a3389b02eacd9bdcd90943165c63f1393af8bdb16bb0f0215dcea38090acefee18">00474</a> SHORT_GMT, <a name="l00480"></a><a class="code" href="classTimeZone.html#a3389b02eacd9bdcd90943165c63f1393aa01673d338581b8c60f6136b4a6714a9">00480</a> LONG_GMT, <a name="l00486"></a><a class="code" href="classTimeZone.html#a3389b02eacd9bdcd90943165c63f1393a559ce2228e2befd05a2dd161afe30aba">00486</a> SHORT_COMMONLY_USED, <a name="l00492"></a><a class="code" href="classTimeZone.html#a3389b02eacd9bdcd90943165c63f1393a95fb245e02f8a0aa1040078a831d6eb3">00492</a> GENERIC_LOCATION <a name="l00493"></a>00493 }; <a name="l00494"></a>00494 <a name="l00506"></a>00506 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& getDisplayName(<a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& result) <span class="keyword">const</span>; <a name="l00507"></a>00507 <a name="l00521"></a>00521 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& getDisplayName(<span class="keyword">const</span> <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a>& locale, <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& result) <span class="keyword">const</span>; <a name="l00522"></a>00522 <a name="l00535"></a>00535 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& getDisplayName(<a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> daylight, EDisplayType style, <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& result) <span class="keyword">const</span>; <a name="l00536"></a>00536 <a name="l00551"></a>00551 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& getDisplayName(<a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> daylight, EDisplayType style, <span class="keyword">const</span> <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a>& locale, <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& result) <span class="keyword">const</span>; <a name="l00552"></a>00552 <a name="l00559"></a>00559 <span class="keyword">virtual</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> useDaylightTime(<span class="keywordtype">void</span>) <span class="keyword">const</span> = 0; <a name="l00560"></a>00560 <a name="l00574"></a>00574 <span class="keyword">virtual</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> inDaylightTime(<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> = 0; <a name="l00575"></a>00575 <a name="l00584"></a>00584 <span class="keyword">virtual</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> hasSameRules(<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="l00585"></a>00585 <a name="l00593"></a>00593 <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>* clone(<span class="keywordtype">void</span>) <span class="keyword">const</span> = 0; <a name="l00594"></a>00594 <a name="l00601"></a>00601 <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> getStaticClassID(<span class="keywordtype">void</span>); <a name="l00602"></a>00602 <a name="l00614"></a>00614 <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="classUObject.html#a9b1acc95efd89cb86ec31f2dc947a262" title="ICU4C &quot;poor man&#39;s RTTI&quot;, returns a UClassID for the actual ICU class...">getDynamicClassID</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span> = 0; <a name="l00615"></a>00615 <a name="l00631"></a>00631 <span class="keyword">virtual</span> int32_t getDSTSavings() <span class="keyword">const</span>; <a name="l00632"></a>00632 <a name="l00633"></a>00633 <span class="keyword">protected</span>: <a name="l00634"></a>00634 <a name="l00639"></a>00639 <a class="code" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a>(); <a name="l00640"></a>00640 <a name="l00646"></a>00646 <a class="code" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a>(<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> &<span class="keywordtype">id</span>); <a name="l00647"></a>00647 <a name="l00653"></a>00653 <a class="code" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</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>& source); <a name="l00654"></a>00654 <a name="l00660"></a>00660 <a class="code" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a>& operator=(<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>& right); <a name="l00661"></a>00661 <a name="l00671"></a>00671 <span class="keyword">static</span> <a class="code" href="ures_8h.html#a7391119e9274be9ba2e6892b48a2bbbe">UResourceBundle</a>* loadRule(<span class="keyword">const</span> <a class="code" href="ures_8h.html#a7391119e9274be9ba2e6892b48a2bbbe">UResourceBundle</a>* top, <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>& ruleid, <a class="code" href="ures_8h.html#a7391119e9274be9ba2e6892b48a2bbbe">UResourceBundle</a>* oldbundle, <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="l00672"></a>00672 <a name="l00673"></a>00673 <span class="keyword">private</span>: <a name="l00674"></a>00674 <span class="keyword">friend</span> <span class="keyword">class </span>ZoneMeta; <a name="l00675"></a>00675 <a name="l00676"></a>00676 <a name="l00677"></a>00677 <span class="keyword">static</span> <a class="code" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a>* createCustomTimeZone(<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>&); <span class="comment">// Creates a time zone based on the string.</span> <a name="l00678"></a>00678 <a name="l00687"></a>00687 <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned...">UChar</a>* dereferOlsonLink(<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>& <span class="keywordtype">id</span>); <a name="l00688"></a>00688 <a name="l00694"></a>00694 <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned...">UChar</a>* getRegion(<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>& <span class="keywordtype">id</span>); <a name="l00695"></a>00695 <a name="l00706"></a>00706 <span class="keyword">static</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> parseCustomID(<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>& <span class="keywordtype">id</span>, int32_t& sign, int32_t& hour, <a name="l00707"></a>00707 int32_t& min, int32_t& sec); <a name="l00708"></a>00708 <a name="l00719"></a>00719 <span class="keyword">static</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& getCustomID(<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>& <span class="keywordtype">id</span>, <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& normalized, <a name="l00720"></a>00720 <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="l00721"></a>00721 <a name="l00731"></a>00731 <span class="keyword">static</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& formatCustomID(int32_t hour, int32_t min, int32_t sec, <a name="l00732"></a>00732 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> negative, <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& <span class="keywordtype">id</span>); <a name="l00733"></a>00733 <a name="l00739"></a>00739 <span class="keyword">static</span> <span class="keywordtype">void</span> initDefault(<span class="keywordtype">void</span>); <a name="l00740"></a>00740 <a name="l00741"></a>00741 <span class="comment">// See source file for documentation</span> <a name="l00749"></a>00749 <span class="comment"></span> <span class="keyword">static</span> <a class="code" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a>* createSystemTimeZone(<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>& name); <a name="l00750"></a>00750 <a name="l00751"></a>00751 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> fID; <span class="comment">// this time zone's ID</span> <a name="l00752"></a>00752 <a name="l00753"></a>00753 }; <a name="l00754"></a>00754 <a name="l00755"></a>00755 <a name="l00756"></a>00756 <span class="comment">// -------------------------------------</span> <a name="l00757"></a>00757 <a name="l00758"></a>00758 <span class="keyword">inline</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& <a name="l00759"></a><a class="code" href="classTimeZone.html#a5135fc9e1727a70764103ff4d8ce690e">00759</a> <a class="code" href="classTimeZone.html#a5135fc9e1727a70764103ff4d8ce690e" title="Fills in &quot;ID&quot; with the TimeZone&#39;s ID.">TimeZone::getID</a>(<a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& ID)<span class="keyword"> const</span> <a name="l00760"></a>00760 <span class="keyword"></span>{ <a name="l00761"></a>00761 ID = fID; <a name="l00762"></a>00762 <span class="keywordflow">return</span> ID; <a name="l00763"></a>00763 } <a name="l00764"></a>00764 <a name="l00765"></a>00765 <span class="comment">// -------------------------------------</span> <a name="l00766"></a>00766 <a name="l00767"></a>00767 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a name="l00768"></a><a class="code" href="classTimeZone.html#a37aa800476778b81a255506103e92136">00768</a> <a class="code" href="classTimeZone.html#a37aa800476778b81a255506103e92136" title="Sets the TimeZone&#39;s ID to the specified value.">TimeZone::setID</a>(<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="l00769"></a>00769 { <a name="l00770"></a>00770 fID = ID; <a name="l00771"></a>00771 } <a name="l00772"></a>00772 <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="l00773"></a>00773 <a name="l00774"></a>00774 <span class="preprocessor">#endif </span><span class="comment">/* #if !UCONFIG_NO_FORMATTING */</span> <a name="l00775"></a>00775 <a name="l00776"></a>00776 <span class="preprocessor">#endif //_TIMEZONE</span> <a name="l00777"></a>00777 <span class="preprocessor"></span><span class="comment">//eof</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 size="1"/><address style="text-align: right;"><small>Generated on 16 Mar 2010 for ICU 4.4 by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> </body> </html>