Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > f51238514e2abe817779ad2fe01b0759 > files > 209

icu-doc-4.4-2.1mdv2010.2.i586.rpm

<!-- 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 Class Reference</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&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><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="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&nbsp;Structure&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>TimeZone Class Reference</h1><!-- doxytag: class="TimeZone" --><!-- doxytag: inherits="UObject" -->
<p><code><a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a></code> represents a time zone offset, and also figures out daylight savings.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="timezone_8h_source.html">timezone.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for TimeZone:</div>
<div class="dynsection">
 <div class="center">
  <img src="classTimeZone.gif" usemap="#TimeZone_map" alt=""/>
  <map id="TimeZone_map" name="TimeZone_map">
<area href="classUObject.html" alt="UObject" shape="rect" coords="138,56,266,80"/>
<area href="classUMemory.html" alt="UMemory" shape="rect" coords="138,0,266,24"/>
<area href="classBasicTimeZone.html" alt="BasicTimeZone" shape="rect" coords="138,168,266,192"/>
<area href="classRuleBasedTimeZone.html" alt="RuleBasedTimeZone" shape="rect" coords="0,224,128,248"/>
<area href="classSimpleTimeZone.html" alt="SimpleTimeZone" shape="rect" coords="138,224,266,248"/>
<area href="classVTimeZone.html" alt="VTimeZone" shape="rect" coords="276,224,404,248"/>
</map>
 </div>
</div>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a3389b02eacd9bdcd90943165c63f1393">EDisplayType</a> { <br/>
&nbsp;&nbsp;<a class="el" href="classTimeZone.html#a3389b02eacd9bdcd90943165c63f1393a721dd973541bdad74cd4af5d41a99993">SHORT</a> =  1, 
<a class="el" href="classTimeZone.html#a3389b02eacd9bdcd90943165c63f1393a1f63fa890c7aee89716ef1591d79c53f">LONG</a>, 
<a class="el" href="classTimeZone.html#a3389b02eacd9bdcd90943165c63f1393a7eb16b35ebf8ebf5dc0cf9173c2c2d6c">SHORT_GENERIC</a>, 
<a class="el" href="classTimeZone.html#a3389b02eacd9bdcd90943165c63f1393ad4acebec1b76a620d38a5c2e349537ef">LONG_GENERIC</a>, 
<br/>
&nbsp;&nbsp;<a class="el" href="classTimeZone.html#a3389b02eacd9bdcd90943165c63f1393af8bdb16bb0f0215dcea38090acefee18">SHORT_GMT</a>, 
<a class="el" href="classTimeZone.html#a3389b02eacd9bdcd90943165c63f1393aa01673d338581b8c60f6136b4a6714a9">LONG_GMT</a>, 
<a class="el" href="classTimeZone.html#a3389b02eacd9bdcd90943165c63f1393a559ce2228e2befd05a2dd161afe30aba">SHORT_COMMONLY_USED</a>, 
<a class="el" href="classTimeZone.html#a3389b02eacd9bdcd90943165c63f1393a95fb245e02f8a0aa1040078a831d6eb3">GENERIC_LOCATION</a>
<br/>
 }</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><p>Enum for use with getDisplayName. </p>
 <a href="classTimeZone.html#a3389b02eacd9bdcd90943165c63f1393">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a217918d77d5d3e3a0ad2d1947f21f26a">~TimeZone</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a2c75a7026d9e0f061d0561fdcd6285bc">operator==</a> (const <a class="el" href="classTimeZone.html">TimeZone</a> &amp;that) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns true if the two TimeZones are equal.  <a href="#a2c75a7026d9e0f061d0561fdcd6285bc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a21d77d23b5771d6c505df92a67f90c0b">operator!=</a> (const <a class="el" href="classTimeZone.html">TimeZone</a> &amp;that) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns true if the two TimeZones are NOT equal; that is, if <a class="el" href="classTimeZone.html#a2c75a7026d9e0f061d0561fdcd6285bc" title="Returns true if the two TimeZones are equal.">operator==()</a> returns false.  <a href="#a21d77d23b5771d6c505df92a67f90c0b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a017d9aeff3e3bbef824088d8fadeb800">getOffset</a> (uint8_t era, int32_t year, int32_t month, int32_t day, uint8_t dayOfWeek, int32_t millis, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const =0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the TimeZone's adjusted GMT offset (i.e., the number of milliseconds to add to GMT to get local time in this time zone, taking daylight savings time into account) as of a particular reference date.  <a href="#a017d9aeff3e3bbef824088d8fadeb800"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#adfa3ff0693402eca3af43519fa88d520">getOffset</a> (uint8_t era, int32_t year, int32_t month, int32_t day, uint8_t dayOfWeek, int32_t milliseconds, int32_t monthLength, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const =0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the time zone offset, for current date, modified in case of daylight savings.  <a href="#adfa3ff0693402eca3af43519fa88d520"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#af11878c114a8fe5885c28464716a8cb7">getOffset</a> (<a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> date, <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> local, int32_t &amp;rawOffset, int32_t &amp;dstOffset, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;ec) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the time zone raw and GMT offset for the given moment in time.  <a href="#af11878c114a8fe5885c28464716a8cb7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#aa10a9a17184453e742bab37a99efb84e">setRawOffset</a> (int32_t offsetMillis)=0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the TimeZone's raw GMT offset (i.e., the number of milliseconds to add to GMT to get local time, before taking daylight savings time into account).  <a href="#aa10a9a17184453e742bab37a99efb84e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a8ad1d8e8ab11e48628ff5789d8d0170d">getRawOffset</a> (void) const =0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the TimeZone's raw GMT offset (i.e., the number of milliseconds to add to GMT to get local time, before taking daylight savings time into account).  <a href="#a8ad1d8e8ab11e48628ff5789d8d0170d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a5135fc9e1727a70764103ff4d8ce690e">getID</a> (<a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;ID) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Fills in "ID" with the TimeZone's ID.  <a href="#a5135fc9e1727a70764103ff4d8ce690e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a37aa800476778b81a255506103e92136">setID</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;ID)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the TimeZone's ID to the specified value.  <a href="#a37aa800476778b81a255506103e92136"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a593b832ff5a9eb0bb1167252aac225c9">getDisplayName</a> (<a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;result) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a name of this time zone suitable for presentation to the user in the default locale.  <a href="#a593b832ff5a9eb0bb1167252aac225c9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a5bcf5bfab02c5d3d4dd14f3e98a42692">getDisplayName</a> (const <a class="el" href="classLocale.html">Locale</a> &amp;locale, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;result) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a name of this time zone suitable for presentation to the user in the specified locale.  <a href="#a5bcf5bfab02c5d3d4dd14f3e98a42692"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a858fa452768da2ec9008103dbcabbcd7">getDisplayName</a> (<a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> daylight, <a class="el" href="classTimeZone.html#a3389b02eacd9bdcd90943165c63f1393">EDisplayType</a> style, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;result) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a name of this time zone suitable for presentation to the user in the default locale.  <a href="#a858fa452768da2ec9008103dbcabbcd7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a06502872a743b89097519e86b671bef9">getDisplayName</a> (<a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> daylight, <a class="el" href="classTimeZone.html#a3389b02eacd9bdcd90943165c63f1393">EDisplayType</a> style, const <a class="el" href="classLocale.html">Locale</a> &amp;locale, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;result) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a name of this time zone suitable for presentation to the user in the specified locale.  <a href="#a06502872a743b89097519e86b671bef9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a075576d70d80a056b9b9f8ef39acafee">useDaylightTime</a> (void) const =0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Queries if this time zone uses daylight savings time.  <a href="#a075576d70d80a056b9b9f8ef39acafee"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#abb24bd8b13b6fdf6d123747084ecbd68">inDaylightTime</a> (<a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> date, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const =0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Queries if the given date is in daylight savings time in this time zone.  <a href="#abb24bd8b13b6fdf6d123747084ecbd68"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#aebed1d2142308466e51029d0b895d932">hasSameRules</a> (const <a class="el" href="classTimeZone.html">TimeZone</a> &amp;other) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns true if this zone has the same rule and offset as another zone.  <a href="#aebed1d2142308466e51029d0b895d932"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classTimeZone.html">TimeZone</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a35b23140b29f59560b12da3450289347">clone</a> (void) const =0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Clones <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> objects polymorphically.  <a href="#a35b23140b29f59560b12da3450289347"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a825e1474130ebcdfedc7ffa64c016220">getDynamicClassID</a> (void) const =0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a unique class ID POLYMORPHICALLY.  <a href="#a825e1474130ebcdfedc7ffa64c016220"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#ab6f2f5a872528bd8ab664378338deaad">getDSTSavings</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the amount of time to be added to local standard time to get local wall clock time.  <a href="#ab6f2f5a872528bd8ab664378338deaad"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classTimeZone.html">TimeZone</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a50b68aadc74671ecd4e00c6a27deff9e">getGMT</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The GMT time zone has a raw offset of zero and does not use daylight savings time.  <a href="#a50b68aadc74671ecd4e00c6a27deff9e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classTimeZone.html">TimeZone</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a11ffc5d14d3956478110909e6dca01b6">createTimeZone</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;ID)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a <code><a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a></code> for the given ID.  <a href="#a11ffc5d14d3956478110909e6dca01b6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classStringEnumeration.html">StringEnumeration</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a362ad48ebf317d439247b3bc0e40789d">createEnumeration</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns an enumeration over all recognized time zone IDs.  <a href="#a362ad48ebf317d439247b3bc0e40789d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classStringEnumeration.html">StringEnumeration</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a21e73bc11f44cc82aa006a138d0cd3c9">createEnumeration</a> (int32_t rawOffset)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns an enumeration over time zone IDs with a given raw offset from GMT.  <a href="#a21e73bc11f44cc82aa006a138d0cd3c9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classStringEnumeration.html">StringEnumeration</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a6621223637dd52ff7b0f7f890c806441">createEnumeration</a> (const char *country)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns an enumeration over time zone IDs associated with the given country.  <a href="#a6621223637dd52ff7b0f7f890c806441"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a3527d4cd0c608da0a1390f6acaae71f9">countEquivalentIDs</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;id)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the number of IDs in the equivalency group that includes the given ID.  <a href="#a3527d4cd0c608da0a1390f6acaae71f9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classUnicodeString.html">UnicodeString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#ab0b6c33dc8cddd291ba32c749a518323">getEquivalentID</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;id, int32_t index)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns an ID in the equivalency group that includes the given ID.  <a href="#ab0b6c33dc8cddd291ba32c749a518323"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classTimeZone.html">TimeZone</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#aeb13a4845ba186dc4c1151f4cd3de0a6">createDefault</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new copy of the default <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> for this host.  <a href="#aeb13a4845ba186dc4c1151f4cd3de0a6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#ab7866aca16d2dc234452e0c69fdf9f68">adoptDefault</a> (<a class="el" href="classTimeZone.html">TimeZone</a> *zone)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the default time zone (i.e., what's returned by <a class="el" href="classTimeZone.html#aeb13a4845ba186dc4c1151f4cd3de0a6" title="Creates a new copy of the default TimeZone for this host.">createDefault()</a>) to be the specified time zone.  <a href="#ab7866aca16d2dc234452e0c69fdf9f68"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a5919faba4e0fec84943ffb6f8f5b69e5">setDefault</a> (const <a class="el" href="classTimeZone.html">TimeZone</a> &amp;zone)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Same as <a class="el" href="classTimeZone.html#ab7866aca16d2dc234452e0c69fdf9f68" title="Sets the default time zone (i.e., what&#39;s returned by createDefault()) to be the...">adoptDefault()</a>, except that the <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> object passed in is NOT adopted; the caller remains responsible for deleting it.  <a href="#a5919faba4e0fec84943ffb6f8f5b69e5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a8a992860fea72202f1f7e9f04cd29f44">getTZDataVersion</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the timezone data version currently used by ICU.  <a href="#a8a992860fea72202f1f7e9f04cd29f44"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a0bf42643e7a2bd8a1c71bcf2c5b28d46">getCanonicalID</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;id, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;canonicalID, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the canonical system timezone ID or the normalized custom time zone ID for the given time zone ID.  <a href="#a0bf42643e7a2bd8a1c71bcf2c5b28d46"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a326de476b4e103325c5306fb2ad3e9b9">getCanonicalID</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;id, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;canonicalID, <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> &amp;isSystemID, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the canonical system time zone ID or the normalized custom time zone ID for the given time zone ID.  <a href="#a326de476b4e103325c5306fb2ad3e9b9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a6089503a336da33a745c99ce9a03bc16">getStaticClassID</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the class ID for this class.  <a href="#a6089503a336da33a745c99ce9a03bc16"></a><br/></td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a7d41f8d4c3314f43bd076bc443bf7854">TimeZone</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor.  <a href="#a7d41f8d4c3314f43bd076bc443bf7854"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a69223432bbff1ce0e81266042c4c8f5a">TimeZone</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;id)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct a <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> with a given ID.  <a href="#a69223432bbff1ce0e81266042c4c8f5a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a84f048b12288b9085a4703c4fda7e4bc">TimeZone</a> (const <a class="el" href="classTimeZone.html">TimeZone</a> &amp;source)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy constructor.  <a href="#a84f048b12288b9085a4703c4fda7e4bc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTimeZone.html">TimeZone</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a2b67f0f38a5462a2096ce5e3c0b6890e">operator=</a> (const <a class="el" href="classTimeZone.html">TimeZone</a> &amp;right)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default assignment operator.  <a href="#a2b67f0f38a5462a2096ce5e3c0b6890e"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ures_8h.html#a7391119e9274be9ba2e6892b48a2bbbe">UResourceBundle</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#a6ae773281580135bbda4d41ad3077ff9">loadRule</a> (const <a class="el" href="ures_8h.html#a7391119e9274be9ba2e6892b48a2bbbe">UResourceBundle</a> *top, const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;ruleid, <a class="el" href="ures_8h.html#a7391119e9274be9ba2e6892b48a2bbbe">UResourceBundle</a> *oldbundle, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Utility function.  <a href="#a6ae773281580135bbda4d41ad3077ff9"></a><br/></td></tr>
<tr><td colspan="2"><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8808011c43a2eec7a74da951efa88175"></a><!-- doxytag: member="TimeZone::ZoneMeta" ref="a8808011c43a2eec7a74da951efa88175" args="" -->
class&nbsp;</td><td class="memItemRight" valign="bottom"><b>ZoneMeta</b></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p><code><a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a></code> represents a time zone offset, and also figures out daylight savings. </p>
<p>Typically, you get a <code><a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a></code> using <code>createDefault</code> which creates a <code><a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a></code> based on the time zone where the program is running. For example, for a program running in Japan, <code>createDefault</code> creates a <code><a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a></code> object based on Japanese Standard Time.</p>
<p>You can also get a <code><a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a></code> using <code>createTimeZone</code> along with a time zone ID. For instance, the time zone ID for the US Pacific Time zone is "America/Los_Angeles". So, you can get a Pacific Time <code><a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a></code> object with:  <blockquote> <pre>
 <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> *tz = <a class="el" href="classTimeZone.html#a11ffc5d14d3956478110909e6dca01b6" title="Creates a TimeZone for the given ID.">TimeZone::createTimeZone</a>("America/Los_Angeles");
 </pre>  </blockquote> You can use <code>getAvailableIDs</code> method to iterate through all the supported time zone IDs. You can then choose a supported ID to get a <code><a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a></code>. If the time zone you want is not represented by one of the supported IDs, then you can create a custom time zone ID with the following syntax:</p>
 <blockquote> <pre>
 GMT[+|-]hh[[:]mm]
 </pre>  </blockquote><p>For example, you might specify GMT+14:00 as a custom time zone ID. The <code><a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a></code> that is returned when you specify a custom time zone ID does not include daylight savings time.</p>
<p><a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> is an abstract class representing a time zone. A <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> is needed for <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> to produce local time for a particular time zone. A <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> comprises three basic pieces of information: </p>
<ul>
<li>
A time zone offset; that, is the number of milliseconds to add or subtract from a time expressed in terms of GMT to convert it to the same time in that time zone (without taking daylight savings time into account). </li>
<li>
Logic necessary to take daylight savings time into account if daylight savings time is observed in that time zone (e.g., the days and hours on which daylight savings time begins and ends). </li>
<li>
An ID. This is a text string that uniquely identifies the time zone. </li>
</ul>
<p>(Only the ID is actually implemented in <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a>; subclasses of <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> may handle daylight savings time and GMT offset in different ways. Currently we only have one <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> subclass: <a class="el" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a>.) </p>
<p>The <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> class contains a static list containing a <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> object for every combination of GMT offset and daylight-savings time rules currently in use in the world, each with a unique ID. Each ID consists of a region (usually a continent or ocean) and a city in that region, separated by a slash, (for example, US Pacific Time is "America/Los_Angeles.") Because older versions of this class used three- or four-letter abbreviations instead, there is also a table that maps the older abbreviations to the newer ones (for example, "PST" maps to "America/Los_Angeles"). Anywhere the API requires an ID, you can use either form. </p>
<p>To create a new <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a>, you call the factory function <a class="el" href="classTimeZone.html#a11ffc5d14d3956478110909e6dca01b6" title="Creates a TimeZone for the given ID.">TimeZone::createTimeZone()</a> and pass it a time zone ID. You can use the <a class="el" href="classTimeZone.html#a362ad48ebf317d439247b3bc0e40789d" title="Returns an enumeration over all recognized time zone IDs.">createEnumeration()</a> function to obtain a list of all the time zone IDs recognized by <a class="el" href="classTimeZone.html#a11ffc5d14d3956478110909e6dca01b6" title="Creates a TimeZone for the given ID.">createTimeZone()</a>. </p>
<p>You can also use <a class="el" href="classTimeZone.html#aeb13a4845ba186dc4c1151f4cd3de0a6" title="Creates a new copy of the default TimeZone for this host.">TimeZone::createDefault()</a> to create a <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a>. This function uses platform-specific APIs to produce a <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> for the time zone corresponding to the client's computer's physical location. For example, if you're in Japan (assuming your machine is set up correctly), <a class="el" href="classTimeZone.html#aeb13a4845ba186dc4c1151f4cd3de0a6" title="Creates a new copy of the default TimeZone for this host.">TimeZone::createDefault()</a> will return a <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> for Japanese Standard Time ("Asia/Tokyo"). </p>

<p>Definition at line <a class="el" href="timezone_8h_source.html#l00122">122</a> of file <a class="el" href="timezone_8h_source.html">timezone.h</a>.</p>
<hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a3389b02eacd9bdcd90943165c63f1393"></a><!-- doxytag: member="TimeZone::EDisplayType" ref="a3389b02eacd9bdcd90943165c63f1393" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classTimeZone.html#a3389b02eacd9bdcd90943165c63f1393">TimeZone::EDisplayType</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Enum for use with getDisplayName. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003229">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a3389b02eacd9bdcd90943165c63f1393a721dd973541bdad74cd4af5d41a99993"></a><!-- doxytag: member="SHORT" ref="a3389b02eacd9bdcd90943165c63f1393a721dd973541bdad74cd4af5d41a99993" args="" -->SHORT</em>&nbsp;</td><td>
<p>Selector for short display name. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003244">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a3389b02eacd9bdcd90943165c63f1393a1f63fa890c7aee89716ef1591d79c53f"></a><!-- doxytag: member="LONG" ref="a3389b02eacd9bdcd90943165c63f1393a1f63fa890c7aee89716ef1591d79c53f" args="" -->LONG</em>&nbsp;</td><td>
<p>Selector for long display name. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003245">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a3389b02eacd9bdcd90943165c63f1393a7eb16b35ebf8ebf5dc0cf9173c2c2d6c"></a><!-- doxytag: member="SHORT_GENERIC" ref="a3389b02eacd9bdcd90943165c63f1393a7eb16b35ebf8ebf5dc0cf9173c2c2d6c" args="" -->SHORT_GENERIC</em>&nbsp;</td><td>
<p>Selector for short generic display name. </p>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000200">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a3389b02eacd9bdcd90943165c63f1393ad4acebec1b76a620d38a5c2e349537ef"></a><!-- doxytag: member="LONG_GENERIC" ref="a3389b02eacd9bdcd90943165c63f1393ad4acebec1b76a620d38a5c2e349537ef" args="" -->LONG_GENERIC</em>&nbsp;</td><td>
<p>Selector for long generic display name. </p>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000201">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a3389b02eacd9bdcd90943165c63f1393af8bdb16bb0f0215dcea38090acefee18"></a><!-- doxytag: member="SHORT_GMT" ref="a3389b02eacd9bdcd90943165c63f1393af8bdb16bb0f0215dcea38090acefee18" args="" -->SHORT_GMT</em>&nbsp;</td><td>
<p>Selector for short display name derived from time zone offset. </p>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000202">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a3389b02eacd9bdcd90943165c63f1393aa01673d338581b8c60f6136b4a6714a9"></a><!-- doxytag: member="LONG_GMT" ref="a3389b02eacd9bdcd90943165c63f1393aa01673d338581b8c60f6136b4a6714a9" args="" -->LONG_GMT</em>&nbsp;</td><td>
<p>Selector for long display name derived from time zone offset. </p>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000203">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a3389b02eacd9bdcd90943165c63f1393a559ce2228e2befd05a2dd161afe30aba"></a><!-- doxytag: member="SHORT_COMMONLY_USED" ref="a3389b02eacd9bdcd90943165c63f1393a559ce2228e2befd05a2dd161afe30aba" args="" -->SHORT_COMMONLY_USED</em>&nbsp;</td><td>
<p>Selector for short display name derived from the time zone's fallback name. </p>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000204">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a3389b02eacd9bdcd90943165c63f1393a95fb245e02f8a0aa1040078a831d6eb3"></a><!-- doxytag: member="GENERIC_LOCATION" ref="a3389b02eacd9bdcd90943165c63f1393a95fb245e02f8a0aa1040078a831d6eb3" args="" -->GENERIC_LOCATION</em>&nbsp;</td><td>
<p>Selector for long display name derived from the time zone's fallback name. </p>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000205">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl>
</td></tr>
</table>
</dd>
</dl>

<p>Definition at line <a class="el" href="timezone_8h_source.html#l00448">448</a> of file <a class="el" href="timezone_8h_source.html">timezone.h</a>.</p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a217918d77d5d3e3a0ad2d1947f21f26a"></a><!-- doxytag: member="TimeZone::~TimeZone" ref="a217918d77d5d3e3a0ad2d1947f21f26a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual TimeZone::~TimeZone </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003207">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a7d41f8d4c3314f43bd076bc443bf7854"></a><!-- doxytag: member="TimeZone::TimeZone" ref="a7d41f8d4c3314f43bd076bc443bf7854" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TimeZone::TimeZone </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Default constructor. </p>
<p>ID is initialized to the empty string. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003240">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a69223432bbff1ce0e81266042c4c8f5a"></a><!-- doxytag: member="TimeZone::TimeZone" ref="a69223432bbff1ce0e81266042c4c8f5a" args="(const UnicodeString &amp;id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TimeZone::TimeZone </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>id</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construct a <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> with a given ID. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>a system time zone ID </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003241">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a84f048b12288b9085a4703c4fda7e4bc"></a><!-- doxytag: member="TimeZone::TimeZone" ref="a84f048b12288b9085a4703c4fda7e4bc" args="(const TimeZone &amp;source)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TimeZone::TimeZone </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classTimeZone.html">TimeZone</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>source</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Copy constructor. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>source</em>&nbsp;</td><td>the object to be copied. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003242">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ab7866aca16d2dc234452e0c69fdf9f68"></a><!-- doxytag: member="TimeZone::adoptDefault" ref="ab7866aca16d2dc234452e0c69fdf9f68" args="(TimeZone *zone)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void TimeZone::adoptDefault </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classTimeZone.html">TimeZone</a> *&nbsp;</td>
          <td class="paramname"> <em>zone</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the default time zone (i.e., what's returned by <a class="el" href="classTimeZone.html#aeb13a4845ba186dc4c1151f4cd3de0a6" title="Creates a new copy of the default TimeZone for this host.">createDefault()</a>) to be the specified time zone. </p>
<p>If NULL is specified for the time zone, the default time zone is set to the default host time zone. This call adopts the <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> object passed in; the clent is no longer responsible for deleting it.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>zone</em>&nbsp;</td><td>A pointer to the new <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> object to use as the default. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003216">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a35b23140b29f59560b12da3450289347"></a><!-- doxytag: member="TimeZone::clone" ref="a35b23140b29f59560b12da3450289347" args="(void) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classTimeZone.html">TimeZone</a>* TimeZone::clone </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Clones <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> objects polymorphically. </p>
<p>Clients are responsible for deleting the <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> object cloned.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A new copy of this <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> object. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003236">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implemented in <a class="el" href="classRuleBasedTimeZone.html#a2d5e41245c6cd47f1684ff4cde8cf61f">RuleBasedTimeZone</a>, <a class="el" href="classSimpleTimeZone.html#aacbde413ecbc2c68811f1dde5143bd4c">SimpleTimeZone</a>, and <a class="el" href="classVTimeZone.html#a40e91e446951d474b8ff1725595b928b">VTimeZone</a>.</p>

</div>
</div>
<a class="anchor" id="a3527d4cd0c608da0a1390f6acaae71f9"></a><!-- doxytag: member="TimeZone::countEquivalentIDs" ref="a3527d4cd0c608da0a1390f6acaae71f9" args="(const UnicodeString &amp;id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int32_t TimeZone::countEquivalentIDs </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>id</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the number of IDs in the equivalency group that includes the given ID. </p>
<p>An equivalency group contains zones that have the same GMT offset and rules.</p>
<p>The returned count includes the given ID; it is always &gt;= 1. The given ID must be a system time zone. If it is not, returns zero. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>a system time zone ID </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the number of zones in the equivalency group containing 'id', or zero if 'id' is not a valid system ID </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classTimeZone.html#ab0b6c33dc8cddd291ba32c749a518323" title="Returns an ID in the equivalency group that includes the given ID.">getEquivalentID</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003213">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="aeb13a4845ba186dc4c1151f4cd3de0a6"></a><!-- doxytag: member="TimeZone::createDefault" ref="aeb13a4845ba186dc4c1151f4cd3de0a6" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classTimeZone.html">TimeZone</a>* TimeZone::createDefault </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a new copy of the default <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> for this host. </p>
<p>Unless the default time zone has already been set using <a class="el" href="classTimeZone.html#ab7866aca16d2dc234452e0c69fdf9f68" title="Sets the default time zone (i.e., what&#39;s returned by createDefault()) to be the...">adoptDefault()</a> or <a class="el" href="classTimeZone.html#a5919faba4e0fec84943ffb6f8f5b69e5" title="Same as adoptDefault(), except that the TimeZone object passed in is NOT adopted;...">setDefault()</a>, the default is determined by querying the system using methods in TPlatformUtilities. If the system routines fail, or if they specify a <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> or <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> offset which is not recognized, the <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> indicated by the ID kLastResortID is instantiated and made the default.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A default <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a>. Clients are responsible for deleting the time zone object returned. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003215">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a6621223637dd52ff7b0f7f890c806441"></a><!-- doxytag: member="TimeZone::createEnumeration" ref="a6621223637dd52ff7b0f7f890c806441" args="(const char *country)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classStringEnumeration.html">StringEnumeration</a>* TimeZone::createEnumeration </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>country</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns an enumeration over time zone IDs associated with the given country. </p>
<p>Some zones are affiliated with no country (e.g., "UTC"); these may also be retrieved, as a group.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>country</em>&nbsp;</td><td>The ISO 3166 two-letter country code, or NULL to retrieve zones not affiliated with any country. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>an enumeration object, owned by the caller </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003212">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div>
<a class="anchor" id="a21e73bc11f44cc82aa006a138d0cd3c9"></a><!-- doxytag: member="TimeZone::createEnumeration" ref="a21e73bc11f44cc82aa006a138d0cd3c9" args="(int32_t rawOffset)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classStringEnumeration.html">StringEnumeration</a>* TimeZone::createEnumeration </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>rawOffset</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns an enumeration over time zone IDs with a given raw offset from GMT. </p>
<p>There may be several times zones with the same GMT offset that differ in the way they handle daylight savings time. For example, the state of Arizona doesn't observe daylight savings time. If you ask for the time zone IDs corresponding to GMT-7:00, you'll get back an enumeration over two time zone IDs: "America/Denver," which corresponds to Mountain Standard Time in the winter and Mountain Daylight Time in the summer, and "America/Phoenix", which corresponds to Mountain Standard Time year-round, even in the summer.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>rawOffset</em>&nbsp;</td><td>an offset from GMT in milliseconds, ignoring the effect of daylight savings time, if any </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>an enumeration object, owned by the caller </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003211">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div>
<a class="anchor" id="a362ad48ebf317d439247b3bc0e40789d"></a><!-- doxytag: member="TimeZone::createEnumeration" ref="a362ad48ebf317d439247b3bc0e40789d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classStringEnumeration.html">StringEnumeration</a>* TimeZone::createEnumeration </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns an enumeration over all recognized time zone IDs. </p>
<p>(i.e., all strings that <a class="el" href="classTimeZone.html#a11ffc5d14d3956478110909e6dca01b6" title="Creates a TimeZone for the given ID.">createTimeZone()</a> accepts)</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>an enumeration object, owned by the caller. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003210">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div>
<a class="anchor" id="a11ffc5d14d3956478110909e6dca01b6"></a><!-- doxytag: member="TimeZone::createTimeZone" ref="a11ffc5d14d3956478110909e6dca01b6" args="(const UnicodeString &amp;ID)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classTimeZone.html">TimeZone</a>* TimeZone::createTimeZone </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>ID</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a <code><a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a></code> for the given ID. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>ID</em>&nbsp;</td><td>the ID for a <code><a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a></code>, such as "America/Los_Angeles", or a custom ID such as "GMT-8:00". </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the specified <code><a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a></code>, or the GMT zone if the given ID cannot be understood. Return result guaranteed to be non-null. If you require that the specific zone asked for be returned, check the ID of the return result. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003209">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a326de476b4e103325c5306fb2ad3e9b9"></a><!-- doxytag: member="TimeZone::getCanonicalID" ref="a326de476b4e103325c5306fb2ad3e9b9" args="(const UnicodeString &amp;id, UnicodeString &amp;canonicalID, UBool &amp;isSystemID, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; TimeZone::getCanonicalID </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>canonicalID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>isSystemID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the canonical system time zone ID or the normalized custom time zone ID for the given time zone ID. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>The input time zone ID to be canonicalized. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>canonicalID</em>&nbsp;</td><td>Receives the canonical system time zone ID or the custom time zone ID in normalized format. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>isSystemID</em>&nbsp;</td><td>Receives if the given ID is a known system time zone ID. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Recevies the status. When the given time zone ID is neither a known system time zone ID nor a valid custom time zone ID, U_ILLEGAL_ARGUMENT_ERROR is set. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A reference to the result. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003219">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a0bf42643e7a2bd8a1c71bcf2c5b28d46"></a><!-- doxytag: member="TimeZone::getCanonicalID" ref="a0bf42643e7a2bd8a1c71bcf2c5b28d46" args="(const UnicodeString &amp;id, UnicodeString &amp;canonicalID, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; TimeZone::getCanonicalID </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>canonicalID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the canonical system timezone ID or the normalized custom time zone ID for the given time zone ID. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>The input time zone ID to be canonicalized. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>canonicalID</em>&nbsp;</td><td>Receives the canonical system time zone ID or the custom time zone ID in normalized format. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Recevies the status. When the given time zone ID is neither a known system time zone ID nor a valid custom time zone ID, U_ILLEGAL_ARGUMENT_ERROR is set. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A reference to the result. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003218">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a06502872a743b89097519e86b671bef9"></a><!-- doxytag: member="TimeZone::getDisplayName" ref="a06502872a743b89097519e86b671bef9" args="(UBool daylight, EDisplayType style, const Locale &amp;locale, UnicodeString &amp;result) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; TimeZone::getDisplayName </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td>
          <td class="paramname"> <em>daylight</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classTimeZone.html#a3389b02eacd9bdcd90943165c63f1393">EDisplayType</a>&nbsp;</td>
          <td class="paramname"> <em>style</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>result</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a name of this time zone suitable for presentation to the user in the specified locale. </p>
<p>If the display name is not available for the locale, then this method returns a string in the format <code>GMT[+-]hh:mm</code>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>daylight</em>&nbsp;</td><td>if true, return the daylight savings name. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>style</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>locale</em>&nbsp;</td><td>the locale in which to supply the display name. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td>the human-readable name of this time zone in the given locale or in the default locale if the given locale is not recognized. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A refence to 'result'. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003233">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a858fa452768da2ec9008103dbcabbcd7"></a><!-- doxytag: member="TimeZone::getDisplayName" ref="a858fa452768da2ec9008103dbcabbcd7" args="(UBool daylight, EDisplayType style, UnicodeString &amp;result) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; TimeZone::getDisplayName </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td>
          <td class="paramname"> <em>daylight</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classTimeZone.html#a3389b02eacd9bdcd90943165c63f1393">EDisplayType</a>&nbsp;</td>
          <td class="paramname"> <em>style</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>result</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a name of this time zone suitable for presentation to the user in the default locale. </p>
<p>If the display name is not available for the locale, then this method returns a string in the format <code>GMT[+-]hh:mm</code>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>daylight</em>&nbsp;</td><td>if true, return the daylight savings name. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>style</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td>the human-readable name of this time zone in the default locale. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A reference to 'result'. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003232">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a5bcf5bfab02c5d3d4dd14f3e98a42692"></a><!-- doxytag: member="TimeZone::getDisplayName" ref="a5bcf5bfab02c5d3d4dd14f3e98a42692" args="(const Locale &amp;locale, UnicodeString &amp;result) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; TimeZone::getDisplayName </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>result</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a name of this time zone suitable for presentation to the user in the specified locale. </p>
<p>This method returns the long name, not including daylight savings. If the display name is not available for the locale, then this method returns a string in the format <code>GMT[+-]hh:mm</code>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>locale</em>&nbsp;</td><td>the locale in which to supply the display name. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td>the human-readable name of this time zone in the given locale or in the default locale if the given locale is not recognized. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A reference to 'result'. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003231">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a593b832ff5a9eb0bb1167252aac225c9"></a><!-- doxytag: member="TimeZone::getDisplayName" ref="a593b832ff5a9eb0bb1167252aac225c9" args="(UnicodeString &amp;result) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; TimeZone::getDisplayName </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>result</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a name of this time zone suitable for presentation to the user in the default locale. </p>
<p>This method returns the long name, not including daylight savings. If the display name is not available for the locale, then this method returns a string in the format <code>GMT[+-]hh:mm</code>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td>the human-readable name of this time zone in the default locale. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A reference to 'result'. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003230">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="ab6f2f5a872528bd8ab664378338deaad"></a><!-- doxytag: member="TimeZone::getDSTSavings" ref="ab6f2f5a872528bd8ab664378338deaad" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t TimeZone::getDSTSavings </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the amount of time to be added to local standard time to get local wall clock time. </p>
<p>The default implementation always returns 3600000 milliseconds (i.e., one hour) if this time zone observes Daylight Saving Time. Otherwise, 0 (zero) is returned. </p>
<p>If an underlying <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> implementation subclass supports historical Daylight Saving Time changes, this method returns the known latest daylight saving value.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the amount of saving time in milliseconds </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003239">Stable:</a></b></dt><dd>ICU 3.6 </dd></dl>

<p>Reimplemented in <a class="el" href="classSimpleTimeZone.html#a37c0880cf0340bbc31fd93df1d22d110">SimpleTimeZone</a>.</p>

</div>
</div>
<a class="anchor" id="a825e1474130ebcdfedc7ffa64c016220"></a><!-- doxytag: member="TimeZone::getDynamicClassID" ref="a825e1474130ebcdfedc7ffa64c016220" args="(void) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> TimeZone::getDynamicClassID </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a unique class ID POLYMORPHICALLY. </p>
<p>This method is to implement a simple version of RTTI, since not all C++ compilers support genuine RTTI. Polymorphic <a class="el" href="classTimeZone.html#a2c75a7026d9e0f061d0561fdcd6285bc" title="Returns true if the two TimeZones are equal.">operator==()</a> and <a class="el" href="classTimeZone.html#a35b23140b29f59560b12da3450289347" title="Clones TimeZone objects polymorphically.">clone()</a> methods call this method. </p>
<p>Concrete subclasses of <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> must use the UOBJECT_DEFINE_RTTI_IMPLEMENTATION macro from <a class="el" href="uobject_8h.html" title="C++ API: Common ICU base class UObject.">uobject.h</a> in their implementation to provide correct RTTI information. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The class ID for this object. All objects of a given class have the same class ID. Objects of other classes have different class IDs. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003238">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implements <a class="el" href="classUObject.html#a9b1acc95efd89cb86ec31f2dc947a262">UObject</a>.</p>

<p>Implemented in <a class="el" href="classRuleBasedTimeZone.html#a54cc31f008e25c80a0cec7f2054ad90a">RuleBasedTimeZone</a>, <a class="el" href="classSimpleTimeZone.html#ad7c3df95d43756f22fdd97ab31c199bc">SimpleTimeZone</a>, and <a class="el" href="classVTimeZone.html#afb557847cfabc8917e9c41cccab3e511">VTimeZone</a>.</p>

</div>
</div>
<a class="anchor" id="ab0b6c33dc8cddd291ba32c749a518323"></a><!-- doxytag: member="TimeZone::getEquivalentID" ref="ab0b6c33dc8cddd291ba32c749a518323" args="(const UnicodeString &amp;id, int32_t index)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static const <a class="el" href="classUnicodeString.html">UnicodeString</a> TimeZone::getEquivalentID </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>index</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns an ID in the equivalency group that includes the given ID. </p>
<p>An equivalency group contains zones that have the same GMT offset and rules.</p>
<p>The given index must be in the range 0..n-1, where n is the value returned by <code>countEquivalentIDs(id)</code>. For some value of 'index', the returned value will be equal to the given id. If the given id is not a valid system time zone, or if 'index' is out of range, then returns an empty string. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>a system time zone ID </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>index</em>&nbsp;</td><td>a value from 0 to n-1, where n is the value returned by <code>countEquivalentIDs(id)</code> </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the ID of the index-th zone in the equivalency group containing 'id', or an empty string if 'id' is not a valid system ID or 'index' is out of range </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classTimeZone.html#a3527d4cd0c608da0a1390f6acaae71f9" title="Returns the number of IDs in the equivalency group that includes the given ID.">countEquivalentIDs</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003214">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a50b68aadc74671ecd4e00c6a27deff9e"></a><!-- doxytag: member="TimeZone::getGMT" ref="a50b68aadc74671ecd4e00c6a27deff9e" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static const <a class="el" href="classTimeZone.html">TimeZone</a>* TimeZone::getGMT </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The GMT time zone has a raw offset of zero and does not use daylight savings time. </p>
<p>This is a commonly used time zone. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the GMT time zone. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003208">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a5135fc9e1727a70764103ff4d8ce690e"></a><!-- doxytag: member="TimeZone::getID" ref="a5135fc9e1727a70764103ff4d8ce690e" args="(UnicodeString &amp;ID) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp; TimeZone::getID </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>ID</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Fills in "ID" with the TimeZone's ID. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>ID</em>&nbsp;</td><td>Receives this TimeZone's ID. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A reference to 'ID' </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003227">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="timezone_8h_source.html#l00759">759</a> of file <a class="el" href="timezone_8h_source.html">timezone.h</a>.</p>

</div>
</div>
<a class="anchor" id="af11878c114a8fe5885c28464716a8cb7"></a><!-- doxytag: member="TimeZone::getOffset" ref="af11878c114a8fe5885c28464716a8cb7" args="(UDate date, UBool local, int32_t &amp;rawOffset, int32_t &amp;dstOffset, UErrorCode &amp;ec) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void TimeZone::getOffset </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&nbsp;</td>
          <td class="paramname"> <em>date</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td>
          <td class="paramname"> <em>local</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t &amp;&nbsp;</td>
          <td class="paramname"> <em>rawOffset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t &amp;&nbsp;</td>
          <td class="paramname"> <em>dstOffset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>ec</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the time zone raw and GMT offset for the given moment in time. </p>
<p>Upon return, local-millis = GMT-millis + rawOffset + dstOffset. All computations are performed in the proleptic Gregorian calendar. The default implementation in the <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> class delegates to the 8-argument <a class="el" href="classTimeZone.html#a017d9aeff3e3bbef824088d8fadeb800" title="Returns the TimeZone&#39;s adjusted GMT offset (i.e., the number of milliseconds...">getOffset()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>date</em>&nbsp;</td><td>moment in time for which to return offsets, in units of milliseconds from January 1, 1970 0:00 GMT, either GMT time or local wall time, depending on `local'. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>local</em>&nbsp;</td><td>if true, `date' is local wall time; otherwise it is in GMT time. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>rawOffset</em>&nbsp;</td><td>output parameter to receive the raw offset, that is, the offset not including DST adjustments </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dstOffset</em>&nbsp;</td><td>output parameter to receive the DST offset, that is, the offset to be added to `rawOffset' to obtain the total offset between local and GMT time. If DST is not in effect, this value is zero; otherwise it is a positive value, typically one hour. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>ec</em>&nbsp;</td><td>input-output error code</td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003224">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl>

<p>Reimplemented in <a class="el" href="classRuleBasedTimeZone.html#ac253d4311e0c7b5b3f3385a31931a779">RuleBasedTimeZone</a>, <a class="el" href="classSimpleTimeZone.html#a7af810373fc0ec1c97fb23fb40c43c01">SimpleTimeZone</a>, and <a class="el" href="classVTimeZone.html#a44a1c1dda6e7c29e01074d477b5f71ce">VTimeZone</a>.</p>

</div>
</div>
<a class="anchor" id="adfa3ff0693402eca3af43519fa88d520"></a><!-- doxytag: member="TimeZone::getOffset" ref="adfa3ff0693402eca3af43519fa88d520" args="(uint8_t era, int32_t year, int32_t month, int32_t day, uint8_t dayOfWeek, int32_t milliseconds, int32_t monthLength, UErrorCode &amp;status) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t TimeZone::getOffset </td>
          <td>(</td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>era</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>year</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>day</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>dayOfWeek</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>milliseconds</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>monthLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the time zone offset, for current date, modified in case of daylight savings. </p>
<p>This is the offset to add *to* UTC to get local time.</p>
<p>Note: Don't call this method. Instead, call the getOffset(UDate...) overload, which returns both the raw and the DST offset for a given time. This method is retained only for backward compatibility.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>era</em>&nbsp;</td><td>the era of the given date. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>year</em>&nbsp;</td><td>the year in the given date. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>month</em>&nbsp;</td><td>the month in the given date. Month is 0-based. e.g., 0 for January. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>day</em>&nbsp;</td><td>the day-in-month of the given date. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfWeek</em>&nbsp;</td><td>the day-of-week of the given date. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>milliseconds</em>&nbsp;</td><td>the millis in day in <em>standard</em> local time. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>monthLength</em>&nbsp;</td><td>the length of the given month in days. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param to filled in with a success or an error. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the offset to add *to* GMT to get local time. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003223">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implemented in <a class="el" href="classRuleBasedTimeZone.html#a4f4a47264e1784b2fcb0c3fbdf66e9df">RuleBasedTimeZone</a>, <a class="el" href="classSimpleTimeZone.html#a430dab9be720c052648f78bd388ae3a2">SimpleTimeZone</a>, and <a class="el" href="classVTimeZone.html#a6a33bbc3a3339c555e0511d92bf6b395">VTimeZone</a>.</p>

</div>
</div>
<a class="anchor" id="a017d9aeff3e3bbef824088d8fadeb800"></a><!-- doxytag: member="TimeZone::getOffset" ref="a017d9aeff3e3bbef824088d8fadeb800" args="(uint8_t era, int32_t year, int32_t month, int32_t day, uint8_t dayOfWeek, int32_t millis, UErrorCode &amp;status) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t TimeZone::getOffset </td>
          <td>(</td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>era</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>year</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>day</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>dayOfWeek</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>millis</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the TimeZone's adjusted GMT offset (i.e., the number of milliseconds to add to GMT to get local time in this time zone, taking daylight savings time into account) as of a particular reference date. </p>
<p>The reference date is used to determine whether daylight savings time is in effect and needs to be figured into the offset that is returned (in other words, what is the adjusted GMT offset in this time zone at this particular date and time?). For the time zones produced by <a class="el" href="classTimeZone.html#a11ffc5d14d3956478110909e6dca01b6" title="Creates a TimeZone for the given ID.">createTimeZone()</a>, the reference data is specified according to the Gregorian calendar, and the date and time fields are local standard time.</p>
<p>Note: Don't call this method. Instead, call the getOffset(UDate...) overload, which returns both the raw and the DST offset for a given time. This method is retained only for backward compatibility.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>era</em>&nbsp;</td><td>The reference date's era </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>year</em>&nbsp;</td><td>The reference date's year </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>month</em>&nbsp;</td><td>The reference date's month (0-based; 0 is January) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>day</em>&nbsp;</td><td>The reference date's day-in-month (1-based) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfWeek</em>&nbsp;</td><td>The reference date's day-of-week (1-based; 1 is Sunday) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>millis</em>&nbsp;</td><td>The reference date's milliseconds in day, local standard time </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param to filled in with a success or an error. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The offset in milliseconds to add to GMT to get local time. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003222">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implemented in <a class="el" href="classRuleBasedTimeZone.html#a0ed296264ab90c8ddf196b9fd425bf97">RuleBasedTimeZone</a>, <a class="el" href="classSimpleTimeZone.html#abc1b15b477116968f77a3c5ab9e85d32">SimpleTimeZone</a>, and <a class="el" href="classVTimeZone.html#abd71e43990bc424c546fb6b5534cf82f">VTimeZone</a>.</p>

</div>
</div>
<a class="anchor" id="a8ad1d8e8ab11e48628ff5789d8d0170d"></a><!-- doxytag: member="TimeZone::getRawOffset" ref="a8ad1d8e8ab11e48628ff5789d8d0170d" args="(void) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t TimeZone::getRawOffset </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the TimeZone's raw GMT offset (i.e., the number of milliseconds to add to GMT to get local time, before taking daylight savings time into account). </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The TimeZone's raw GMT offset. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003226">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implemented in <a class="el" href="classRuleBasedTimeZone.html#a95ebe551c49b1313f6e19fe3034752e0">RuleBasedTimeZone</a>, <a class="el" href="classSimpleTimeZone.html#a27821d78781b1c71493457f4adaaec92">SimpleTimeZone</a>, and <a class="el" href="classVTimeZone.html#ac437b6ff22a913b438eb7e5524ac85d2">VTimeZone</a>.</p>

</div>
</div>
<a class="anchor" id="a6089503a336da33a745c99ce9a03bc16"></a><!-- doxytag: member="TimeZone::getStaticClassID" ref="a6089503a336da33a745c99ce9a03bc16" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> TimeZone::getStaticClassID </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the class ID for this class. </p>
<p>This is useful only for comparing to a return value from <a class="el" href="classTimeZone.html#a825e1474130ebcdfedc7ffa64c016220" title="Returns a unique class ID POLYMORPHICALLY.">getDynamicClassID()</a>. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The class ID for all objects of this class. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003237">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented in <a class="el" href="classRuleBasedTimeZone.html#a972ca69154613673bf7edb8afa322e1b">RuleBasedTimeZone</a>, <a class="el" href="classSimpleTimeZone.html#a39d0abe21be338f073121a9147913150">SimpleTimeZone</a>, and <a class="el" href="classVTimeZone.html#af96d49fd836571d738ea1e401aa1be51">VTimeZone</a>.</p>

</div>
</div>
<a class="anchor" id="a8a992860fea72202f1f7e9f04cd29f44"></a><!-- doxytag: member="TimeZone::getTZDataVersion" ref="a8a992860fea72202f1f7e9f04cd29f44" args="(UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static const char* TimeZone::getTZDataVersion </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the timezone data version currently used by ICU. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param to filled in with a success or an error. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the version string, such as "2007f" </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003217">Stable:</a></b></dt><dd>ICU 3.8 </dd></dl>

</div>
</div>
<a class="anchor" id="aebed1d2142308466e51029d0b895d932"></a><!-- doxytag: member="TimeZone::hasSameRules" ref="aebed1d2142308466e51029d0b895d932" args="(const TimeZone &amp;other) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> TimeZone::hasSameRules </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classTimeZone.html">TimeZone</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>other</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns true if this zone has the same rule and offset as another zone. </p>
<p>That is, if this zone differs only in ID, if at all. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>other</em>&nbsp;</td><td>the <code><a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a></code> object to be compared with </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the given zone is the same as this one, with the possible exception of the ID </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003235">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="abb24bd8b13b6fdf6d123747084ecbd68"></a><!-- doxytag: member="TimeZone::inDaylightTime" ref="abb24bd8b13b6fdf6d123747084ecbd68" args="(UDate date, UErrorCode &amp;status) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> TimeZone::inDaylightTime </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&nbsp;</td>
          <td class="paramname"> <em>date</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Queries if the given date is in daylight savings time in this time zone. </p>
<p>This method is wasteful since it creates a new <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> and deletes it each time it is called. This is a deprecated method and provided only for Java compatibility.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>date</em>&nbsp;</td><td>the given UDate. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param filled in with success/error code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the given date is in daylight savings time, false, otherwise. </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000227">Deprecated:</a></b></dt><dd>ICU 2.4. Use <a class="el" href="classCalendar.html#a8199d459b6d2171fb62620fab29b8668" title="Queries if the current date for this Calendar is in Daylight Savings Time.">Calendar::inDaylightTime()</a> instead. </dd></dl>

<p>Implemented in <a class="el" href="classRuleBasedTimeZone.html#a7e146d3447fc673030816a48363c9dfd">RuleBasedTimeZone</a>, <a class="el" href="classSimpleTimeZone.html#a48b29a950e87fdf8a83aef5c684b3dfb">SimpleTimeZone</a>, and <a class="el" href="classVTimeZone.html#a90281516dfe7f0109aac039b84297fcf">VTimeZone</a>.</p>

</div>
</div>
<a class="anchor" id="a6ae773281580135bbda4d41ad3077ff9"></a><!-- doxytag: member="TimeZone::loadRule" ref="a6ae773281580135bbda4d41ad3077ff9" args="(const UResourceBundle *top, const UnicodeString &amp;ruleid, UResourceBundle *oldbundle, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="ures_8h.html#a7391119e9274be9ba2e6892b48a2bbbe">UResourceBundle</a>* TimeZone::loadRule </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="ures_8h.html#a7391119e9274be9ba2e6892b48a2bbbe">UResourceBundle</a> *&nbsp;</td>
          <td class="paramname"> <em>top</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>ruleid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ures_8h.html#a7391119e9274be9ba2e6892b48a2bbbe">UResourceBundle</a> *&nbsp;</td>
          <td class="paramname"> <em>oldbundle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Utility function. </p>
<p>For internally loading rule data. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>top</em>&nbsp;</td><td>Top resource bundle for tz data </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>ruleid</em>&nbsp;</td><td>ID of rule to load </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>oldbundle</em>&nbsp;</td><td>Old bundle to reuse or NULL </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Status parameter </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>either a new bundle or *oldbundle </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000361">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

</div>
</div>
<a class="anchor" id="a21d77d23b5771d6c505df92a67f90c0b"></a><!-- doxytag: member="TimeZone::operator!=" ref="a21d77d23b5771d6c505df92a67f90c0b" args="(const TimeZone &amp;that) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> TimeZone::operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classTimeZone.html">TimeZone</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>that</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns true if the two TimeZones are NOT equal; that is, if <a class="el" href="classTimeZone.html#a2c75a7026d9e0f061d0561fdcd6285bc" title="Returns true if the two TimeZones are equal.">operator==()</a> returns false. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>that</em>&nbsp;</td><td>The <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> object to be compared with. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if the given <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> is not equal to this <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a>; false otherwise. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003221">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="timezone_8h_source.html#l00323">323</a> of file <a class="el" href="timezone_8h_source.html">timezone.h</a>.</p>

<p>References <a class="el" href="stringpiece_8h.html#a7652049cbac0bfeae2cd2aa4514a3352">operator==()</a>.</p>

</div>
</div>
<a class="anchor" id="a2b67f0f38a5462a2096ce5e3c0b6890e"></a><!-- doxytag: member="TimeZone::operator=" ref="a2b67f0f38a5462a2096ce5e3c0b6890e" args="(const TimeZone &amp;right)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classTimeZone.html">TimeZone</a>&amp; TimeZone::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classTimeZone.html">TimeZone</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>right</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Default assignment operator. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>right</em>&nbsp;</td><td>the object to be copied. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003243">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented in <a class="el" href="classRuleBasedTimeZone.html#a264d50d1319a7f34b267d88be184904c">RuleBasedTimeZone</a>, <a class="el" href="classSimpleTimeZone.html#a228a199e8ed3155158946aa959374ebf">SimpleTimeZone</a>, and <a class="el" href="classVTimeZone.html#af33d211996542c4b2c75739782eeb1d3">VTimeZone</a>.</p>

</div>
</div>
<a class="anchor" id="a2c75a7026d9e0f061d0561fdcd6285bc"></a><!-- doxytag: member="TimeZone::operator==" ref="a2c75a7026d9e0f061d0561fdcd6285bc" args="(const TimeZone &amp;that) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> TimeZone::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classTimeZone.html">TimeZone</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>that</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns true if the two TimeZones are equal. </p>
<p>(The <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> version only compares IDs, but subclasses are expected to also compare the fields they add.)</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>that</em>&nbsp;</td><td>The <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> object to be compared with. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if the given <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> is equal to this <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a>; false otherwise. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003220">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a5919faba4e0fec84943ffb6f8f5b69e5"></a><!-- doxytag: member="TimeZone::setDefault" ref="a5919faba4e0fec84943ffb6f8f5b69e5" args="(const TimeZone &amp;zone)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void TimeZone::setDefault </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classTimeZone.html">TimeZone</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>zone</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Same as <a class="el" href="classTimeZone.html#ab7866aca16d2dc234452e0c69fdf9f68" title="Sets the default time zone (i.e., what&#39;s returned by createDefault()) to be the...">adoptDefault()</a>, except that the <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> object passed in is NOT adopted; the caller remains responsible for deleting it. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>zone</em>&nbsp;</td><td>The given timezone. </td></tr>
  </table>
  </dd>
</dl>
<dl class="system"><dt><b><a class="el" href="system.html#_system000017">System:</a></b></dt><dd>Do not use unless you know what you are doing. </dd></dl>

</div>
</div>
<a class="anchor" id="a37aa800476778b81a255506103e92136"></a><!-- doxytag: member="TimeZone::setID" ref="a37aa800476778b81a255506103e92136" args="(const UnicodeString &amp;ID)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TimeZone::setID </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>ID</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the TimeZone's ID to the specified value. </p>
<p>This doesn't affect any other fields (for example, if you say&lt; blockquote&gt;</p>
<pre>
 .     TimeZone* foo = <a class="el" href="classTimeZone.html#a11ffc5d14d3956478110909e6dca01b6" title="Creates a TimeZone for the given ID.">TimeZone::createTimeZone</a>("America/New_York");
 .     foo.setID("America/Los_Angeles");
 </pre> </blockquote> the time zone's GMT offset and daylight-savings rules don't change to those for Los Angeles. They're still those for New York. Only the ID has changed.)</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>ID</em>&nbsp;</td><td>The new time zone ID. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003228">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="timezone_8h_source.html#l00768">768</a> of file <a class="el" href="timezone_8h_source.html">timezone.h</a>.</p>

</div>
</div>
<a class="anchor" id="aa10a9a17184453e742bab37a99efb84e"></a><!-- doxytag: member="TimeZone::setRawOffset" ref="aa10a9a17184453e742bab37a99efb84e" args="(int32_t offsetMillis)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void TimeZone::setRawOffset </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>offsetMillis</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the TimeZone's raw GMT offset (i.e., the number of milliseconds to add to GMT to get local time, before taking daylight savings time into account). </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>offsetMillis</em>&nbsp;</td><td>The new raw GMT offset for this time zone. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003225">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implemented in <a class="el" href="classRuleBasedTimeZone.html#abab26ceb7c02d663679dba18c69943bc">RuleBasedTimeZone</a>, <a class="el" href="classSimpleTimeZone.html#a6d5b9fb28dda0d197d7e23499a446be7">SimpleTimeZone</a>, and <a class="el" href="classVTimeZone.html#afa8130b51030a7e26544f19f75800efe">VTimeZone</a>.</p>

</div>
</div>
<a class="anchor" id="a075576d70d80a056b9b9f8ef39acafee"></a><!-- doxytag: member="TimeZone::useDaylightTime" ref="a075576d70d80a056b9b9f8ef39acafee" args="(void) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> TimeZone::useDaylightTime </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Queries if this time zone uses daylight savings time. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if this time zone uses daylight savings time, false, otherwise. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003234">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implemented in <a class="el" href="classRuleBasedTimeZone.html#a9503f9a5f90dda51c1b565bd34c86aae">RuleBasedTimeZone</a>, <a class="el" href="classSimpleTimeZone.html#aef1be3731d1312a61aac0889307bfd62">SimpleTimeZone</a>, and <a class="el" href="classVTimeZone.html#a126204d8b7d2896e96af0a222a30ced6">VTimeZone</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="timezone_8h_source.html">timezone.h</a></li>
</ul>
</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">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&nbsp;</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&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>