Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > 34ae14235711d1471f043ac894a061f9 > files > 138

libicu-doc-3.6-5.16.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>ICU 3.6: TimeZone Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li id="current"><a href="classes.html"><span>Data&nbsp;Structures</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
    <li>
      <form action="search.php" method="get">
        <table cellspacing="0" cellpadding="0" border="0">
          <tr>
            <td><label>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</label></td>
            <td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
          </tr>
        </table>
      </form>
    </li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</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>
<h1>TimeZone Class Reference</h1><!-- doxytag: class="TimeZone" --><!-- doxytag: inherits="UObject" --><code><a class="el" href="classTimeZone.html">TimeZone</a></code> represents a time zone offset, and also figures out daylight savings.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="timezone_8h-source.html">timezone.h</a>&gt;</code>
<p>
<p>Inheritance diagram for TimeZone:
<p><center><img src="classTimeZone.png" usemap="#TimeZone_map" border="0" alt=""></center>
<map name="TimeZone_map">
<area href="classUObject.html" alt="UObject" shape="rect" coords="0,56,105,80">
<area href="classUMemory.html" alt="UMemory" shape="rect" coords="0,0,105,24">
<area href="classSimpleTimeZone.html" alt="SimpleTimeZone" shape="rect" coords="0,168,105,192">
</map>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#1c0d8f1399e154b727a1c000e7193c78ecd92b72e29cd2c32dfedaa15bb7041b">SHORT</a> = 1</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Selector for short display name.  <a href="#1c0d8f1399e154b727a1c000e7193c78ecd92b72e29cd2c32dfedaa15bb7041b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#1c0d8f1399e154b727a1c000e7193c7803fcdb2cff05440ffa3d4aca05dba448">LONG</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Selector for long display name.  <a href="#1c0d8f1399e154b727a1c000e7193c7803fcdb2cff05440ffa3d4aca05dba448"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#1c0d8f1399e154b727a1c000e7193c78">EDisplayType</a> { <a class="el" href="classTimeZone.html#1c0d8f1399e154b727a1c000e7193c78ecd92b72e29cd2c32dfedaa15bb7041b">SHORT</a> =  1, 
<a class="el" href="classTimeZone.html#1c0d8f1399e154b727a1c000e7193c7803fcdb2cff05440ffa3d4aca05dba448">LONG</a>
 }</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Enum for use with getDisplayName.  <a href="classTimeZone.html#1c0d8f1399e154b727a1c000e7193c78">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#08d766207d42f9a1437c7740e935afc6">~TimeZone</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#093b9c01516b21fd54f37da84e5580aa">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="#093b9c01516b21fd54f37da84e5580aa"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#d474ee662a5fd7d520cd7293e4f10fdb">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#093b9c01516b21fd54f37da84e5580aa">operator==()</a> returns false.  <a href="#d474ee662a5fd7d520cd7293e4f10fdb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#f04e366eea4ddaec9a98954207dc743f">getOffset</a> (<a class="el" href="pwin32_8h.html#3ebf7c4fcbf17b618a01df30a79859d3">uint8_t</a> era, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> year, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> month, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> day, <a class="el" href="pwin32_8h.html#3ebf7c4fcbf17b618a01df30a79859d3">uint8_t</a> dayOfWeek, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> millis, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">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="#f04e366eea4ddaec9a98954207dc743f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#5520e9a7526acbc52d9d386c90d4f2e4">getOffset</a> (<a class="el" href="pwin32_8h.html#3ebf7c4fcbf17b618a01df30a79859d3">uint8_t</a> era, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> year, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> month, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> day, <a class="el" href="pwin32_8h.html#3ebf7c4fcbf17b618a01df30a79859d3">uint8_t</a> dayOfWeek, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> milliseconds, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> monthLength, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">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="#5520e9a7526acbc52d9d386c90d4f2e4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#42dbb3c1e445c6041ef6a2769751dd39">getOffset</a> (<a class="el" href="utypes_8h.html#e96c34189656815fe8f67e288f9bf8bf">UDate</a> date, <a class="el" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a> local, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> &amp;rawOffset, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> &amp;dstOffset, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">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="#42dbb3c1e445c6041ef6a2769751dd39"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#01d6f7af0d3d9856a446574449839934">setRawOffset</a> (<a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> 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="#01d6f7af0d3d9856a446574449839934"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#f74cfebe3b2ab4fc4990d8a989abe455">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="#f74cfebe3b2ab4fc4990d8a989abe455"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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#106c774e0549fc963663bebbebc15b39">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="#106c774e0549fc963663bebbebc15b39"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#35a829d616f71da64ca693ef5036156b">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="#35a829d616f71da64ca693ef5036156b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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#5525ef3046a1c9e667bd1a9b4b7e5254">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="#5525ef3046a1c9e667bd1a9b4b7e5254"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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#ba2bbd1dba890541156f1524c1e773b4">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="#ba2bbd1dba890541156f1524c1e773b4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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#314083df21a9c642bbb64ff3a0312033">getDisplayName</a> (<a class="el" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a> daylight, <a class="el" href="classTimeZone.html#1c0d8f1399e154b727a1c000e7193c78">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="#314083df21a9c642bbb64ff3a0312033"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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#9b8a880159c29b8e01f5a1400a9bd414">getDisplayName</a> (<a class="el" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a> daylight, <a class="el" href="classTimeZone.html#1c0d8f1399e154b727a1c000e7193c78">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="#9b8a880159c29b8e01f5a1400a9bd414"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#5e684349e50bdee71ea26d21cb4d68c9">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="#5e684349e50bdee71ea26d21cb4d68c9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#78ff8d619751cf0cbb9a445cc924f3d9">inDaylightTime</a> (<a class="el" href="utypes_8h.html#e96c34189656815fe8f67e288f9bf8bf">UDate</a> date, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">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="#78ff8d619751cf0cbb9a445cc924f3d9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#045531710ce4cdbc353a2d7f495daed1">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="#045531710ce4cdbc353a2d7f495daed1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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#9fb6ccc6d0a160b90227e16454c4995e">clone</a> (void) const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Clones <a class="el" href="classTimeZone.html">TimeZone</a> objects polymorphically.  <a href="#9fb6ccc6d0a160b90227e16454c4995e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="utypes_8h.html#452dc3c7d14eb1a1837ae1aa0b2d6724">UClassID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#6636ded5bd462ac23af205ef574b436c">getDynamicClassID</a> (void) const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a unique class ID POLYMORPHICALLY.  <a href="#6636ded5bd462ac23af205ef574b436c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#f0de836c99e10af1ed5ca822a6e5e8e4">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="#f0de836c99e10af1ed5ca822a6e5e8e4"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap 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#7f4c5231585abb04a961aeadf9dc7da7">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="#7f4c5231585abb04a961aeadf9dc7da7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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#f938674c0b8db09936af7d6843bc37b1">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">TimeZone</a></code> for the given ID.  <a href="#f938674c0b8db09936af7d6843bc37b1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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#c0cd984db0f0fa9f2b06e0edce159db5">createEnumeration</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns an enumeration over all recognized time zone IDs.  <a href="#c0cd984db0f0fa9f2b06e0edce159db5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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#2ab4f33d3da53686b08d71f86f8c7744">createEnumeration</a> (<a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> 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="#2ab4f33d3da53686b08d71f86f8c7744"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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#34e51fb7f9223250987b57b5dc7df3dc">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="#34e51fb7f9223250987b57b5dc7df3dc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#3dec1143bd7c40f746c191000bdb2b50">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="#3dec1143bd7c40f746c191000bdb2b50"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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#34ace5ec07c7d2a794aa5236ead89f06">getEquivalentID</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;id, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> 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="#34ace5ec07c7d2a794aa5236ead89f06"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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#f4f013eb9ebab83042cfbc719c625e66">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">TimeZone</a> for this host.  <a href="#f4f013eb9ebab83042cfbc719c625e66"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#b190d2a0e0ec0342ffeb31497a827fcd">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 getDefault()) to be the specified time zone.  <a href="#b190d2a0e0ec0342ffeb31497a827fcd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#601a8a7f9676998ed9072347a951c866">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#b190d2a0e0ec0342ffeb31497a827fcd">adoptDefault()</a>, except that the <a class="el" href="classTimeZone.html">TimeZone</a> object passed in is NOT adopted; the caller remains responsible for deleting it.  <a href="#601a8a7f9676998ed9072347a951c866"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="utypes_8h.html#452dc3c7d14eb1a1837ae1aa0b2d6724">UClassID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#67d5b030ac7be9e552dc014b63cdd5ce">getStaticClassID</a> (void)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the class ID for this class.  <a href="#67d5b030ac7be9e552dc014b63cdd5ce"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#f2d5c647990f78c180db666e1663b2ea">TimeZone</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor.  <a href="#f2d5c647990f78c180db666e1663b2ea"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#b953bc7ae09f429a0a1dc3c7340269ff">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 timezone with a given ID.  <a href="#b953bc7ae09f429a0a1dc3c7340269ff"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#5c5b78cd361389857cc19a5ec3ca6466">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="#5c5b78cd361389857cc19a5ec3ca6466"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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#3ff3723bb8305429e036fd30d797c5eb">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="#3ff3723bb8305429e036fd30d797c5eb"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="ures_8h.html#ac7af7d6f03daddbce1edcdd47256496">UResourceBundle</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZone.html#ee0d8f6561a83963003966b2f5e453ec">loadRule</a> (const <a class="el" href="ures_8h.html#ac7af7d6f03daddbce1edcdd47256496">UResourceBundle</a> *top, const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;ruleid, <a class="el" href="ures_8h.html#ac7af7d6f03daddbce1edcdd47256496">UResourceBundle</a> *oldbundle, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Utility function.  <a href="#ee0d8f6561a83963003966b2f5e453ec"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<code><a class="el" href="classTimeZone.html">TimeZone</a></code> represents a time zone offset, and also figures out daylight savings. 
<p>
Typically, you get a <code><a class="el" href="classTimeZone.html">TimeZone</a></code> using <code>createDefault</code> which creates a <code><a class="el" href="classTimeZone.html">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">TimeZone</a></code> object based on Japanese Standard Time.<p>
You can also get a <code><a class="el" href="classTimeZone.html">TimeZone</a></code> using <code>createTimeZone</code> along with a time zone ID. For instance, the time zone ID for the Pacific Standard Time zone is "PST". So, you can get a PST <code><a class="el" href="classTimeZone.html">TimeZone</a></code> object with:  <blockquote> <pre>
 <a class="el" href="classTimeZone.html">TimeZone</a> *tz = <a class="el" href="classTimeZone.html#f938674c0b8db09936af7d6843bc37b1">TimeZone::createTimeZone</a>("PST");
 </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">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">TimeZone</a></code> that is returned when you specify a custom time zone ID does not include daylight savings time.<p>
<a class="el" href="classTimeZone.html">TimeZone</a> is an abstract class representing a time zone. A <a class="el" href="classTimeZone.html">TimeZone</a> is needed for <a class="el" href="classCalendar.html">Calendar</a> to produce local time for a particular time zone. A <a class="el" href="classTimeZone.html">TimeZone</a> comprises three basic pieces of information: <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">TimeZone</a>; subclasses of <a class="el" href="classTimeZone.html">TimeZone</a> may handle daylight savings time and GMT offset in different ways. Currently we only have one <a class="el" href="classTimeZone.html">TimeZone</a> subclass: <a class="el" href="classSimpleTimeZone.html">SimpleTimeZone</a>.) <p>
The <a class="el" href="classTimeZone.html">TimeZone</a> class contains a static list containing a <a class="el" href="classTimeZone.html">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, Pacific Standard 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/LosAngeles"). Anywhere the API requires an ID, you can use either form. <p>
To create a new <a class="el" href="classTimeZone.html">TimeZone</a>, you call the factory function <a class="el" href="classTimeZone.html#f938674c0b8db09936af7d6843bc37b1">TimeZone::createTimeZone()</a> and pass it a time zone ID. You can use the <a class="el" href="classTimeZone.html#c0cd984db0f0fa9f2b06e0edce159db5">createEnumeration()</a> function to obtain a list of all the time zone IDs recognized by <a class="el" href="classTimeZone.html#f938674c0b8db09936af7d6843bc37b1">createTimeZone()</a>. <p>
You can also use <a class="el" href="classTimeZone.html#f4f013eb9ebab83042cfbc719c625e66">TimeZone::createDefault()</a> to create a <a class="el" href="classTimeZone.html">TimeZone</a>. This function uses platform-specific APIs to produce a <a class="el" href="classTimeZone.html">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#f4f013eb9ebab83042cfbc719c625e66">TimeZone::createDefault()</a> will return a <a class="el" href="classTimeZone.html">TimeZone</a> for Japanese Standard Time ("Asia/Tokyo"). 
<p>

<p>
Definition at line <a class="el" href="timezone_8h-source.html#l00121">121</a> of file <a class="el" href="timezone_8h-source.html">timezone.h</a>.<hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="1c0d8f1399e154b727a1c000e7193c78"></a><!-- doxytag: member="TimeZone::EDisplayType" ref="1c0d8f1399e154b727a1c000e7193c78" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classTimeZone.html#1c0d8f1399e154b727a1c000e7193c78">TimeZone::EDisplayType</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Enum for use with getDisplayName. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable002640">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="1c0d8f1399e154b727a1c000e7193c78ecd92b72e29cd2c32dfedaa15bb7041b"></a><!-- doxytag: member="SHORT" ref="1c0d8f1399e154b727a1c000e7193c78ecd92b72e29cd2c32dfedaa15bb7041b" args="" -->SHORT</em>&nbsp;</td><td>
Selector for short display name. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable002654">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="1c0d8f1399e154b727a1c000e7193c7803fcdb2cff05440ffa3d4aca05dba448"></a><!-- doxytag: member="LONG" ref="1c0d8f1399e154b727a1c000e7193c7803fcdb2cff05440ffa3d4aca05dba448" args="" -->LONG</em>&nbsp;</td><td>
Selector for long display name. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable002655">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>
</td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="timezone_8h-source.html#l00472">472</a> of file <a class="el" href="timezone_8h-source.html">timezone.h</a>.
</div>
</div><p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="08d766207d42f9a1437c7740e935afc6"></a><!-- doxytag: member="TimeZone::~TimeZone" ref="08d766207d42f9a1437c7740e935afc6" 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 width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable002621">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="f2d5c647990f78c180db666e1663b2ea"></a><!-- doxytag: member="TimeZone::TimeZone" ref="f2d5c647990f78c180db666e1663b2ea" 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 width="100%"><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div><p>
<a class="anchor" name="b953bc7ae09f429a0a1dc3c7340269ff"></a><!-- doxytag: member="TimeZone::TimeZone" ref="b953bc7ae09f429a0a1dc3c7340269ff" 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 width="100%"><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Construct a timezone with a given ID. 
<p>
<dl compact><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>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002651">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="5c5b78cd361389857cc19a5ec3ca6466"></a><!-- doxytag: member="TimeZone::TimeZone" ref="5c5b78cd361389857cc19a5ec3ca6466" 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 width="100%"><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Copy constructor. 
<p>
<dl compact><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>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002652">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="b190d2a0e0ec0342ffeb31497a827fcd"></a><!-- doxytag: member="TimeZone::adoptDefault" ref="b190d2a0e0ec0342ffeb31497a827fcd" 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 width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the default time zone (i.e., what's returned by getDefault()) to be the specified time zone. 
<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">TimeZone</a> object passed in; the clent is no longer responsible for deleting it.<p>
<dl compact><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">TimeZone</a> object to use as the default. </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002630">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="9fb6ccc6d0a160b90227e16454c4995e"></a><!-- doxytag: member="TimeZone::clone" ref="9fb6ccc6d0a160b90227e16454c4995e" 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 width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Clones <a class="el" href="classTimeZone.html">TimeZone</a> objects polymorphically. 
<p>
Clients are responsible for deleting the <a class="el" href="classTimeZone.html">TimeZone</a> object cloned.<p>
<dl compact><dt><b>Returns:</b></dt><dd>A new copy of this <a class="el" href="classTimeZone.html">TimeZone</a> object. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002647">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Implemented in <a class="el" href="classSimpleTimeZone.html#3678aa10f25e6b2b20439fb2498e9d8f">SimpleTimeZone</a>.
</div>
</div><p>
<a class="anchor" name="3dec1143bd7c40f746c191000bdb2b50"></a><!-- doxytag: member="TimeZone::countEquivalentIDs" ref="3dec1143bd7c40f746c191000bdb2b50" args="(const UnicodeString &amp;id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> 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 width="100%"><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>
An equivalency group contains zones that have the same GMT offset and rules.<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. <dl compact><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>
</dl>
<dl compact><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 compact><dt><b>See also:</b></dt><dd><a class="el" href="classTimeZone.html#34ace5ec07c7d2a794aa5236ead89f06">getEquivalentID</a> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002627">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="f4f013eb9ebab83042cfbc719c625e66"></a><!-- doxytag: member="TimeZone::createDefault" ref="f4f013eb9ebab83042cfbc719c625e66" 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 width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a new copy of the default <a class="el" href="classTimeZone.html">TimeZone</a> for this host. 
<p>
Unless the default time zone has already been set using <a class="el" href="classTimeZone.html#b190d2a0e0ec0342ffeb31497a827fcd">adoptDefault()</a> or <a class="el" href="classTimeZone.html#601a8a7f9676998ed9072347a951c866">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">TimeZone</a> or <a class="el" href="classTimeZone.html">TimeZone</a> offset which is not recognized, the <a class="el" href="classTimeZone.html">TimeZone</a> indicated by the ID kLastResortID is instantiated and made the default.<p>
<dl compact><dt><b>Returns:</b></dt><dd>A default <a class="el" href="classTimeZone.html">TimeZone</a>. Clients are responsible for deleting the time zone object returned. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002629">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="34e51fb7f9223250987b57b5dc7df3dc"></a><!-- doxytag: member="TimeZone::createEnumeration" ref="34e51fb7f9223250987b57b5dc7df3dc" 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 width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns an enumeration over time zone IDs associated with the given country. 
<p>
Some zones are affiliated with no country (e.g., "UTC"); these may also be retrieved, as a group.<p>
<dl compact><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>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>an enumeration object, owned by the caller </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002626">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div><p>
<a class="anchor" name="2ab4f33d3da53686b08d71f86f8c7744"></a><!-- doxytag: member="TimeZone::createEnumeration" ref="2ab4f33d3da53686b08d71f86f8c7744" 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"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>rawOffset</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><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>
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 compact><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>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>an enumeration object, owned by the caller </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002625">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div><p>
<a class="anchor" name="c0cd984db0f0fa9f2b06e0edce159db5"></a><!-- doxytag: member="TimeZone::createEnumeration" ref="c0cd984db0f0fa9f2b06e0edce159db5" 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 width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns an enumeration over all recognized time zone IDs. 
<p>
(i.e., all strings that <a class="el" href="classTimeZone.html#f938674c0b8db09936af7d6843bc37b1">createTimeZone()</a> accepts)<p>
<dl compact><dt><b>Returns:</b></dt><dd>an enumeration object, owned by the caller. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002624">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

</div>
</div><p>
<a class="anchor" name="f938674c0b8db09936af7d6843bc37b1"></a><!-- doxytag: member="TimeZone::createTimeZone" ref="f938674c0b8db09936af7d6843bc37b1" 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 width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a <code><a class="el" href="classTimeZone.html">TimeZone</a></code> for the given ID. 
<p>
<dl compact><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">TimeZone</a></code>, either an abbreviation such as "PST", a full name such as "America/Los_Angeles", or a custom ID such as "GMT-8:00". </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the specified <code><a class="el" href="classTimeZone.html">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 compact><dt><b><a class="el" href="stable.html#_stable002623">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="9b8a880159c29b8e01f5a1400a9bd414"></a><!-- doxytag: member="TimeZone::getDisplayName" ref="9b8a880159c29b8e01f5a1400a9bd414" 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#d373ce262c37cc047b0df2ad7b5dbba7">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#1c0d8f1399e154b727a1c000e7193c78">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 width="100%"> 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>
If the display name is not available for the locale, then this method returns a string in the format <code>GMT[+-]hh:mm</code>. <dl compact><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>either <code>LONG</code> or <code>SHORT</code> </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>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A refence to 'result'. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002644">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="314083df21a9c642bbb64ff3a0312033"></a><!-- doxytag: member="TimeZone::getDisplayName" ref="314083df21a9c642bbb64ff3a0312033" 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#d373ce262c37cc047b0df2ad7b5dbba7">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#1c0d8f1399e154b727a1c000e7193c78">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 width="100%"> 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>
If the display name is not available for the locale, then this method returns a string in the format <code>GMT[+-]hh:mm</code>. <dl compact><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>either <code>LONG</code> or <code>SHORT</code> </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>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A reference to 'result'. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002643">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="ba2bbd1dba890541156f1524c1e773b4"></a><!-- doxytag: member="TimeZone::getDisplayName" ref="ba2bbd1dba890541156f1524c1e773b4" 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 width="100%"> 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>
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>. <dl compact><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>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A reference to 'result'. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002642">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="5525ef3046a1c9e667bd1a9b4b7e5254"></a><!-- doxytag: member="TimeZone::getDisplayName" ref="5525ef3046a1c9e667bd1a9b4b7e5254" 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 width="100%"> 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>
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>. <dl compact><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>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A reference to 'result'. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002641">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="f0de836c99e10af1ed5ca822a6e5e8e4"></a><!-- doxytag: member="TimeZone::getDSTSavings" ref="f0de836c99e10af1ed5ca822a6e5e8e4" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> TimeZone::getDSTSavings           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> 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>
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>
If an underlying <a class="el" href="classTimeZone.html">TimeZone</a> implementation subclass supports historical Daylight Saving Time changes, this method returns the known latest daylight saving value.<p>
<dl compact><dt><b>Returns:</b></dt><dd>the amount of saving time in milliseconds </dd></dl>
<dl compact><dt><b><a class="el" href="draft.html#_draft000189">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 3.6 </dd></dl>

<p>
Reimplemented in <a class="el" href="classSimpleTimeZone.html#aea799fe8b99baf9c62cb774f099505e">SimpleTimeZone</a>.
</div>
</div><p>
<a class="anchor" name="6636ded5bd462ac23af205ef574b436c"></a><!-- doxytag: member="TimeZone::getDynamicClassID" ref="6636ded5bd462ac23af205ef574b436c" 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#452dc3c7d14eb1a1837ae1aa0b2d6724">UClassID</a> TimeZone::getDynamicClassID           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns a unique class ID POLYMORPHICALLY. 
<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#093b9c01516b21fd54f37da84e5580aa">operator==()</a> and <a class="el" href="classTimeZone.html#9fb6ccc6d0a160b90227e16454c4995e">clone()</a> methods call this method. <p>
Concrete subclasses of <a class="el" href="classTimeZone.html">TimeZone</a> must use the UOBJECT_DEFINE_RTTI_IMPLEMENTATION macro from <a class="el" href="uobject_8h.html">uobject.h</a> in their implementation to provide correct RTTI information. <dl compact><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 compact><dt><b><a class="el" href="stable.html#_stable002649">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Implements <a class="el" href="classUObject.html#60f3fba82b9d7edfe3d3f9d423ab826d">UObject</a>.
<p>
Implemented in <a class="el" href="classSimpleTimeZone.html#58c4d8c0ef3b1b90dc5e41457f58c936">SimpleTimeZone</a>.
</div>
</div><p>
<a class="anchor" name="34ace5ec07c7d2a794aa5236ead89f06"></a><!-- doxytag: member="TimeZone::getEquivalentID" ref="34ace5ec07c7d2a794aa5236ead89f06" 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"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>index</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns an ID in the equivalency group that includes the given ID. 
<p>
An equivalency group contains zones that have the same GMT offset and rules.<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. <dl compact><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>
</dl>
<dl compact><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 compact><dt><b>See also:</b></dt><dd><a class="el" href="classTimeZone.html#3dec1143bd7c40f746c191000bdb2b50">countEquivalentIDs</a> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002628">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="7f4c5231585abb04a961aeadf9dc7da7"></a><!-- doxytag: member="TimeZone::getGMT" ref="7f4c5231585abb04a961aeadf9dc7da7" 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 width="100%"><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>
This is a commonly used time zone. <dl compact><dt><b>Returns:</b></dt><dd>the GMT time zone. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002622">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="106c774e0549fc963663bebbebc15b39"></a><!-- doxytag: member="TimeZone::getID" ref="106c774e0549fc963663bebbebc15b39" 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 width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Fills in "ID" with the TimeZone's ID. 
<p>
<dl compact><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>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A reference to 'ID' </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002638">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="timezone_8h-source.html#l00689">689</a> of file <a class="el" href="timezone_8h-source.html">timezone.h</a>.
</div>
</div><p>
<a class="anchor" name="42dbb3c1e445c6041ef6a2769751dd39"></a><!-- doxytag: member="TimeZone::getOffset" ref="42dbb3c1e445c6041ef6a2769751dd39" 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#e96c34189656815fe8f67e288f9bf8bf">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#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a>&nbsp;</td>
          <td class="paramname"> <em>local</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>rawOffset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> &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#863c11989634c998849cc946d04dfabe">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 width="100%"> 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>
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">TimeZone</a> class delegates to the 8-argument <a class="el" href="classTimeZone.html#f04e366eea4ddaec9a98954207dc743f">getOffset()</a>.<p>
<dl compact><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>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002635">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl>

<p>
Reimplemented in <a class="el" href="classSimpleTimeZone.html#28753e766bb2ceafb0fa8be94a7204db">SimpleTimeZone</a>.
</div>
</div><p>
<a class="anchor" name="5520e9a7526acbc52d9d386c90d4f2e4"></a><!-- doxytag: member="TimeZone::getOffset" ref="5520e9a7526acbc52d9d386c90d4f2e4" 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 <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> TimeZone::getOffset           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#3ebf7c4fcbf17b618a01df30a79859d3">uint8_t</a>&nbsp;</td>
          <td class="paramname"> <em>era</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>year</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>day</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#3ebf7c4fcbf17b618a01df30a79859d3">uint8_t</a>&nbsp;</td>
          <td class="paramname"> <em>dayOfWeek</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>milliseconds</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&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#863c11989634c998849cc946d04dfabe">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 width="100%"> 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>
This is the offset to add *to* UTC to get local time.<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 compact><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>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the offset to add *to* GMT to get local time. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002634">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Implemented in <a class="el" href="classSimpleTimeZone.html#c542bc959b5ad6ffc3085cfcf3a0157d">SimpleTimeZone</a>.
</div>
</div><p>
<a class="anchor" name="f04e366eea4ddaec9a98954207dc743f"></a><!-- doxytag: member="TimeZone::getOffset" ref="f04e366eea4ddaec9a98954207dc743f" 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 <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> TimeZone::getOffset           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#3ebf7c4fcbf17b618a01df30a79859d3">uint8_t</a>&nbsp;</td>
          <td class="paramname"> <em>era</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>year</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>day</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#3ebf7c4fcbf17b618a01df30a79859d3">uint8_t</a>&nbsp;</td>
          <td class="paramname"> <em>dayOfWeek</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&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#863c11989634c998849cc946d04dfabe">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 width="100%"> 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>
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#f938674c0b8db09936af7d6843bc37b1">createTimeZone()</a>, the reference data is specified according to the Gregorian calendar, and the date and time fields are local standard time.<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 compact><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>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The offset in milliseconds to add to GMT to get local time. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002633">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Implemented in <a class="el" href="classSimpleTimeZone.html#ea60b8179181023b430528cd4c834ef3">SimpleTimeZone</a>.
<p>
Referenced by <a class="el" href="simpletz_8h-source.html#l00845">SimpleTimeZone::getOffset()</a>.
</div>
</div><p>
<a class="anchor" name="f74cfebe3b2ab4fc4990d8a989abe455"></a><!-- doxytag: member="TimeZone::getRawOffset" ref="f74cfebe3b2ab4fc4990d8a989abe455" args="(void) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> TimeZone::getRawOffset           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> 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 compact><dt><b>Returns:</b></dt><dd>The TimeZone's raw GMT offset. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002637">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Implemented in <a class="el" href="classSimpleTimeZone.html#c8454f7720b422833eabc99fe95921a0">SimpleTimeZone</a>.
</div>
</div><p>
<a class="anchor" name="67d5b030ac7be9e552dc014b63cdd5ce"></a><!-- doxytag: member="TimeZone::getStaticClassID" ref="67d5b030ac7be9e552dc014b63cdd5ce" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="utypes_8h.html#452dc3c7d14eb1a1837ae1aa0b2d6724">UClassID</a> TimeZone::getStaticClassID           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

<p>
Reimplemented in <a class="el" href="classSimpleTimeZone.html#1df3be5dc8b99a406efea9643a0049e5">SimpleTimeZone</a>.
</div>
</div><p>
<a class="anchor" name="045531710ce4cdbc353a2d7f495daed1"></a><!-- doxytag: member="TimeZone::hasSameRules" ref="045531710ce4cdbc353a2d7f495daed1" 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#d373ce262c37cc047b0df2ad7b5dbba7">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 width="100%"> 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>
That is, if this zone differs only in ID, if at all. <dl compact><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">TimeZone</a></code> object to be compared with </td></tr>
  </table>
</dl>
<dl compact><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 compact><dt><b><a class="el" href="stable.html#_stable002646">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Reimplemented in <a class="el" href="classSimpleTimeZone.html#49ee10c4330cc5d8fd0549a6416b76b1">SimpleTimeZone</a>.
</div>
</div><p>
<a class="anchor" name="78ff8d619751cf0cbb9a445cc924f3d9"></a><!-- doxytag: member="TimeZone::inDaylightTime" ref="78ff8d619751cf0cbb9a445cc924f3d9" 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#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a> TimeZone::inDaylightTime           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#e96c34189656815fe8f67e288f9bf8bf">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#863c11989634c998849cc946d04dfabe">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 width="100%"> 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>
This method is wasteful since it creates a new <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> and deletes it each time it is called. This is a deprecated method and provided only for Java compatibility.<p>
<dl compact><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>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>true if the given date is in daylight savings time, false, otherwise. </dd></dl>
<dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000226">Deprecated:</a></b></dt><dd>ICU 2.4. Use <a class="el" href="classCalendar.html#69e40ddff31ff03db8e2ae88d4bf38a4">Calendar::inDaylightTime()</a> instead. </dd></dl>

<p>
Implemented in <a class="el" href="classSimpleTimeZone.html#9f2c3b663d70eaffc01609cd1b56a44c">SimpleTimeZone</a>.
</div>
</div><p>
<a class="anchor" name="ee0d8f6561a83963003966b2f5e453ec"></a><!-- doxytag: member="TimeZone::loadRule" ref="ee0d8f6561a83963003966b2f5e453ec" 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#ac7af7d6f03daddbce1edcdd47256496">UResourceBundle</a>* TimeZone::loadRule           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="ures_8h.html#ac7af7d6f03daddbce1edcdd47256496">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#ac7af7d6f03daddbce1edcdd47256496">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#863c11989634c998849cc946d04dfabe">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 width="100%"><code> [static, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Utility function. 
<p>
For internally loading rule data. <dl compact><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>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>either a new bundle or *oldbundle </dd></dl>
<dl compact><dt><b><a class="el" href="internal.html#_internal000178">Internal:</a></b></dt><dd>Do not use. This API is for interal use only.  </dd></dl>

</div>
</div><p>
<a class="anchor" name="d474ee662a5fd7d520cd7293e4f10fdb"></a><!-- doxytag: member="TimeZone::operator!=" ref="d474ee662a5fd7d520cd7293e4f10fdb" 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#d373ce262c37cc047b0df2ad7b5dbba7">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 width="100%"> 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#093b9c01516b21fd54f37da84e5580aa">operator==()</a> returns false. 
<p>
<dl compact><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">TimeZone</a> object to be compared with. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>True if the given <a class="el" href="classTimeZone.html">TimeZone</a> is not equal to this <a class="el" href="classTimeZone.html">TimeZone</a>; false otherwise. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002632">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="timezone_8h-source.html#l00347">347</a> of file <a class="el" href="timezone_8h-source.html">timezone.h</a>.
</div>
</div><p>
<a class="anchor" name="3ff3723bb8305429e036fd30d797c5eb"></a><!-- doxytag: member="TimeZone::operator=" ref="3ff3723bb8305429e036fd30d797c5eb" 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 width="100%"><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Default assignment operator. 
<p>
<dl compact><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>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002653">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="093b9c01516b21fd54f37da84e5580aa"></a><!-- doxytag: member="TimeZone::operator==" ref="093b9c01516b21fd54f37da84e5580aa" 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#d373ce262c37cc047b0df2ad7b5dbba7">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 width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns true if the two TimeZones are equal. 
<p>
(The <a class="el" href="classTimeZone.html">TimeZone</a> version only compares IDs, but subclasses are expected to also compare the fields they add.)<p>
<dl compact><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">TimeZone</a> object to be compared with. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>True if the given <a class="el" href="classTimeZone.html">TimeZone</a> is equal to this <a class="el" href="classTimeZone.html">TimeZone</a>; false otherwise. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002631">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Reimplemented in <a class="el" href="classSimpleTimeZone.html#a9b7b67df89b607eee1c67393f54901b">SimpleTimeZone</a>.
</div>
</div><p>
<a class="anchor" name="601a8a7f9676998ed9072347a951c866"></a><!-- doxytag: member="TimeZone::setDefault" ref="601a8a7f9676998ed9072347a951c866" 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 width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Same as <a class="el" href="classTimeZone.html#b190d2a0e0ec0342ffeb31497a827fcd">adoptDefault()</a>, except that the <a class="el" href="classTimeZone.html">TimeZone</a> object passed in is NOT adopted; the caller remains responsible for deleting it. 
<p>
<dl compact><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>
</dl>
<dl compact><dt><b><a class="el" href="system.html#_system000028">System:</a></b></dt><dd>Do not use unless you know what you are doing.  </dd></dl>

</div>
</div><p>
<a class="anchor" name="35a829d616f71da64ca693ef5036156b"></a><!-- doxytag: member="TimeZone::setID" ref="35a829d616f71da64ca693ef5036156b" 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 width="100%"><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the TimeZone's ID to the specified value. 
<p>
This doesn't affect any other fields (for example, if you say&lt; blockquote&gt;<pre>
 .     TimeZone* foo = <a class="el" href="classTimeZone.html#f938674c0b8db09936af7d6843bc37b1">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 compact><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 timezone ID. </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002639">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="timezone_8h-source.html#l00698">698</a> of file <a class="el" href="timezone_8h-source.html">timezone.h</a>.
</div>
</div><p>
<a class="anchor" name="01d6f7af0d3d9856a446574449839934"></a><!-- doxytag: member="TimeZone::setRawOffset" ref="01d6f7af0d3d9856a446574449839934" 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"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>offsetMillis</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><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 compact><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>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002636">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Implemented in <a class="el" href="classSimpleTimeZone.html#0f33a7ec0c5590e8a9a587acb8c8678c">SimpleTimeZone</a>.
</div>
</div><p>
<a class="anchor" name="5e684349e50bdee71ea26d21cb4d68c9"></a><!-- doxytag: member="TimeZone::useDaylightTime" ref="5e684349e50bdee71ea26d21cb4d68c9" 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#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a> TimeZone::useDaylightTime           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

<p>
Implemented in <a class="el" href="classSimpleTimeZone.html#d5e04b9efdad3b36102334896d8f4f86">SimpleTimeZone</a>.
</div>
</div><p>
<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></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Dec 13 17:29:55 2011 for ICU 3.6 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>