<!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.8: TimeZoneRule 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.5.1 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li id="current"><a href="classes.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li> <form action="search.php" method="get"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td><label> <u>S</u>earch for </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 List</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Data Fields</span></a></li> </ul></div> <h1>TimeZoneRule Class Reference</h1><!-- doxytag: class="TimeZoneRule" --><!-- doxytag: inherits="UObject" --><code><a class="el" href="classTimeZoneRule.html">TimeZoneRule</a></code> is a class representing a rule for time zone. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="tzrule_8h-source.html">tzrule.h</a>></code> <p> <p>Inheritance diagram for TimeZoneRule: <p><center><img src="classTimeZoneRule.png" usemap="#TimeZoneRule_map" border="0" alt=""></center> <map name="TimeZoneRule_map"> <area href="classUObject.html" alt="UObject" shape="rect" coords="162,56,314,80"> <area href="classUMemory.html" alt="UMemory" shape="rect" coords="162,0,314,24"> <area href="classAnnualTimeZoneRule.html" alt="AnnualTimeZoneRule" shape="rect" coords="0,168,152,192"> <area href="classInitialTimeZoneRule.html" alt="InitialTimeZoneRule" shape="rect" coords="162,168,314,192"> <area href="classTimeArrayTimeZoneRule.html" alt="TimeArrayTimeZoneRule" shape="rect" coords="324,168,476,192"> </map> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZoneRule.html#23098bb7e6eb03577f99b16a96989e26">~TimeZoneRule</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#23098bb7e6eb03577f99b16a96989e26"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classTimeZoneRule.html">TimeZoneRule</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZoneRule.html#7268c8bdb79e5a7525efb5794f7631b0">clone</a> (void) const =0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Clone this <a class="el" href="classTimeZoneRule.html">TimeZoneRule</a> object polymorphically. <a href="#7268c8bdb79e5a7525efb5794f7631b0"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZoneRule.html#3173909647eb081acd47b470bf1804ff">operator==</a> (const <a class="el" href="classTimeZoneRule.html">TimeZoneRule</a> &that) const</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return true if the given <code><a class="el" href="classTimeZoneRule.html">TimeZoneRule</a></code> objects are semantically equal. <a href="#3173909647eb081acd47b470bf1804ff"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZoneRule.html#7ce24486af96a2b6ef4bad82fb2923fb">operator!=</a> (const <a class="el" href="classTimeZoneRule.html">TimeZoneRule</a> &that) const</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return true if the given <code><a class="el" href="classTimeZoneRule.html">TimeZoneRule</a></code> objects are semantically unequal. <a href="#7ce24486af96a2b6ef4bad82fb2923fb"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZoneRule.html#491703b22b92c9f5b1e5ed714bcf89fd">getName</a> (<a class="el" href="classUnicodeString.html">UnicodeString</a> &name) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Fills in "name" with the name of this time zone. <a href="#491703b22b92c9f5b1e5ed714bcf89fd"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZoneRule.html#62f50d95c24e217a2f2a5d70e6b0e5a1">getRawOffset</a> (void) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the standard time offset. <a href="#62f50d95c24e217a2f2a5d70e6b0e5a1"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZoneRule.html#9ad7efcdaf3ea1d9101a9016f21ae46a">getDSTSavings</a> (void) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the amount of daylight saving delta time from the standard time. <a href="#9ad7efcdaf3ea1d9101a9016f21ae46a"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZoneRule.html#f2732a0a42c202e3bee559f1bfafa22e">isEquivalentTo</a> (const <a class="el" href="classTimeZoneRule.html">TimeZoneRule</a> &other) const</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns if this rule represents the same rule and offsets as another. <a href="#f2732a0a42c202e3bee559f1bfafa22e"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZoneRule.html#2fe00df403927781cbf539f8a1c8379f">getFirstStart</a> (<a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> prevRawOffset, <a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> prevDSTSavings, <a class="el" href="utypes_8h.html#ce1704e9e77d407d1eaaa2e73ec0c039">UDate</a> &result) const=0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the very first time when this rule takes effect. <a href="#2fe00df403927781cbf539f8a1c8379f"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZoneRule.html#1805a90065301019e00814068f31979b">getFinalStart</a> (<a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> prevRawOffset, <a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> prevDSTSavings, <a class="el" href="utypes_8h.html#ce1704e9e77d407d1eaaa2e73ec0c039">UDate</a> &result) const=0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the final time when this rule takes effect. <a href="#1805a90065301019e00814068f31979b"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZoneRule.html#b5f11f30a43506615d2d440c0fff5727">getNextStart</a> (<a class="el" href="utypes_8h.html#ce1704e9e77d407d1eaaa2e73ec0c039">UDate</a> base, <a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> prevRawOffset, <a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> prevDSTSavings, <a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> inclusive, <a class="el" href="utypes_8h.html#ce1704e9e77d407d1eaaa2e73ec0c039">UDate</a> &result) const=0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the first time when this rule takes effect after the specified time. <a href="#b5f11f30a43506615d2d440c0fff5727"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZoneRule.html#4f3ba58c2f25d0dc3aee1bdbc3a55a7a">getPreviousStart</a> (<a class="el" href="utypes_8h.html#ce1704e9e77d407d1eaaa2e73ec0c039">UDate</a> base, <a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> prevRawOffset, <a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> prevDSTSavings, <a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> inclusive, <a class="el" href="utypes_8h.html#ce1704e9e77d407d1eaaa2e73ec0c039">UDate</a> &result) const=0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the most recent time when this rule takes effect before the specified time. <a href="#4f3ba58c2f25d0dc3aee1bdbc3a55a7a"></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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZoneRule.html#bafbafe1daf453db1ec57e12e06957d0">TimeZoneRule</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &name, <a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> rawOffset, <a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> dstSavings)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs a <code><a class="el" href="classTimeZoneRule.html">TimeZoneRule</a></code> with the name, the GMT offset of its standard time and the amount of daylight saving offset adjustment. <a href="#bafbafe1daf453db1ec57e12e06957d0"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZoneRule.html#455c5d02c01e3396d661632a8a17cb56">TimeZoneRule</a> (const <a class="el" href="classTimeZoneRule.html">TimeZoneRule</a> &source)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <a href="#455c5d02c01e3396d661632a8a17cb56"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classTimeZoneRule.html">TimeZoneRule</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZoneRule.html#a11d2fed66a0728be2ce2d8d7c167138">operator=</a> (const <a class="el" href="classTimeZoneRule.html">TimeZoneRule</a> &right)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Assignment operator. <a href="#a11d2fed66a0728be2ce2d8d7c167138"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> <code><a class="el" href="classTimeZoneRule.html">TimeZoneRule</a></code> is a class representing a rule for time zone. <p> <code><a class="el" href="classTimeZoneRule.html">TimeZoneRule</a></code> has a set of time zone attributes, such as zone name, raw offset (UTC offset for standard time) and daylight saving time offset.<p> <dl compact><dt><b><a class="el" href="draft.html#_draft000120">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 3.8 </dd></dl> <p> <p> Definition at line <a class="el" href="tzrule_8h-source.html#l00032">32</a> of file <a class="el" href="tzrule_8h-source.html">tzrule.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="23098bb7e6eb03577f99b16a96989e26"></a><!-- doxytag: member="TimeZoneRule::~TimeZoneRule" ref="23098bb7e6eb03577f99b16a96989e26" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual TimeZoneRule::~TimeZoneRule </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Destructor. <p> <dl compact><dt><b><a class="el" href="draft.html#_draft000124">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 3.8 </dd></dl> </div> </div><p> <a class="anchor" name="bafbafe1daf453db1ec57e12e06957d0"></a><!-- doxytag: member="TimeZoneRule::TimeZoneRule" ref="bafbafe1daf453db1ec57e12e06957d0" args="(const UnicodeString &name, int32_t rawOffset, int32_t dstSavings)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">TimeZoneRule::TimeZoneRule </td> <td>(</td> <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"> <em>name</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> </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#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> </td> <td class="paramname"> <em>dstSavings</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Constructs a <code><a class="el" href="classTimeZoneRule.html">TimeZoneRule</a></code> with the name, the GMT offset of its standard time and the amount of daylight saving offset adjustment. <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>name</em> </td><td>The time zone name. </td></tr> <tr><td valign="top"></td><td valign="top"><em>rawOffset</em> </td><td>The UTC offset of its standard time in milliseconds. </td></tr> <tr><td valign="top"></td><td valign="top"><em>dstSavings</em> </td><td>The amount of daylight saving offset adjustment in milliseconds. If this ia a rule for standard time, the value of this argument is 0. </td></tr> </table> </dl> <dl compact><dt><b><a class="el" href="draft.html#_draft000136">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 3.8 </dd></dl> </div> </div><p> <a class="anchor" name="455c5d02c01e3396d661632a8a17cb56"></a><!-- doxytag: member="TimeZoneRule::TimeZoneRule" ref="455c5d02c01e3396d661632a8a17cb56" args="(const TimeZoneRule &source)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">TimeZoneRule::TimeZoneRule </td> <td>(</td> <td class="paramtype">const <a class="el" href="classTimeZoneRule.html">TimeZoneRule</a> & </td> <td class="paramname"> <em>source</em> </td> <td> ) </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> </td><td>The <a class="el" href="classTimeZoneRule.html">TimeZoneRule</a> object to be copied. </td></tr> </table> </dl> <dl compact><dt><b><a class="el" href="draft.html#_draft000137">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 3.8 </dd></dl> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="7268c8bdb79e5a7525efb5794f7631b0"></a><!-- doxytag: member="TimeZoneRule::clone" ref="7268c8bdb79e5a7525efb5794f7631b0" args="(void) const =0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classTimeZoneRule.html">TimeZoneRule</a>* TimeZoneRule::clone </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Clone this <a class="el" href="classTimeZoneRule.html">TimeZoneRule</a> object polymorphically. <p> The caller owns the result and should delete it when done. <dl class="return" compact><dt><b>Returns:</b></dt><dd>A copy of the object. </dd></dl> <dl compact><dt><b><a class="el" href="draft.html#_draft000125">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 3.8 </dd></dl> <p> Implemented in <a class="el" href="classInitialTimeZoneRule.html#8d6ded81ca57ac5ee02ba9e948b7b6d4">InitialTimeZoneRule</a>, <a class="el" href="classAnnualTimeZoneRule.html#af3199d195e611738c20ffffcb58147a">AnnualTimeZoneRule</a>, and <a class="el" href="classTimeArrayTimeZoneRule.html#4f381cdb0b0a182081bb5542b983439a">TimeArrayTimeZoneRule</a>. </div> </div><p> <a class="anchor" name="3173909647eb081acd47b470bf1804ff"></a><!-- doxytag: member="TimeZoneRule::operator==" ref="3173909647eb081acd47b470bf1804ff" args="(const TimeZoneRule &that) const" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> TimeZoneRule::operator== </td> <td>(</td> <td class="paramtype">const <a class="el" href="classTimeZoneRule.html">TimeZoneRule</a> & </td> <td class="paramname"> <em>that</em> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return true if the given <code><a class="el" href="classTimeZoneRule.html">TimeZoneRule</a></code> objects are semantically equal. <p> Objects of different subclasses are considered unequal. <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> </td><td>The object to be compared with. </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>true if the given <code><a class="el" href="classTimeZoneRule.html">TimeZoneRule</a></code> objects are semantically equal. </dd></dl> <dl compact><dt><b><a class="el" href="draft.html#_draft000126">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 3.8 </dd></dl> <p> Reimplemented in <a class="el" href="classInitialTimeZoneRule.html#6a2bb5a3f35fb6c9b1e860badcdd8c67">InitialTimeZoneRule</a>, <a class="el" href="classAnnualTimeZoneRule.html#39ad5ddd23560f98c19fd3d1bc16712a">AnnualTimeZoneRule</a>, and <a class="el" href="classTimeArrayTimeZoneRule.html#38db14930070279f1d8bf7c6f649a135">TimeArrayTimeZoneRule</a>. </div> </div><p> <a class="anchor" name="7ce24486af96a2b6ef4bad82fb2923fb"></a><!-- doxytag: member="TimeZoneRule::operator!=" ref="7ce24486af96a2b6ef4bad82fb2923fb" args="(const TimeZoneRule &that) const" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> TimeZoneRule::operator!= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classTimeZoneRule.html">TimeZoneRule</a> & </td> <td class="paramname"> <em>that</em> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return true if the given <code><a class="el" href="classTimeZoneRule.html">TimeZoneRule</a></code> objects are semantically unequal. <p> Objects of different subclasses are considered unequal. <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> </td><td>The object to be compared with. </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>true if the given <code><a class="el" href="classTimeZoneRule.html">TimeZoneRule</a></code> objects are semantically unequal. </dd></dl> <dl compact><dt><b><a class="el" href="draft.html#_draft000127">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 3.8 </dd></dl> <p> Reimplemented in <a class="el" href="classInitialTimeZoneRule.html#83fdb5395c849aab99f52aad38e1e248">InitialTimeZoneRule</a>, <a class="el" href="classAnnualTimeZoneRule.html#9327749401404fbfb9f284ccc49fbc5f">AnnualTimeZoneRule</a>, and <a class="el" href="classTimeArrayTimeZoneRule.html#755c13d73952b592dd18a979a645a73c">TimeArrayTimeZoneRule</a>. </div> </div><p> <a class="anchor" name="491703b22b92c9f5b1e5ed714bcf89fd"></a><!-- doxytag: member="TimeZoneRule::getName" ref="491703b22b92c9f5b1e5ed714bcf89fd" args="(UnicodeString &name) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>& TimeZoneRule::getName </td> <td>(</td> <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"> <em>name</em> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> Fills in "name" with the name of this time zone. <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>name</em> </td><td>Receives the name of this time zone. </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>A reference to "name" </dd></dl> <dl compact><dt><b><a class="el" href="draft.html#_draft000128">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 3.8 </dd></dl> </div> </div><p> <a class="anchor" name="62f50d95c24e217a2f2a5d70e6b0e5a1"></a><!-- doxytag: member="TimeZoneRule::getRawOffset" ref="62f50d95c24e217a2f2a5d70e6b0e5a1" args="(void) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> TimeZoneRule::getRawOffset </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> Gets the standard time offset. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The standard time offset from UTC in milliseconds. </dd></dl> <dl compact><dt><b><a class="el" href="draft.html#_draft000129">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 3.8 </dd></dl> </div> </div><p> <a class="anchor" name="9ad7efcdaf3ea1d9101a9016f21ae46a"></a><!-- doxytag: member="TimeZoneRule::getDSTSavings" ref="9ad7efcdaf3ea1d9101a9016f21ae46a" args="(void) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> TimeZoneRule::getDSTSavings </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> Gets the amount of daylight saving delta time from the standard time. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The amount of daylight saving offset used by this rule in milliseconds. </dd></dl> <dl compact><dt><b><a class="el" href="draft.html#_draft000130">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 3.8 </dd></dl> </div> </div><p> <a class="anchor" name="f2732a0a42c202e3bee559f1bfafa22e"></a><!-- doxytag: member="TimeZoneRule::isEquivalentTo" ref="f2732a0a42c202e3bee559f1bfafa22e" args="(const TimeZoneRule &other) const" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> TimeZoneRule::isEquivalentTo </td> <td>(</td> <td class="paramtype">const <a class="el" href="classTimeZoneRule.html">TimeZoneRule</a> & </td> <td class="paramname"> <em>other</em> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Returns if this rule represents the same rule and offsets as another. <p> When two <code><a class="el" href="classTimeZoneRule.html">TimeZoneRule</a></code> objects differ only its names, this method returns true. <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> </td><td>The <code><a class="el" href="classTimeZoneRule.html">TimeZoneRule</a></code> object to be compared with. </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>true if the other <code><a class="el" href="classTimeZoneRule.html">TimeZoneRule</a></code> is the same as this one. </dd></dl> <dl compact><dt><b><a class="el" href="draft.html#_draft000131">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 3.8 </dd></dl> <p> Reimplemented in <a class="el" href="classInitialTimeZoneRule.html#1b63bb6cde2ec8e7fc68b27a93c664a8">InitialTimeZoneRule</a>, <a class="el" href="classAnnualTimeZoneRule.html#b886cf0ef6a399b47f6e4c32ff41742f">AnnualTimeZoneRule</a>, and <a class="el" href="classTimeArrayTimeZoneRule.html#8a29eac901332dea5f6edad3956e6a88">TimeArrayTimeZoneRule</a>. </div> </div><p> <a class="anchor" name="2fe00df403927781cbf539f8a1c8379f"></a><!-- doxytag: member="TimeZoneRule::getFirstStart" ref="2fe00df403927781cbf539f8a1c8379f" args="(int32_t prevRawOffset, int32_t prevDSTSavings, UDate &result) const=0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> TimeZoneRule::getFirstStart </td> <td>(</td> <td class="paramtype"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> </td> <td class="paramname"> <em>prevRawOffset</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> </td> <td class="paramname"> <em>prevDSTSavings</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#ce1704e9e77d407d1eaaa2e73ec0c039">UDate</a> & </td> <td class="paramname"> <em>result</em></td><td> </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 very first time when this rule takes effect. <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>prevRawOffset</em> </td><td>The standard time offset from UTC before this rule takes effect in milliseconds. </td></tr> <tr><td valign="top"></td><td valign="top"><em>prevDSTSavings</em> </td><td>The amount of daylight saving offset from the standard time. </td></tr> <tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>Receives the very first time when this rule takes effect. </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>true if the start time is available. When false is returned, output parameter "result" is unchanged. </dd></dl> <dl compact><dt><b><a class="el" href="draft.html#_draft000132">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 3.8 </dd></dl> <p> Implemented in <a class="el" href="classInitialTimeZoneRule.html#24cc9284c9ca544a1a130db28acd7b40">InitialTimeZoneRule</a>, <a class="el" href="classAnnualTimeZoneRule.html#ed4515819c194df4bc1fc553fe4bfd90">AnnualTimeZoneRule</a>, and <a class="el" href="classTimeArrayTimeZoneRule.html#d6df028006f2a22e533cd94bdcae3eee">TimeArrayTimeZoneRule</a>. </div> </div><p> <a class="anchor" name="1805a90065301019e00814068f31979b"></a><!-- doxytag: member="TimeZoneRule::getFinalStart" ref="1805a90065301019e00814068f31979b" args="(int32_t prevRawOffset, int32_t prevDSTSavings, UDate &result) const=0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> TimeZoneRule::getFinalStart </td> <td>(</td> <td class="paramtype"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> </td> <td class="paramname"> <em>prevRawOffset</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> </td> <td class="paramname"> <em>prevDSTSavings</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#ce1704e9e77d407d1eaaa2e73ec0c039">UDate</a> & </td> <td class="paramname"> <em>result</em></td><td> </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 final time when this rule takes effect. <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>prevRawOffset</em> </td><td>The standard time offset from UTC before this rule takes effect in milliseconds. </td></tr> <tr><td valign="top"></td><td valign="top"><em>prevDSTSavings</em> </td><td>The amount of daylight saving offset from the standard time. </td></tr> <tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>Receives the final time when this rule takes effect. </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>true if the start time is available. When false is returned, output parameter "result" is unchanged. </dd></dl> <dl compact><dt><b><a class="el" href="draft.html#_draft000133">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 3.8 </dd></dl> <p> Implemented in <a class="el" href="classInitialTimeZoneRule.html#5f9b8711ed7899baa8ac852f7e7ea6ac">InitialTimeZoneRule</a>, <a class="el" href="classAnnualTimeZoneRule.html#3287cef07b42dc4962c2735bfade4bc0">AnnualTimeZoneRule</a>, and <a class="el" href="classTimeArrayTimeZoneRule.html#72b9a3c80b840cd4a6dd859720e37b59">TimeArrayTimeZoneRule</a>. </div> </div><p> <a class="anchor" name="b5f11f30a43506615d2d440c0fff5727"></a><!-- doxytag: member="TimeZoneRule::getNextStart" ref="b5f11f30a43506615d2d440c0fff5727" args="(UDate base, int32_t prevRawOffset, int32_t prevDSTSavings, UBool inclusive, UDate &result) const=0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> TimeZoneRule::getNextStart </td> <td>(</td> <td class="paramtype"><a class="el" href="utypes_8h.html#ce1704e9e77d407d1eaaa2e73ec0c039">UDate</a> </td> <td class="paramname"> <em>base</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> </td> <td class="paramname"> <em>prevRawOffset</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> </td> <td class="paramname"> <em>prevDSTSavings</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> </td> <td class="paramname"> <em>inclusive</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#ce1704e9e77d407d1eaaa2e73ec0c039">UDate</a> & </td> <td class="paramname"> <em>result</em></td><td> </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 first time when this rule takes effect after the specified time. <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>base</em> </td><td>The first start time after this base time will be returned. </td></tr> <tr><td valign="top"></td><td valign="top"><em>prevRawOffset</em> </td><td>The standard time offset from UTC before this rule takes effect in milliseconds. </td></tr> <tr><td valign="top"></td><td valign="top"><em>prevDSTSavings</em> </td><td>The amount of daylight saving offset from the standard time. </td></tr> <tr><td valign="top"></td><td valign="top"><em>inclusive</em> </td><td>Whether the base time is inclusive or not. </td></tr> <tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>Receives The first time when this rule takes effect after the specified base time. </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>true if the start time is available. When false is returned, output parameter "result" is unchanged. </dd></dl> <dl compact><dt><b><a class="el" href="draft.html#_draft000134">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 3.8 </dd></dl> <p> Implemented in <a class="el" href="classInitialTimeZoneRule.html#f2d3eaeb36658e89a1c61ea54f551f03">InitialTimeZoneRule</a>, <a class="el" href="classAnnualTimeZoneRule.html#e63939baa2dd1380e5c245f58bc55fec">AnnualTimeZoneRule</a>, and <a class="el" href="classTimeArrayTimeZoneRule.html#1c6c7f578bb51b2b719e2f2dea7aa2f9">TimeArrayTimeZoneRule</a>. </div> </div><p> <a class="anchor" name="4f3ba58c2f25d0dc3aee1bdbc3a55a7a"></a><!-- doxytag: member="TimeZoneRule::getPreviousStart" ref="4f3ba58c2f25d0dc3aee1bdbc3a55a7a" args="(UDate base, int32_t prevRawOffset, int32_t prevDSTSavings, UBool inclusive, UDate &result) const=0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> TimeZoneRule::getPreviousStart </td> <td>(</td> <td class="paramtype"><a class="el" href="utypes_8h.html#ce1704e9e77d407d1eaaa2e73ec0c039">UDate</a> </td> <td class="paramname"> <em>base</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> </td> <td class="paramname"> <em>prevRawOffset</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> </td> <td class="paramname"> <em>prevDSTSavings</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> </td> <td class="paramname"> <em>inclusive</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#ce1704e9e77d407d1eaaa2e73ec0c039">UDate</a> & </td> <td class="paramname"> <em>result</em></td><td> </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 most recent time when this rule takes effect before the specified time. <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>base</em> </td><td>The most recent time before this base time will be returned. </td></tr> <tr><td valign="top"></td><td valign="top"><em>prevRawOffset</em> </td><td>The standard time offset from UTC before this rule takes effect in milliseconds. </td></tr> <tr><td valign="top"></td><td valign="top"><em>prevDSTSavings</em> </td><td>The amount of daylight saving offset from the standard time. </td></tr> <tr><td valign="top"></td><td valign="top"><em>inclusive</em> </td><td>Whether the base time is inclusive or not. </td></tr> <tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>Receives The most recent time when this rule takes effect before the specified base time. </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>true if the start time is available. When false is returned, output parameter "result" is unchanged. </dd></dl> <dl compact><dt><b><a class="el" href="draft.html#_draft000135">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 3.8 </dd></dl> <p> Implemented in <a class="el" href="classInitialTimeZoneRule.html#a5928fa0faaeff55bca9b815c7901257">InitialTimeZoneRule</a>, <a class="el" href="classAnnualTimeZoneRule.html#88e0663f09d48615e3646a4e31fe631d">AnnualTimeZoneRule</a>, and <a class="el" href="classTimeArrayTimeZoneRule.html#af70f2d2c00677e8c88c800755fbed6f">TimeArrayTimeZoneRule</a>. </div> </div><p> <a class="anchor" name="a11d2fed66a0728be2ce2d8d7c167138"></a><!-- doxytag: member="TimeZoneRule::operator=" ref="a11d2fed66a0728be2ce2d8d7c167138" args="(const TimeZoneRule &right)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classTimeZoneRule.html">TimeZoneRule</a>& TimeZoneRule::operator= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classTimeZoneRule.html">TimeZoneRule</a> & </td> <td class="paramname"> <em>right</em> </td> <td> ) </td> <td width="100%"><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> 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> </td><td>The object to be copied. </td></tr> </table> </dl> <dl compact><dt><b><a class="el" href="draft.html#_draft000138">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 3.8 </dd></dl> </div> </div><p> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="tzrule_8h-source.html">tzrule.h</a></ul> <hr size="1"><address style="align: right;"><small>Generated on Fri Sep 14 12:59:47 2007 for ICU 3.8 by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address> </body> </html>