Sophie

Sophie

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

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

<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>ICU 4.4: SimpleTimeZone Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Search" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&nbsp;Structure&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>SimpleTimeZone Class Reference</h1><!-- doxytag: class="SimpleTimeZone" --><!-- doxytag: inherits="BasicTimeZone" -->
<p><code><a class="el" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a></code> is a concrete subclass of <code><a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a></code> that represents a time zone for use with a Gregorian calendar.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="simpletz_8h_source.html">simpletz.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for SimpleTimeZone:</div>
<div class="dynsection">
 <div class="center">
  <img src="classSimpleTimeZone.gif" usemap="#SimpleTimeZone_map" alt=""/>
  <map id="SimpleTimeZone_map" name="SimpleTimeZone_map">
<area href="classBasicTimeZone.html" alt="BasicTimeZone" shape="rect" coords="0,168,105,192"/>
<area href="classTimeZone.html" alt="TimeZone" shape="rect" coords="0,112,105,136"/>
<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"/>
</map>
 </div>
</div>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#aa0134e78ee3cc1d65ea434839d39158e">TimeMode</a> { <b>WALL_TIME</b> =  0, 
<b>STANDARD_TIME</b>, 
<b>UTC_TIME</b>
 }</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><p>TimeMode is used, together with a millisecond offset after midnight, to specify a rule transition time. </p>
 <a href="classSimpleTimeZone.html#aa0134e78ee3cc1d65ea434839d39158e">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a62a8a0ad72d6b47396ef3d8212b5c33d">SimpleTimeZone</a> (const <a class="el" href="classSimpleTimeZone.html">SimpleTimeZone</a> &amp;source)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy constructor.  <a href="#a62a8a0ad72d6b47396ef3d8212b5c33d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSimpleTimeZone.html">SimpleTimeZone</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a228a199e8ed3155158946aa959374ebf">operator=</a> (const <a class="el" href="classSimpleTimeZone.html">SimpleTimeZone</a> &amp;right)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default assignment operator.  <a href="#a228a199e8ed3155158946aa959374ebf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a8f11a7b35245fcb6a6ba997fac7436ec">~SimpleTimeZone</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor.  <a href="#a8f11a7b35245fcb6a6ba997fac7436ec"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#ae20ce2575cc09a4153ded38027cfb9d1">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 <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> objects are equal; that is, they have the same ID, raw GMT offset, and DST rules.  <a href="#ae20ce2575cc09a4153ded38027cfb9d1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a06ac806f66deda0ba571dda63fff6f0a">SimpleTimeZone</a> (int32_t rawOffsetGMT, const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;ID)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a <a class="el" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a> with the given raw GMT offset and time zone ID, and which doesn't observe daylight savings time.  <a href="#a06ac806f66deda0ba571dda63fff6f0a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a312810055cb819b59ce71652388e44f6">SimpleTimeZone</a> (int32_t rawOffsetGMT, const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;ID, int8_t savingsStartMonth, int8_t savingsStartDayOfWeekInMonth, int8_t savingsStartDayOfWeek, int32_t savingsStartTime, int8_t savingsEndMonth, int8_t savingsEndDayOfWeekInMonth, int8_t savingsEndDayOfWeek, int32_t savingsEndTime, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct a <a class="el" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a> with the given raw GMT offset, time zone ID, and times to start and end daylight savings time.  <a href="#a312810055cb819b59ce71652388e44f6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#aaa18174e81984d0c9692dc1f545d372e">SimpleTimeZone</a> (int32_t rawOffsetGMT, const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;ID, int8_t savingsStartMonth, int8_t savingsStartDayOfWeekInMonth, int8_t savingsStartDayOfWeek, int32_t savingsStartTime, int8_t savingsEndMonth, int8_t savingsEndDayOfWeekInMonth, int8_t savingsEndDayOfWeek, int32_t savingsEndTime, int32_t savingsDST, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct a <a class="el" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a> with the given raw GMT offset, time zone ID, and times to start and end daylight savings time.  <a href="#aaa18174e81984d0c9692dc1f545d372e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a0f3ca0f3f2813ae1bf8f50cdd96b9f0d">SimpleTimeZone</a> (int32_t rawOffsetGMT, const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;ID, int8_t savingsStartMonth, int8_t savingsStartDayOfWeekInMonth, int8_t savingsStartDayOfWeek, int32_t savingsStartTime, <a class="el" href="classSimpleTimeZone.html#aa0134e78ee3cc1d65ea434839d39158e">TimeMode</a> savingsStartTimeMode, int8_t savingsEndMonth, int8_t savingsEndDayOfWeekInMonth, int8_t savingsEndDayOfWeek, int32_t savingsEndTime, <a class="el" href="classSimpleTimeZone.html#aa0134e78ee3cc1d65ea434839d39158e">TimeMode</a> savingsEndTimeMode, int32_t savingsDST, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct a <a class="el" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a> with the given raw GMT offset, time zone ID, and times to start and end daylight savings time.  <a href="#a0f3ca0f3f2813ae1bf8f50cdd96b9f0d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a8e1229e930e04c19ece39572a500da89">setStartYear</a> (int32_t year)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the daylight savings starting year, that is, the year this time zone began observing its specified daylight savings time rules.  <a href="#a8e1229e930e04c19ece39572a500da89"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196">setStartRule</a> (int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, int32_t time, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the daylight savings starting rule.  <a href="#a8c4a9581b04860da2c1cee479a47f196"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a2fc33e164ee7cc61978ad97fa9160605">setStartRule</a> (int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, int32_t time, <a class="el" href="classSimpleTimeZone.html#aa0134e78ee3cc1d65ea434839d39158e">TimeMode</a> mode, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the daylight savings starting rule.  <a href="#a2fc33e164ee7cc61978ad97fa9160605"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a804b78f9d989933d8f01e7da8d847a78">setStartRule</a> (int32_t month, int32_t dayOfMonth, int32_t time, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the DST start rule to a fixed date within a month.  <a href="#a804b78f9d989933d8f01e7da8d847a78"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a951c1606e4adf4025d44ad3be71195d2">setStartRule</a> (int32_t month, int32_t dayOfMonth, int32_t time, <a class="el" href="classSimpleTimeZone.html#aa0134e78ee3cc1d65ea434839d39158e">TimeMode</a> mode, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the DST start rule to a fixed date within a month.  <a href="#a951c1606e4adf4025d44ad3be71195d2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a660bbd9cb4ac87a081aa9a31e46e651c">setStartRule</a> (int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, int32_t time, <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> after, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the DST start rule to a weekday before or after a give date within a month, e.g., the first Monday on or after the 8th.  <a href="#a660bbd9cb4ac87a081aa9a31e46e651c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a2c18c26fb0161b4c8f2bcedabbabe32c">setStartRule</a> (int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, int32_t time, <a class="el" href="classSimpleTimeZone.html#aa0134e78ee3cc1d65ea434839d39158e">TimeMode</a> mode, <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> after, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the DST start rule to a weekday before or after a give date within a month, e.g., the first Monday on or after the 8th.  <a href="#a2c18c26fb0161b4c8f2bcedabbabe32c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#ae2eee23700f7405a563cf01e3cedd797">setEndRule</a> (int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, int32_t time, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the daylight savings ending rule.  <a href="#ae2eee23700f7405a563cf01e3cedd797"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#aa431708879d771b0a9db6a885c6b9636">setEndRule</a> (int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, int32_t time, <a class="el" href="classSimpleTimeZone.html#aa0134e78ee3cc1d65ea434839d39158e">TimeMode</a> mode, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the daylight savings ending rule.  <a href="#aa431708879d771b0a9db6a885c6b9636"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a74dd5abdc15565cde82c64354b9897a2">setEndRule</a> (int32_t month, int32_t dayOfMonth, int32_t time, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the DST end rule to a fixed date within a month.  <a href="#a74dd5abdc15565cde82c64354b9897a2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#ab28dc36158d3f987abde313eed0fd3f2">setEndRule</a> (int32_t month, int32_t dayOfMonth, int32_t time, <a class="el" href="classSimpleTimeZone.html#aa0134e78ee3cc1d65ea434839d39158e">TimeMode</a> mode, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the DST end rule to a fixed date within a month.  <a href="#ab28dc36158d3f987abde313eed0fd3f2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#afd814ed5b3e6dec7d9713b1f29e7652e">setEndRule</a> (int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, int32_t time, <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> after, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the DST end rule to a weekday before or after a give date within a month, e.g., the first Monday on or after the 8th.  <a href="#afd814ed5b3e6dec7d9713b1f29e7652e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a48e5aac89138621abd7fbac32c87c2e9">setEndRule</a> (int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, int32_t time, <a class="el" href="classSimpleTimeZone.html#aa0134e78ee3cc1d65ea434839d39158e">TimeMode</a> mode, <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> after, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the DST end rule to a weekday before or after a give date within a month, e.g., the first Monday on or after the 8th.  <a href="#a48e5aac89138621abd7fbac32c87c2e9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#abc1b15b477116968f77a3c5ab9e85d32">getOffset</a> (uint8_t era, int32_t year, int32_t month, int32_t day, uint8_t dayOfWeek, int32_t millis, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </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="#abc1b15b477116968f77a3c5ab9e85d32"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a430dab9be720c052648f78bd388ae3a2">getOffset</a> (uint8_t era, int32_t year, int32_t month, int32_t day, uint8_t dayOfWeek, int32_t milliseconds, int32_t monthLength, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </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="#a430dab9be720c052648f78bd388ae3a2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#ada95e04c886d2dbee03d83ff3065e9e5">getOffset</a> (uint8_t era, int32_t year, int32_t month, int32_t day, uint8_t dayOfWeek, int32_t milliseconds, int32_t monthLength, int32_t prevMonthLength, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </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="#ada95e04c886d2dbee03d83ff3065e9e5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a7af810373fc0ec1c97fb23fb40c43c01">getOffset</a> (<a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> date, <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> local, int32_t &amp;rawOffset, int32_t &amp;dstOffset, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;ec) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Redeclared <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> method.  <a href="#a7af810373fc0ec1c97fb23fb40c43c01"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a10614d3037247fb45b55f528bc0be440">getOffsetFromLocal</a> (<a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> date, int32_t nonExistingTimeOpt, int32_t duplicatedTimeOpt, int32_t &amp;rawOffset, int32_t &amp;dstOffset, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get time zone offsets from local wall time.  <a href="#a10614d3037247fb45b55f528bc0be440"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a27821d78781b1c71493457f4adaaec92">getRawOffset</a> (void) const </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="#a27821d78781b1c71493457f4adaaec92"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a6d5b9fb28dda0d197d7e23499a446be7">setRawOffset</a> (int32_t offsetMillis)</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="#a6d5b9fb28dda0d197d7e23499a446be7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a00c5c16531af810455ef7dac35fb23fa">setDSTSavings</a> (int32_t millisSavedDuringDST, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the amount of time in ms that the clock is advanced during DST.  <a href="#a00c5c16531af810455ef7dac35fb23fa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a37c0880cf0340bbc31fd93df1d22d110">getDSTSavings</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the amount of time in ms that the clock is advanced during DST.  <a href="#a37c0880cf0340bbc31fd93df1d22d110"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#aef1be3731d1312a61aac0889307bfd62">useDaylightTime</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Queries if this <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> uses Daylight Savings Time.  <a href="#aef1be3731d1312a61aac0889307bfd62"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a48b29a950e87fdf8a83aef5c684b3dfb">inDaylightTime</a> (<a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> date, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns true if the given date is within the period when daylight savings time is in effect; false otherwise.  <a href="#a48b29a950e87fdf8a83aef5c684b3dfb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#ab8753f80ffb72b190214ec34d2600d6a">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">Return true if this zone has the same rules and offset as another zone.  <a href="#ab8753f80ffb72b190214ec34d2600d6a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classTimeZone.html">TimeZone</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#aacbde413ecbc2c68811f1dde5143bd4c">clone</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Clones <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> objects polymorphically.  <a href="#aacbde413ecbc2c68811f1dde5143bd4c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a28346f7486199f9b7c03ce229fa626af">getNextTransition</a> (<a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> base, <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> inclusive, <a class="el" href="classTimeZoneTransition.html">TimeZoneTransition</a> &amp;result)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the first time zone transition after the base time.  <a href="#a28346f7486199f9b7c03ce229fa626af"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#aa84042f21c3d095147b0e207f835deb9">getPreviousTransition</a> (<a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> base, <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> inclusive, <a class="el" href="classTimeZoneTransition.html">TimeZoneTransition</a> &amp;result)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the most recent time zone transition before the base time.  <a href="#aa84042f21c3d095147b0e207f835deb9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a12f021f608389d82c0a9e23ca3fd7ad8">countTransitionRules</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the number of <code><a class="el" href="classTimeZoneRule.html" title="TimeZoneRule is a class representing a rule for time zone.">TimeZoneRule</a></code>s which represents time transitions, for this time zone, that is, all <code><a class="el" href="classTimeZoneRule.html" title="TimeZoneRule is a class representing a rule for time zone.">TimeZoneRule</a></code>s for this time zone except <code><a class="el" href="classInitialTimeZoneRule.html" title="InitialTimeZoneRule represents a time zone rule representing a time zone effective...">InitialTimeZoneRule</a></code>.  <a href="#a12f021f608389d82c0a9e23ca3fd7ad8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a0e584a10d12226e32c0e4ea14a2ccd52">getTimeZoneRules</a> (const <a class="el" href="classInitialTimeZoneRule.html">InitialTimeZoneRule</a> *&amp;initial, const <a class="el" href="classTimeZoneRule.html">TimeZoneRule</a> *trsrules[], int32_t &amp;trscount, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the <code><a class="el" href="classInitialTimeZoneRule.html" title="InitialTimeZoneRule represents a time zone rule representing a time zone effective...">InitialTimeZoneRule</a></code> and the set of <code><a class="el" href="classTimeZoneRule.html" title="TimeZoneRule is a class representing a rule for time zone.">TimeZoneRule</a></code> which represent time transitions for this time zone.  <a href="#a0e584a10d12226e32c0e4ea14a2ccd52"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#ad7c3df95d43756f22fdd97ab31c199bc">getDynamicClassID</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Override <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> Returns a unique class ID POLYMORPHICALLY.  <a href="#ad7c3df95d43756f22fdd97ab31c199bc"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSimpleTimeZone.html#a39d0abe21be338f073121a9147913150">getStaticClassID</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the class ID for this class.  <a href="#a39d0abe21be338f073121a9147913150"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p><code><a class="el" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a></code> is a concrete subclass of <code><a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a></code> that represents a time zone for use with a Gregorian calendar. </p>
<p>This class does not handle historical changes. </p>
<p>When specifying daylight-savings-time begin and end dates, use a negative value for <code>dayOfWeekInMonth</code> to indicate that <code><a class="el" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a></code> should count from the end of the month backwards. For example, if Daylight Savings Time starts or ends at the last Sunday a month, use <code>dayOfWeekInMonth = -1</code> along with <code>dayOfWeek = UCAL_SUNDAY</code> to specify the rule.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> </dd>
<dd>
<a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> </dd>
<dd>
<a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> </dd></dl>
<dl class="author"><dt><b>Author:</b></dt><dd>D. Goldsmith, Mark Davis, Chen-Lieh Huang, Alan Liu </dd></dl>

<p>Definition at line <a class="el" href="simpletz_8h_source.html#l00061">61</a> of file <a class="el" href="simpletz_8h_source.html">simpletz.h</a>.</p>
<hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="aa0134e78ee3cc1d65ea434839d39158e"></a><!-- doxytag: member="SimpleTimeZone::TimeMode" ref="aa0134e78ee3cc1d65ea434839d39158e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classSimpleTimeZone.html#aa0134e78ee3cc1d65ea434839d39158e">SimpleTimeZone::TimeMode</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>TimeMode is used, together with a millisecond offset after midnight, to specify a rule transition time. </p>
<p>Most rules transition at a local wall time, that is, according to the current time in effect, either standard, or DST. However, some rules transition at local standard time, and some at a specific UTC time. Although it might seem that all times could be converted to wall time, thus eliminating the need for this parameter, this is not the case. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003072">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="simpletz_8h_source.html#l00075">75</a> of file <a class="el" href="simpletz_8h_source.html">simpletz.h</a>.</p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a62a8a0ad72d6b47396ef3d8212b5c33d"></a><!-- doxytag: member="SimpleTimeZone::SimpleTimeZone" ref="a62a8a0ad72d6b47396ef3d8212b5c33d" args="(const SimpleTimeZone &amp;source)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SimpleTimeZone::SimpleTimeZone </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSimpleTimeZone.html">SimpleTimeZone</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>source</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

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

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

</div>
</div>
<a class="anchor" id="a06ac806f66deda0ba571dda63fff6f0a"></a><!-- doxytag: member="SimpleTimeZone::SimpleTimeZone" ref="a06ac806f66deda0ba571dda63fff6f0a" args="(int32_t rawOffsetGMT, const UnicodeString &amp;ID)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SimpleTimeZone::SimpleTimeZone </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>rawOffsetGMT</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>ID</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a <a class="el" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a> with the given raw GMT offset and time zone ID, and which doesn't observe daylight savings time. </p>
<p>Normally you should use TimeZone::createInstance() to create a <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> instead of creating a <a class="el" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a> directly with this constructor.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>rawOffsetGMT</em>&nbsp;</td><td>The given base time zone offset to GMT. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>ID</em>&nbsp;</td><td>The timezone ID which is obtained from TimeZone.getAvailableIDs. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003077">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a312810055cb819b59ce71652388e44f6"></a><!-- doxytag: member="SimpleTimeZone::SimpleTimeZone" ref="a312810055cb819b59ce71652388e44f6" args="(int32_t rawOffsetGMT, const UnicodeString &amp;ID, int8_t savingsStartMonth, int8_t savingsStartDayOfWeekInMonth, int8_t savingsStartDayOfWeek, int32_t savingsStartTime, int8_t savingsEndMonth, int8_t savingsEndDayOfWeekInMonth, int8_t savingsEndDayOfWeek, int32_t savingsEndTime, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SimpleTimeZone::SimpleTimeZone </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>rawOffsetGMT</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>ID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&nbsp;</td>
          <td class="paramname"> <em>savingsStartMonth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&nbsp;</td>
          <td class="paramname"> <em>savingsStartDayOfWeekInMonth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&nbsp;</td>
          <td class="paramname"> <em>savingsStartDayOfWeek</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>savingsStartTime</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&nbsp;</td>
          <td class="paramname"> <em>savingsEndMonth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&nbsp;</td>
          <td class="paramname"> <em>savingsEndDayOfWeekInMonth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&nbsp;</td>
          <td class="paramname"> <em>savingsEndDayOfWeek</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>savingsEndTime</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construct a <a class="el" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a> with the given raw GMT offset, time zone ID, and times to start and end daylight savings time. </p>
<p>To create a <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> that doesn't observe daylight savings time, don't use this constructor; use SimpleTimeZone(rawOffset, ID) instead. Normally, you should use TimeZone.createInstance() to create a <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> instead of creating a <a class="el" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a> directly with this constructor. </p>
<p>Various types of daylight-savings time rules can be specfied by using different values for startDay and startDayOfWeek and endDay and endDayOfWeek. For a complete explanation of how these parameters work, see the documentation for <a class="el" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>rawOffsetGMT</em>&nbsp;</td><td>The new SimpleTimeZone's raw GMT offset </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>ID</em>&nbsp;</td><td>The new SimpleTimeZone's time zone ID. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsStartMonth</em>&nbsp;</td><td>The daylight savings starting month. Month is 0-based. eg, 0 for January. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsStartDayOfWeekInMonth</em>&nbsp;</td><td>The daylight savings starting day-of-week-in-month. See <a class="el" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule()</a> for a complete explanation. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsStartDayOfWeek</em>&nbsp;</td><td>The daylight savings starting day-of-week. See <a class="el" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule()</a> for a complete explanation. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsStartTime</em>&nbsp;</td><td>The daylight savings starting time, expressed as the number of milliseconds after midnight. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsEndMonth</em>&nbsp;</td><td>The daylight savings ending month. Month is 0-based. eg, 0 for January. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsEndDayOfWeekInMonth</em>&nbsp;</td><td>The daylight savings ending day-of-week-in-month. See <a class="el" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule()</a> for a complete explanation. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsEndDayOfWeek</em>&nbsp;</td><td>The daylight savings ending day-of-week. See <a class="el" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule()</a> for a complete explanation. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsEndTime</em>&nbsp;</td><td>The daylight savings ending time, expressed as the number of milliseconds after midnight. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>An UErrorCode to receive the status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003078">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="aaa18174e81984d0c9692dc1f545d372e"></a><!-- doxytag: member="SimpleTimeZone::SimpleTimeZone" ref="aaa18174e81984d0c9692dc1f545d372e" args="(int32_t rawOffsetGMT, const UnicodeString &amp;ID, int8_t savingsStartMonth, int8_t savingsStartDayOfWeekInMonth, int8_t savingsStartDayOfWeek, int32_t savingsStartTime, int8_t savingsEndMonth, int8_t savingsEndDayOfWeekInMonth, int8_t savingsEndDayOfWeek, int32_t savingsEndTime, int32_t savingsDST, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SimpleTimeZone::SimpleTimeZone </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>rawOffsetGMT</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>ID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&nbsp;</td>
          <td class="paramname"> <em>savingsStartMonth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&nbsp;</td>
          <td class="paramname"> <em>savingsStartDayOfWeekInMonth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&nbsp;</td>
          <td class="paramname"> <em>savingsStartDayOfWeek</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>savingsStartTime</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&nbsp;</td>
          <td class="paramname"> <em>savingsEndMonth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&nbsp;</td>
          <td class="paramname"> <em>savingsEndDayOfWeekInMonth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&nbsp;</td>
          <td class="paramname"> <em>savingsEndDayOfWeek</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>savingsEndTime</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>savingsDST</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construct a <a class="el" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a> with the given raw GMT offset, time zone ID, and times to start and end daylight savings time. </p>
<p>To create a <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> that doesn't observe daylight savings time, don't use this constructor; use SimpleTimeZone(rawOffset, ID) instead. Normally, you should use TimeZone.createInstance() to create a <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> instead of creating a <a class="el" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a> directly with this constructor. </p>
<p>Various types of daylight-savings time rules can be specfied by using different values for startDay and startDayOfWeek and endDay and endDayOfWeek. For a complete explanation of how these parameters work, see the documentation for <a class="el" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>rawOffsetGMT</em>&nbsp;</td><td>The new SimpleTimeZone's raw GMT offset </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>ID</em>&nbsp;</td><td>The new SimpleTimeZone's time zone ID. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsStartMonth</em>&nbsp;</td><td>The daylight savings starting month. Month is 0-based. eg, 0 for January. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsStartDayOfWeekInMonth</em>&nbsp;</td><td>The daylight savings starting day-of-week-in-month. See <a class="el" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule()</a> for a complete explanation. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsStartDayOfWeek</em>&nbsp;</td><td>The daylight savings starting day-of-week. See <a class="el" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule()</a> for a complete explanation. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsStartTime</em>&nbsp;</td><td>The daylight savings starting time, expressed as the number of milliseconds after midnight. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsEndMonth</em>&nbsp;</td><td>The daylight savings ending month. Month is 0-based. eg, 0 for January. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsEndDayOfWeekInMonth</em>&nbsp;</td><td>The daylight savings ending day-of-week-in-month. See <a class="el" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule()</a> for a complete explanation. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsEndDayOfWeek</em>&nbsp;</td><td>The daylight savings ending day-of-week. See <a class="el" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule()</a> for a complete explanation. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsEndTime</em>&nbsp;</td><td>The daylight savings ending time, expressed as the number of milliseconds after midnight. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsDST</em>&nbsp;</td><td>The number of milliseconds added to standard time to get DST time. Default is one hour. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>An UErrorCode to receive the status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003079">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a0f3ca0f3f2813ae1bf8f50cdd96b9f0d"></a><!-- doxytag: member="SimpleTimeZone::SimpleTimeZone" ref="a0f3ca0f3f2813ae1bf8f50cdd96b9f0d" args="(int32_t rawOffsetGMT, const UnicodeString &amp;ID, int8_t savingsStartMonth, int8_t savingsStartDayOfWeekInMonth, int8_t savingsStartDayOfWeek, int32_t savingsStartTime, TimeMode savingsStartTimeMode, int8_t savingsEndMonth, int8_t savingsEndDayOfWeekInMonth, int8_t savingsEndDayOfWeek, int32_t savingsEndTime, TimeMode savingsEndTimeMode, int32_t savingsDST, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SimpleTimeZone::SimpleTimeZone </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>rawOffsetGMT</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>ID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&nbsp;</td>
          <td class="paramname"> <em>savingsStartMonth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&nbsp;</td>
          <td class="paramname"> <em>savingsStartDayOfWeekInMonth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&nbsp;</td>
          <td class="paramname"> <em>savingsStartDayOfWeek</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>savingsStartTime</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classSimpleTimeZone.html#aa0134e78ee3cc1d65ea434839d39158e">TimeMode</a>&nbsp;</td>
          <td class="paramname"> <em>savingsStartTimeMode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&nbsp;</td>
          <td class="paramname"> <em>savingsEndMonth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&nbsp;</td>
          <td class="paramname"> <em>savingsEndDayOfWeekInMonth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&nbsp;</td>
          <td class="paramname"> <em>savingsEndDayOfWeek</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>savingsEndTime</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classSimpleTimeZone.html#aa0134e78ee3cc1d65ea434839d39158e">TimeMode</a>&nbsp;</td>
          <td class="paramname"> <em>savingsEndTimeMode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>savingsDST</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construct a <a class="el" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a> with the given raw GMT offset, time zone ID, and times to start and end daylight savings time. </p>
<p>To create a <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> that doesn't observe daylight savings time, don't use this constructor; use SimpleTimeZone(rawOffset, ID) instead. Normally, you should use TimeZone.createInstance() to create a <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> instead of creating a <a class="el" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a> directly with this constructor. </p>
<p>Various types of daylight-savings time rules can be specfied by using different values for startDay and startDayOfWeek and endDay and endDayOfWeek. For a complete explanation of how these parameters work, see the documentation for <a class="el" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>rawOffsetGMT</em>&nbsp;</td><td>The new SimpleTimeZone's raw GMT offset </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>ID</em>&nbsp;</td><td>The new SimpleTimeZone's time zone ID. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsStartMonth</em>&nbsp;</td><td>The daylight savings starting month. Month is 0-based. eg, 0 for January. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsStartDayOfWeekInMonth</em>&nbsp;</td><td>The daylight savings starting day-of-week-in-month. See <a class="el" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule()</a> for a complete explanation. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsStartDayOfWeek</em>&nbsp;</td><td>The daylight savings starting day-of-week. See <a class="el" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule()</a> for a complete explanation. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsStartTime</em>&nbsp;</td><td>The daylight savings starting time, expressed as the number of milliseconds after midnight. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsStartTimeMode</em>&nbsp;</td><td>Whether the start time is local wall time, local standard time, or UTC time. Default is local wall time. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsEndMonth</em>&nbsp;</td><td>The daylight savings ending month. Month is 0-based. eg, 0 for January. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsEndDayOfWeekInMonth</em>&nbsp;</td><td>The daylight savings ending day-of-week-in-month. See <a class="el" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule()</a> for a complete explanation. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsEndDayOfWeek</em>&nbsp;</td><td>The daylight savings ending day-of-week. See <a class="el" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule()</a> for a complete explanation. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsEndTime</em>&nbsp;</td><td>The daylight savings ending time, expressed as the number of milliseconds after midnight. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsEndTimeMode</em>&nbsp;</td><td>Whether the end time is local wall time, local standard time, or UTC time. Default is local wall time. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>savingsDST</em>&nbsp;</td><td>The number of milliseconds added to standard time to get DST time. Default is one hour. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>An UErrorCode to receive the status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003080">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

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

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

<p>Implements <a class="el" href="classTimeZone.html#a35b23140b29f59560b12da3450289347">TimeZone</a>.</p>

</div>
</div>
<a class="anchor" id="a12f021f608389d82c0a9e23ca3fd7ad8"></a><!-- doxytag: member="SimpleTimeZone::countTransitionRules" ref="a12f021f608389d82c0a9e23ca3fd7ad8" args="(UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t SimpleTimeZone::countTransitionRules </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the number of <code><a class="el" href="classTimeZoneRule.html" title="TimeZoneRule is a class representing a rule for time zone.">TimeZoneRule</a></code>s which represents time transitions, for this time zone, that is, all <code><a class="el" href="classTimeZoneRule.html" title="TimeZoneRule is a class representing a rule for time zone.">TimeZoneRule</a></code>s for this time zone except <code><a class="el" href="classInitialTimeZoneRule.html" title="InitialTimeZoneRule represents a time zone rule representing a time zone effective...">InitialTimeZoneRule</a></code>. </p>
<p>The return value range is 0 or any positive value. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Receives error status code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The number of <code><a class="el" href="classTimeZoneRule.html" title="TimeZoneRule is a class representing a rule for time zone.">TimeZoneRule</a></code>s representing time transitions. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003107">Stable:</a></b></dt><dd>ICU 3.8 </dd></dl>

<p>Implements <a class="el" href="classBasicTimeZone.html#a6a24226cfc738d554a2a563021ccee28">BasicTimeZone</a>.</p>

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

<p>Returns the amount of time in ms that the clock is advanced during DST. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the number of milliseconds the time is advanced with respect to standard time when the daylight savings rules are in effect. A positive number, typically one hour (3600000). </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003101">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classTimeZone.html#ab6f2f5a872528bd8ab664378338deaad">TimeZone</a>.</p>

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

<p>Override <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> Returns a unique class ID POLYMORPHICALLY. </p>
<p>Pure virtual override. This method is to implement a simple version of RTTI, since not all C++ compilers support genuine RTTI. Polymorphic <a class="el" href="classSimpleTimeZone.html#ae20ce2575cc09a4153ded38027cfb9d1" title="Returns true if the two TimeZone objects are equal; that is, they have the same ID...">operator==()</a> and <a class="el" href="classSimpleTimeZone.html#aacbde413ecbc2c68811f1dde5143bd4c" title="Clones TimeZone objects polymorphically.">clone()</a> methods call this method.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The class ID for this object. All objects of a given class have the same class ID. Objects of other classes have different class IDs. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003109">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implements <a class="el" href="classTimeZone.html#a825e1474130ebcdfedc7ffa64c016220">TimeZone</a>.</p>

</div>
</div>
<a class="anchor" id="a28346f7486199f9b7c03ce229fa626af"></a><!-- doxytag: member="SimpleTimeZone::getNextTransition" ref="a28346f7486199f9b7c03ce229fa626af" args="(UDate base, UBool inclusive, TimeZoneTransition &amp;result)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> SimpleTimeZone::getNextTransition </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&nbsp;</td>
          <td class="paramname"> <em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td>
          <td class="paramname"> <em>inclusive</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classTimeZoneTransition.html">TimeZoneTransition</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><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the first time zone transition after the base time. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>base</em>&nbsp;</td><td>The base time. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>inclusive</em>&nbsp;</td><td>Whether the base time is inclusive or not. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td>Receives the first transition after the base time. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if the transition is found. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003105">Stable:</a></b></dt><dd>ICU 3.8 </dd></dl>

<p>Implements <a class="el" href="classBasicTimeZone.html#a7139f3be13450d9833717644227fd2e4">BasicTimeZone</a>.</p>

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

<p>Redeclared <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> method. </p>
<p>This implementation simply calls the base class method, which otherwise would be hidden. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003097">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl>

<p>Reimplemented from <a class="el" href="classTimeZone.html#af11878c114a8fe5885c28464716a8cb7">TimeZone</a>.</p>

<p>Definition at line <a class="el" href="simpletz_8h_source.html#l00918">918</a> of file <a class="el" href="simpletz_8h_source.html">simpletz.h</a>.</p>

<p>References <a class="el" href="classSimpleTimeZone.html#abc1b15b477116968f77a3c5ab9e85d32">getOffset()</a>.</p>

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

<p>Gets the time zone offset, for current date, modified in case of daylight savings. </p>
<p>This is the offset to add *to* UTC to get local time. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>era</em>&nbsp;</td><td>the era of the given date. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>year</em>&nbsp;</td><td>the year in the given date. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>month</em>&nbsp;</td><td>the month in the given date. Month is 0-based. e.g., 0 for January. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>day</em>&nbsp;</td><td>the day-in-month of the given date. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfWeek</em>&nbsp;</td><td>the day-of-week of the given date. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>milliseconds</em>&nbsp;</td><td>the millis in day in <em>standard</em> local time. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>monthLength</em>&nbsp;</td><td>the length of the given month in days. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>prevMonthLength</em>&nbsp;</td><td>length of the previous month in days. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>An UErrorCode to receive the status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the offset to add *to* GMT to get local time. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003096">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

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

<p>Gets the time zone offset, for current date, modified in case of daylight savings. </p>
<p>This is the offset to add *to* UTC to get local time. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>era</em>&nbsp;</td><td>the era of the given date. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>year</em>&nbsp;</td><td>the year in the given date. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>month</em>&nbsp;</td><td>the month in the given date. Month is 0-based. e.g., 0 for January. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>day</em>&nbsp;</td><td>the day-in-month of the given date. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfWeek</em>&nbsp;</td><td>the day-of-week of the given date. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>milliseconds</em>&nbsp;</td><td>the millis in day in <em>standard</em> local time. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>monthLength</em>&nbsp;</td><td>the length of the given month in days. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>An UErrorCode to receive the status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the offset to add *to* GMT to get local time. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003095">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implements <a class="el" href="classTimeZone.html#adfa3ff0693402eca3af43519fa88d520">TimeZone</a>.</p>

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

<p>Returns the TimeZone's adjusted GMT offset (i.e., the number of milliseconds to add to GMT to get local time in this time zone, taking daylight savings time into account) as of a particular reference date. </p>
<p>The reference date is used to determine whether daylight savings time is in effect and needs to be figured into the offset that is returned (in other words, what is the adjusted GMT offset in this time zone at this particular date and time?). For the time zones produced by <a class="el" href="classTimeZone.html#a11ffc5d14d3956478110909e6dca01b6" title="Creates a TimeZone for the given ID.">createTimeZone()</a>, the reference data is specified according to the Gregorian calendar, and the date and time fields are in GMT, NOT local time.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>era</em>&nbsp;</td><td>The reference date's era </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>year</em>&nbsp;</td><td>The reference date's year </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>month</em>&nbsp;</td><td>The reference date's month (0-based; 0 is January) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>day</em>&nbsp;</td><td>The reference date's day-in-month (1-based) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfWeek</em>&nbsp;</td><td>The reference date's day-of-week (1-based; 1 is Sunday) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>millis</em>&nbsp;</td><td>The reference date's milliseconds in day, UTT (NOT local time). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>An UErrorCode to receive the status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The offset in milliseconds to add to GMT to get local time. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003094">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implements <a class="el" href="classTimeZone.html#a017d9aeff3e3bbef824088d8fadeb800">TimeZone</a>.</p>

<p>Referenced by <a class="el" href="simpletz_8h_source.html#l00918">getOffset()</a>.</p>

</div>
</div>
<a class="anchor" id="a10614d3037247fb45b55f528bc0be440"></a><!-- doxytag: member="SimpleTimeZone::getOffsetFromLocal" ref="a10614d3037247fb45b55f528bc0be440" args="(UDate date, int32_t nonExistingTimeOpt, int32_t duplicatedTimeOpt, int32_t &amp;rawOffset, int32_t &amp;dstOffset, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void SimpleTimeZone::getOffsetFromLocal </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&nbsp;</td>
          <td class="paramname"> <em>date</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>nonExistingTimeOpt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>duplicatedTimeOpt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t &amp;&nbsp;</td>
          <td class="paramname"> <em>rawOffset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t &amp;&nbsp;</td>
          <td class="paramname"> <em>dstOffset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get time zone offsets from local wall time. </p>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000355">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Reimplemented from <a class="el" href="classBasicTimeZone.html#a4d84c1cdcdd96ae9ac75cdb9e04002fe">BasicTimeZone</a>.</p>

</div>
</div>
<a class="anchor" id="aa84042f21c3d095147b0e207f835deb9"></a><!-- doxytag: member="SimpleTimeZone::getPreviousTransition" ref="aa84042f21c3d095147b0e207f835deb9" args="(UDate base, UBool inclusive, TimeZoneTransition &amp;result)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> SimpleTimeZone::getPreviousTransition </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&nbsp;</td>
          <td class="paramname"> <em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td>
          <td class="paramname"> <em>inclusive</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classTimeZoneTransition.html">TimeZoneTransition</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><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the most recent time zone transition before the base time. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>base</em>&nbsp;</td><td>The base time. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>inclusive</em>&nbsp;</td><td>Whether the base time is inclusive or not. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td>Receives the most recent transition before the base time. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if the transition is found. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003106">Stable:</a></b></dt><dd>ICU 3.8 </dd></dl>

<p>Implements <a class="el" href="classBasicTimeZone.html#a8eb6e573592f43efdb497e20c7a34beb">BasicTimeZone</a>.</p>

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

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

<p>Implements <a class="el" href="classTimeZone.html#a8ad1d8e8ab11e48628ff5789d8d0170d">TimeZone</a>.</p>

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

<p>Return the class ID for this class. </p>
<p>This is useful only for comparing to a return value from <a class="el" href="classSimpleTimeZone.html#ad7c3df95d43756f22fdd97ab31c199bc" title="Override TimeZone Returns a unique class ID POLYMORPHICALLY.">getDynamicClassID()</a>. For example: </p>
<pre>
 .   Base* polymorphic_pointer = createPolymorphicObject();
 .   if (polymorphic_pointer-&gt;<a class="el" href="classSimpleTimeZone.html#ad7c3df95d43756f22fdd97ab31c199bc" title="Override TimeZone Returns a unique class ID POLYMORPHICALLY.">getDynamicClassID()</a> ==
 .       Derived::getStaticClassID()) ...
 </pre> <dl class="return"><dt><b>Returns:</b></dt><dd>The class ID for all objects of this class. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003110">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classTimeZone.html#a6089503a336da33a745c99ce9a03bc16">TimeZone</a>.</p>

</div>
</div>
<a class="anchor" id="a0e584a10d12226e32c0e4ea14a2ccd52"></a><!-- doxytag: member="SimpleTimeZone::getTimeZoneRules" ref="a0e584a10d12226e32c0e4ea14a2ccd52" args="(const InitialTimeZoneRule *&amp;initial, const TimeZoneRule *trsrules[], int32_t &amp;trscount, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void SimpleTimeZone::getTimeZoneRules </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classInitialTimeZoneRule.html">InitialTimeZoneRule</a> *&amp;&nbsp;</td>
          <td class="paramname"> <em>initial</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classTimeZoneRule.html">TimeZoneRule</a> *&nbsp;</td>
          <td class="paramname"> <em>trsrules</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t &amp;&nbsp;</td>
          <td class="paramname"> <em>trscount</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the <code><a class="el" href="classInitialTimeZoneRule.html" title="InitialTimeZoneRule represents a time zone rule representing a time zone effective...">InitialTimeZoneRule</a></code> and the set of <code><a class="el" href="classTimeZoneRule.html" title="TimeZoneRule is a class representing a rule for time zone.">TimeZoneRule</a></code> which represent time transitions for this time zone. </p>
<p>On successful return, the argument initial points to non-NULL <code><a class="el" href="classInitialTimeZoneRule.html" title="InitialTimeZoneRule represents a time zone rule representing a time zone effective...">InitialTimeZoneRule</a></code> and the array trsrules is filled with 0 or multiple <code><a class="el" href="classTimeZoneRule.html" title="TimeZoneRule is a class representing a rule for time zone.">TimeZoneRule</a></code> instances up to the size specified by trscount. The results are referencing the rule instance held by this time zone instance. Therefore, after this time zone is destructed, they are no longer available. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>initial</em>&nbsp;</td><td>Receives the initial timezone rule </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>trsrules</em>&nbsp;</td><td>Receives the timezone transition rules </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>trscount</em>&nbsp;</td><td>On input, specify the size of the array 'transitions' receiving the timezone transition rules. On output, actual number of rules filled in the array will be set. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Receives error status code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003108">Stable:</a></b></dt><dd>ICU 3.8 </dd></dl>

<p>Implements <a class="el" href="classBasicTimeZone.html#a4db4254a521bad3811df69ba032369fe">BasicTimeZone</a>.</p>

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

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

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

<p>Returns true if the given date is within the period when daylight savings time is in effect; false otherwise. </p>
<p>If the <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> doesn't observe daylight savings time, this functions always returns false. This method is wasteful since it creates a new <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> and deletes it each time it is called. This is a deprecated method and provided only for Java compatibility.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>date</em>&nbsp;</td><td>The date to test. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>An UErrorCode to receive the status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the given date is in Daylight Savings Time; false otherwise. </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000202">Deprecated:</a></b></dt><dd>ICU 2.4. Use <a class="el" href="classCalendar.html#a8199d459b6d2171fb62620fab29b8668" title="Queries if the current date for this Calendar is in Daylight Savings Time.">Calendar::inDaylightTime()</a> instead. </dd></dl>

<p>Implements <a class="el" href="classTimeZone.html#abb24bd8b13b6fdf6d123747084ecbd68">TimeZone</a>.</p>

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

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

<p>Reimplemented from <a class="el" href="classTimeZone.html#a2b67f0f38a5462a2096ce5e3c0b6890e">TimeZone</a>.</p>

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

<p>Returns true if the two <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> objects are equal; that is, they have the same ID, raw GMT offset, and DST rules. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>that</em>&nbsp;</td><td>The <a class="el" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a> object to be compared with. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if the given time zone is equal to this time zone; false otherwise. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003076">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a00c5c16531af810455ef7dac35fb23fa"></a><!-- doxytag: member="SimpleTimeZone::setDSTSavings" ref="a00c5c16531af810455ef7dac35fb23fa" args="(int32_t millisSavedDuringDST, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SimpleTimeZone::setDSTSavings </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>millisSavedDuringDST</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the amount of time in ms that the clock is advanced during DST. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>millisSavedDuringDST</em>&nbsp;</td><td>the number of milliseconds the time is advanced with respect to standard time when the daylight savings rules are in effect. A positive number, typically one hour (3600000). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>An UErrorCode to receive the status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003100">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a48e5aac89138621abd7fbac32c87c2e9"></a><!-- doxytag: member="SimpleTimeZone::setEndRule" ref="a48e5aac89138621abd7fbac32c87c2e9" args="(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, int32_t time, TimeMode mode, UBool after, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SimpleTimeZone::setEndRule </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>dayOfMonth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>dayOfWeek</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>time</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classSimpleTimeZone.html#aa0134e78ee3cc1d65ea434839d39158e">TimeMode</a>&nbsp;</td>
          <td class="paramname"> <em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td>
          <td class="paramname"> <em>after</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the DST end rule to a weekday before or after a give date within a month, e.g., the first Monday on or after the 8th. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>month</em>&nbsp;</td><td>The month in which this rule occurs (0-based). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfMonth</em>&nbsp;</td><td>A date within that month (1-based). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfWeek</em>&nbsp;</td><td>The day of the week on which this rule occurs. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>time</em>&nbsp;</td><td>The time of that day (number of millis after midnight) when DST ends in local wall time, which is daylight time in this case. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>mode</em>&nbsp;</td><td>whether the time is local wall time, local standard time, or UTC time. Default is local wall time. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>after</em>&nbsp;</td><td>If true, this rule selects the first dayOfWeek on or after dayOfMonth. If false, this rule selects the last dayOfWeek on or before dayOfMonth. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>An UErrorCode </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003093">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="afd814ed5b3e6dec7d9713b1f29e7652e"></a><!-- doxytag: member="SimpleTimeZone::setEndRule" ref="afd814ed5b3e6dec7d9713b1f29e7652e" args="(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, int32_t time, UBool after, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SimpleTimeZone::setEndRule </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>dayOfMonth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>dayOfWeek</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>time</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td>
          <td class="paramname"> <em>after</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the DST end rule to a weekday before or after a give date within a month, e.g., the first Monday on or after the 8th. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>month</em>&nbsp;</td><td>The month in which this rule occurs (0-based). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfMonth</em>&nbsp;</td><td>A date within that month (1-based). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfWeek</em>&nbsp;</td><td>The day of the week on which this rule occurs. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>time</em>&nbsp;</td><td>The time of that day (number of millis after midnight) when DST ends in local wall time, which is daylight time in this case. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>after</em>&nbsp;</td><td>If true, this rule selects the first dayOfWeek on or after dayOfMonth. If false, this rule selects the last dayOfWeek on or before dayOfMonth. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>An UErrorCode </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003092">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="simpletz_8h_source.html#l00912">912</a> of file <a class="el" href="simpletz_8h_source.html">simpletz.h</a>.</p>

<p>References <a class="el" href="simpletz_8h_source.html#l00901">setEndRule()</a>.</p>

</div>
</div>
<a class="anchor" id="ab28dc36158d3f987abde313eed0fd3f2"></a><!-- doxytag: member="SimpleTimeZone::setEndRule" ref="ab28dc36158d3f987abde313eed0fd3f2" args="(int32_t month, int32_t dayOfMonth, int32_t time, TimeMode mode, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SimpleTimeZone::setEndRule </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>dayOfMonth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>time</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classSimpleTimeZone.html#aa0134e78ee3cc1d65ea434839d39158e">TimeMode</a>&nbsp;</td>
          <td class="paramname"> <em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the DST end rule to a fixed date within a month. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>month</em>&nbsp;</td><td>The month in which this rule occurs (0-based). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfMonth</em>&nbsp;</td><td>The date in that month (1-based). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>time</em>&nbsp;</td><td>The time of that day (number of millis after midnight) when DST ends in local wall time, which is daylight time in this case. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>mode</em>&nbsp;</td><td>whether the time is local wall time, local standard time, or UTC time. Default is local wall time. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>An UErrorCode </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003091">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a74dd5abdc15565cde82c64354b9897a2"></a><!-- doxytag: member="SimpleTimeZone::setEndRule" ref="a74dd5abdc15565cde82c64354b9897a2" args="(int32_t month, int32_t dayOfMonth, int32_t time, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SimpleTimeZone::setEndRule </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>dayOfMonth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>time</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the DST end rule to a fixed date within a month. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>month</em>&nbsp;</td><td>The month in which this rule occurs (0-based). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfMonth</em>&nbsp;</td><td>The date in that month (1-based). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>time</em>&nbsp;</td><td>The time of that day (number of millis after midnight) when DST ends in local wall time, which is daylight time in this case. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>An UErrorCode </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003090">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="simpletz_8h_source.html#l00907">907</a> of file <a class="el" href="simpletz_8h_source.html">simpletz.h</a>.</p>

<p>References <a class="el" href="simpletz_8h_source.html#l00901">setEndRule()</a>.</p>

</div>
</div>
<a class="anchor" id="aa431708879d771b0a9db6a885c6b9636"></a><!-- doxytag: member="SimpleTimeZone::setEndRule" ref="aa431708879d771b0a9db6a885c6b9636" args="(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, int32_t time, TimeMode mode, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SimpleTimeZone::setEndRule </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>dayOfWeekInMonth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>dayOfWeek</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>time</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classSimpleTimeZone.html#aa0134e78ee3cc1d65ea434839d39158e">TimeMode</a>&nbsp;</td>
          <td class="paramname"> <em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the daylight savings ending rule. </p>
<p>For example, if Daylight Savings Time ends at the last (-1) Sunday in October, at 2 AM in standard time. Therefore, you can set the end rule by calling: </p>
<pre>
    setEndRule(UCAL_OCTOBER, -1, UCAL_SUNDAY, 2*60*60*1000);
 </pre><p> Various other types of rules can be specified by manipulating the dayOfWeek and dayOfWeekInMonth parameters. For complete details, see the documentation for <a class="el" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>month</em>&nbsp;</td><td>the daylight savings ending month. Month is 0-based. eg, 0 for January. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfWeekInMonth</em>&nbsp;</td><td>the daylight savings ending day-of-week-in-month. See <a class="el" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule()</a> for a complete explanation. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfWeek</em>&nbsp;</td><td>the daylight savings ending day-of-week. See <a class="el" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule()</a> for a complete explanation. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>time</em>&nbsp;</td><td>the daylight savings ending time. Please see the member description for an example. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>mode</em>&nbsp;</td><td>whether the time is local wall time, local standard time, or UTC time. Default is local wall time. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>An UErrorCode </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003089">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="ae2eee23700f7405a563cf01e3cedd797"></a><!-- doxytag: member="SimpleTimeZone::setEndRule" ref="ae2eee23700f7405a563cf01e3cedd797" args="(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, int32_t time, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SimpleTimeZone::setEndRule </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>dayOfWeekInMonth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>dayOfWeek</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>time</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the daylight savings ending rule. </p>
<p>For example, if Daylight Savings Time ends at the last (-1) Sunday in October, at 2 AM in standard time. Therefore, you can set the end rule by calling: </p>
<pre>
    setEndRule(UCAL_OCTOBER, -1, UCAL_SUNDAY, 2*60*60*1000);
 </pre><p> Various other types of rules can be specified by manipulating the dayOfWeek and dayOfWeekInMonth parameters. For complete details, see the documentation for <a class="el" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>month</em>&nbsp;</td><td>the daylight savings ending month. Month is 0-based. eg, 0 for January. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfWeekInMonth</em>&nbsp;</td><td>the daylight savings ending day-of-week-in-month. See <a class="el" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule()</a> for a complete explanation. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfWeek</em>&nbsp;</td><td>the daylight savings ending day-of-week. See <a class="el" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule()</a> for a complete explanation. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>time</em>&nbsp;</td><td>the daylight savings ending time. Please see the member description for an example. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>An UErrorCode </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003088">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="simpletz_8h_source.html#l00901">901</a> of file <a class="el" href="simpletz_8h_source.html">simpletz.h</a>.</p>

<p>Referenced by <a class="el" href="simpletz_8h_source.html#l00907">setEndRule()</a>.</p>

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

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

<p>Implements <a class="el" href="classTimeZone.html#aa10a9a17184453e742bab37a99efb84e">TimeZone</a>.</p>

</div>
</div>
<a class="anchor" id="a2c18c26fb0161b4c8f2bcedabbabe32c"></a><!-- doxytag: member="SimpleTimeZone::setStartRule" ref="a2c18c26fb0161b4c8f2bcedabbabe32c" args="(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, int32_t time, TimeMode mode, UBool after, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SimpleTimeZone::setStartRule </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>dayOfMonth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>dayOfWeek</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>time</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classSimpleTimeZone.html#aa0134e78ee3cc1d65ea434839d39158e">TimeMode</a>&nbsp;</td>
          <td class="paramname"> <em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td>
          <td class="paramname"> <em>after</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the DST start rule to a weekday before or after a give date within a month, e.g., the first Monday on or after the 8th. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>month</em>&nbsp;</td><td>The month in which this rule occurs (0-based). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfMonth</em>&nbsp;</td><td>A date within that month (1-based). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfWeek</em>&nbsp;</td><td>The day of the week on which this rule occurs. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>time</em>&nbsp;</td><td>The time of that day (number of millis after midnight) when DST takes effect in local wall time, which is standard time in this case. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>mode</em>&nbsp;</td><td>whether the time is local wall time, local standard time, or UTC time. Default is local wall time. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>after</em>&nbsp;</td><td>If true, this rule selects the first dayOfWeek on or after dayOfMonth. If false, this rule selects the last dayOfWeek on or before dayOfMonth. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>An UErrorCode </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003087">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a660bbd9cb4ac87a081aa9a31e46e651c"></a><!-- doxytag: member="SimpleTimeZone::setStartRule" ref="a660bbd9cb4ac87a081aa9a31e46e651c" args="(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, int32_t time, UBool after, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SimpleTimeZone::setStartRule </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>dayOfMonth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>dayOfWeek</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>time</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td>
          <td class="paramname"> <em>after</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the DST start rule to a weekday before or after a give date within a month, e.g., the first Monday on or after the 8th. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>month</em>&nbsp;</td><td>The month in which this rule occurs (0-based). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfMonth</em>&nbsp;</td><td>A date within that month (1-based). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfWeek</em>&nbsp;</td><td>The day of the week on which this rule occurs. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>time</em>&nbsp;</td><td>The time of that day (number of millis after midnight) when DST takes effect in local wall time, which is standard time in this case. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>after</em>&nbsp;</td><td>If true, this rule selects the first dayOfWeek on or after dayOfMonth. If false, this rule selects the last dayOfWeek on or before dayOfMonth. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>An UErrorCode </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003086">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="simpletz_8h_source.html#l00895">895</a> of file <a class="el" href="simpletz_8h_source.html">simpletz.h</a>.</p>

<p>References <a class="el" href="simpletz_8h_source.html#l00883">setStartRule()</a>.</p>

</div>
</div>
<a class="anchor" id="a951c1606e4adf4025d44ad3be71195d2"></a><!-- doxytag: member="SimpleTimeZone::setStartRule" ref="a951c1606e4adf4025d44ad3be71195d2" args="(int32_t month, int32_t dayOfMonth, int32_t time, TimeMode mode, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SimpleTimeZone::setStartRule </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>dayOfMonth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>time</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classSimpleTimeZone.html#aa0134e78ee3cc1d65ea434839d39158e">TimeMode</a>&nbsp;</td>
          <td class="paramname"> <em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the DST start rule to a fixed date within a month. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>month</em>&nbsp;</td><td>The month in which this rule occurs (0-based). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfMonth</em>&nbsp;</td><td>The date in that month (1-based). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>time</em>&nbsp;</td><td>The time of that day (number of millis after midnight) when DST takes effect in local wall time, which is standard time in this case. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>mode</em>&nbsp;</td><td>whether the time is local wall time, local standard time, or UTC time. Default is local wall time. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>An UErrorCode </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003085">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a804b78f9d989933d8f01e7da8d847a78"></a><!-- doxytag: member="SimpleTimeZone::setStartRule" ref="a804b78f9d989933d8f01e7da8d847a78" args="(int32_t month, int32_t dayOfMonth, int32_t time, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SimpleTimeZone::setStartRule </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>dayOfMonth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>time</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the DST start rule to a fixed date within a month. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>month</em>&nbsp;</td><td>The month in which this rule occurs (0-based). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfMonth</em>&nbsp;</td><td>The date in that month (1-based). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>time</em>&nbsp;</td><td>The time of that day (number of millis after midnight) when DST takes effect in local wall time, which is standard time in this case. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>An UErrorCode </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003084">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="simpletz_8h_source.html#l00889">889</a> of file <a class="el" href="simpletz_8h_source.html">simpletz.h</a>.</p>

<p>References <a class="el" href="simpletz_8h_source.html#l00883">setStartRule()</a>.</p>

</div>
</div>
<a class="anchor" id="a2fc33e164ee7cc61978ad97fa9160605"></a><!-- doxytag: member="SimpleTimeZone::setStartRule" ref="a2fc33e164ee7cc61978ad97fa9160605" args="(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, int32_t time, TimeMode mode, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SimpleTimeZone::setStartRule </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>dayOfWeekInMonth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>dayOfWeek</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>time</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classSimpleTimeZone.html#aa0134e78ee3cc1d65ea434839d39158e">TimeMode</a>&nbsp;</td>
          <td class="paramname"> <em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the daylight savings starting rule. </p>
<p>For example, in the U.S., Daylight Savings Time starts at the second Sunday in March, at 2 AM in standard time. Therefore, you can set the start rule by calling: setStartRule(UCAL_MARCH, 2, UCAL_SUNDAY, 2*60*60*1000); The dayOfWeekInMonth and dayOfWeek parameters together specify how to calculate the exact starting date. Their exact meaning depend on their respective signs, allowing various types of rules to be constructed, as follows: </p>
<ul>
<li>
If both dayOfWeekInMonth and dayOfWeek are positive, they specify the day of week in the month (e.g., (2, WEDNESDAY) is the second Wednesday of the month). </li>
<li>
If dayOfWeek is positive and dayOfWeekInMonth is negative, they specify the day of week in the month counting backward from the end of the month. (e.g., (-1, MONDAY) is the last Monday in the month) </li>
<li>
If dayOfWeek is zero and dayOfWeekInMonth is positive, dayOfWeekInMonth specifies the day of the month, regardless of what day of the week it is. (e.g., (10, 0) is the tenth day of the month) </li>
<li>
If dayOfWeek is zero and dayOfWeekInMonth is negative, dayOfWeekInMonth specifies the day of the month counting backward from the end of the month, regardless of what day of the week it is (e.g., (-2, 0) is the next-to-last day of the month). </li>
<li>
If dayOfWeek is negative and dayOfWeekInMonth is positive, they specify the first specified day of the week on or after the specfied day of the month. (e.g., (15, -SUNDAY) is the first Sunday after the 15th of the month [or the 15th itself if the 15th is a Sunday].) </li>
<li>
If dayOfWeek and DayOfWeekInMonth are both negative, they specify the last specified day of the week on or before the specified day of the month. (e.g., (-20, -TUESDAY) is the last Tuesday before the 20th of the month [or the 20th itself if the 20th is a Tuesday].) </li>
</ul>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>month</em>&nbsp;</td><td>the daylight savings starting month. Month is 0-based. eg, 0 for January. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfWeekInMonth</em>&nbsp;</td><td>the daylight savings starting day-of-week-in-month. Please see the member description for an example. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfWeek</em>&nbsp;</td><td>the daylight savings starting day-of-week. Please see the member description for an example. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>time</em>&nbsp;</td><td>the daylight savings starting time. Please see the member description for an example. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>mode</em>&nbsp;</td><td>whether the time is local wall time, local standard time, or UTC time. Default is local wall time. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>An UErrorCode </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003083">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a8c4a9581b04860da2c1cee479a47f196"></a><!-- doxytag: member="SimpleTimeZone::setStartRule" ref="a8c4a9581b04860da2c1cee479a47f196" args="(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, int32_t time, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SimpleTimeZone::setStartRule </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>dayOfWeekInMonth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>dayOfWeek</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>time</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the daylight savings starting rule. </p>
<p>For example, in the U.S., Daylight Savings Time starts at the second Sunday in March, at 2 AM in standard time. Therefore, you can set the start rule by calling: setStartRule(UCAL_MARCH, 2, UCAL_SUNDAY, 2*60*60*1000); The dayOfWeekInMonth and dayOfWeek parameters together specify how to calculate the exact starting date. Their exact meaning depend on their respective signs, allowing various types of rules to be constructed, as follows: </p>
<ul>
<li>
If both dayOfWeekInMonth and dayOfWeek are positive, they specify the day of week in the month (e.g., (2, WEDNESDAY) is the second Wednesday of the month). </li>
<li>
If dayOfWeek is positive and dayOfWeekInMonth is negative, they specify the day of week in the month counting backward from the end of the month. (e.g., (-1, MONDAY) is the last Monday in the month) </li>
<li>
If dayOfWeek is zero and dayOfWeekInMonth is positive, dayOfWeekInMonth specifies the day of the month, regardless of what day of the week it is. (e.g., (10, 0) is the tenth day of the month) </li>
<li>
If dayOfWeek is zero and dayOfWeekInMonth is negative, dayOfWeekInMonth specifies the day of the month counting backward from the end of the month, regardless of what day of the week it is (e.g., (-2, 0) is the next-to-last day of the month). </li>
<li>
If dayOfWeek is negative and dayOfWeekInMonth is positive, they specify the first specified day of the week on or after the specfied day of the month. (e.g., (15, -SUNDAY) is the first Sunday after the 15th of the month [or the 15th itself if the 15th is a Sunday].) </li>
<li>
If dayOfWeek and DayOfWeekInMonth are both negative, they specify the last specified day of the week on or before the specified day of the month. (e.g., (-20, -TUESDAY) is the last Tuesday before the 20th of the month [or the 20th itself if the 20th is a Tuesday].) </li>
</ul>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>month</em>&nbsp;</td><td>the daylight savings starting month. Month is 0-based. eg, 0 for January. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfWeekInMonth</em>&nbsp;</td><td>the daylight savings starting day-of-week-in-month. Please see the member description for an example. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfWeek</em>&nbsp;</td><td>the daylight savings starting day-of-week. Please see the member description for an example. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>time</em>&nbsp;</td><td>the daylight savings starting time. Please see the member description for an example. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>An UErrorCode </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003082">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="simpletz_8h_source.html#l00883">883</a> of file <a class="el" href="simpletz_8h_source.html">simpletz.h</a>.</p>

<p>Referenced by <a class="el" href="simpletz_8h_source.html#l00889">setStartRule()</a>.</p>

</div>
</div>
<a class="anchor" id="a8e1229e930e04c19ece39572a500da89"></a><!-- doxytag: member="SimpleTimeZone::setStartYear" ref="a8e1229e930e04c19ece39572a500da89" args="(int32_t year)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SimpleTimeZone::setStartYear </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>year</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the daylight savings starting year, that is, the year this time zone began observing its specified daylight savings time rules. </p>
<p>The time zone is considered not to observe daylight savings time prior to that year; <a class="el" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a> doesn't support historical daylight-savings-time rules. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>year</em>&nbsp;</td><td>the daylight savings starting year. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003081">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

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

<p>Queries if this <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> uses Daylight Savings Time. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if this <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> uses Daylight Savings Time; false otherwise. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003102">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implements <a class="el" href="classTimeZone.html#a075576d70d80a056b9b9f8ef39acafee">TimeZone</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="simpletz_8h_source.html">simpletz.h</a></li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&nbsp;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"/><address style="text-align: right;"><small>Generated on 16 Mar 2010 for ICU 4.4 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>