Sophie

Sophie

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

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: Calendar 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>Calendar Class Reference</h1><!-- doxytag: class="Calendar" --><!-- doxytag: inherits="UObject" -->
<p><code><a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a></code> is an abstract base class for converting between a <code>UDate</code> object and a set of integer fields such as <code>YEAR</code>, <code>MONTH</code>, <code>DAY</code>, <code>HOUR</code>, and so on.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="calendar_8h_source.html">calendar.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Calendar:</div>
<div class="dynsection">
 <div class="center">
  <img src="classCalendar.gif" usemap="#Calendar_map" alt=""/>
  <map id="Calendar_map" name="Calendar_map">
<area href="classUObject.html" alt="UObject" shape="rect" coords="0,56,121,80"/>
<area href="classUMemory.html" alt="UMemory" shape="rect" coords="0,0,121,24"/>
<area href="classGregorianCalendar.html" alt="GregorianCalendar" shape="rect" coords="0,168,121,192"/>
</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="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a> { <br/>
&nbsp;&nbsp;<b>ERA</b>, 
<b>YEAR</b>, 
<b>MONTH</b>, 
<b>WEEK_OF_YEAR</b>, 
<br/>
&nbsp;&nbsp;<b>WEEK_OF_MONTH</b>, 
<b>DATE</b>, 
<b>DAY_OF_YEAR</b>, 
<b>DAY_OF_WEEK</b>, 
<br/>
&nbsp;&nbsp;<b>DAY_OF_WEEK_IN_MONTH</b>, 
<b>AM_PM</b>, 
<b>HOUR</b>, 
<b>HOUR_OF_DAY</b>, 
<br/>
&nbsp;&nbsp;<b>MINUTE</b>, 
<b>SECOND</b>, 
<b>MILLISECOND</b>, 
<b>ZONE_OFFSET</b>, 
<br/>
&nbsp;&nbsp;<b>DST_OFFSET</b>, 
<b>YEAR_WOY</b>, 
<b>DOW_LOCAL</b>, 
<b>EXTENDED_YEAR</b>, 
<br/>
&nbsp;&nbsp;<b>JULIAN_DAY</b>, 
<b>MILLISECONDS_IN_DAY</b>, 
<b>IS_LEAP_MONTH</b>, 
<b>FIELD_COUNT</b> =  UCAL_FIELD_COUNT
<br/>
 }</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><p>Field IDs for date and time. </p>
 <a href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a28d5c395b3200c812950321637796aa4">EDaysOfWeek</a> { <br/>
&nbsp;&nbsp;<b>SUNDAY</b> =  1, 
<b>MONDAY</b>, 
<b>TUESDAY</b>, 
<b>WEDNESDAY</b>, 
<br/>
&nbsp;&nbsp;<b>THURSDAY</b>, 
<b>FRIDAY</b>, 
<b>SATURDAY</b>
<br/>
 }</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><p>Useful constant for days of week. </p>
 <a href="classCalendar.html#a28d5c395b3200c812950321637796aa4">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a26f00f1507a3dd73ba4553b6e04d8313">EMonths</a> { <br/>
&nbsp;&nbsp;<b>JANUARY</b>, 
<b>FEBRUARY</b>, 
<b>MARCH</b>, 
<b>APRIL</b>, 
<br/>
&nbsp;&nbsp;<b>MAY</b>, 
<b>JUNE</b>, 
<b>JULY</b>, 
<b>AUGUST</b>, 
<br/>
&nbsp;&nbsp;<b>SEPTEMBER</b>, 
<b>OCTOBER</b>, 
<b>NOVEMBER</b>, 
<b>DECEMBER</b>, 
<br/>
&nbsp;&nbsp;<b>UNDECIMBER</b>
<br/>
 }</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><p>Useful constants for month. </p>
 <a href="classCalendar.html#a26f00f1507a3dd73ba4553b6e04d8313">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#ab68462e2ea07c44eaa88265c8c80ed28">EAmpm</a> { <b>AM</b>, 
<b>PM</b>
 }</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><p>Useful constants for hour in 12-hour clock. </p>
 <a href="classCalendar.html#ab68462e2ea07c44eaa88265c8c80ed28">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a3d5422cc908f8666dd295f4f25a793e1">~Calendar</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">destructor  <a href="#a3d5422cc908f8666dd295f4f25a793e1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classCalendar.html">Calendar</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a369327438e076e64c99ec1d669919957">clone</a> (void) const =0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create and return a polymorphic copy of this calendar.  <a href="#a369327438e076e64c99ec1d669919957"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a84d108d140a43b019c3ab3d022d7c68b">getTime</a> (<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 this Calendar's time as milliseconds.  <a href="#a84d108d140a43b019c3ab3d022d7c68b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a4b918629b9bfd29e888f5ab933bd0b9b">setTime</a> (<a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> date, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets this Calendar's current time with the given UDate.  <a href="#a4b918629b9bfd29e888f5ab933bd0b9b"></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="classCalendar.html#aa231d324e53576d3198a0aedd129f3ad">operator==</a> (const <a class="el" href="classCalendar.html">Calendar</a> &amp;that) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compares the equality of two <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> objects.  <a href="#aa231d324e53576d3198a0aedd129f3ad"></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="classCalendar.html#ab35bae6d03802181b0b529955126c6f0">operator!=</a> (const <a class="el" href="classCalendar.html">Calendar</a> &amp;that) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compares the inequality of two <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> objects.  <a href="#ab35bae6d03802181b0b529955126c6f0"></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="classCalendar.html#a50ab4c5aa1f93959282c71de04625935">isEquivalentTo</a> (const <a class="el" href="classCalendar.html">Calendar</a> &amp;other) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns TRUE if the given <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> object is equivalent to this one.  <a href="#a50ab4c5aa1f93959282c71de04625935"></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="classCalendar.html#a3ed5a35ec465912fed9e8ed90992cdc9">equals</a> (const <a class="el" href="classCalendar.html">Calendar</a> &amp;when, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compares the <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> time, whereas <a class="el" href="classCalendar.html#aa231d324e53576d3198a0aedd129f3ad" title="Compares the equality of two Calendar objects.">Calendar::operator==</a> compares the equality of <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> objects.  <a href="#a3ed5a35ec465912fed9e8ed90992cdc9"></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="classCalendar.html#a46f47197740b6ea80d81743ec3af3fab">before</a> (const <a class="el" href="classCalendar.html">Calendar</a> &amp;when, <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 this Calendar's current time is before "when"'s current time.  <a href="#a46f47197740b6ea80d81743ec3af3fab"></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="classCalendar.html#a2ca85aeccfad737241317ad4a3571926">after</a> (const <a class="el" href="classCalendar.html">Calendar</a> &amp;when, <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 this Calendar's current time is after "when"'s current time.  <a href="#a2ca85aeccfad737241317ad4a3571926"></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="classCalendar.html#a4c480d382487d1f05b717dbd310515b3">add</a> (<a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a> field, int32_t amount, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">UDate Arithmetic function.  <a href="#a4c480d382487d1f05b717dbd310515b3"></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="classCalendar.html#a743c11819bc8823ece3d7ee9260f174f">add</a> (<a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> field, int32_t amount, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">UDate Arithmetic function.  <a href="#a743c11819bc8823ece3d7ee9260f174f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a98e5b80bb733a6e8dec95b8ac0225a68">roll</a> (<a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a> field, <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> up, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Time Field Rolling function.  <a href="#a98e5b80bb733a6e8dec95b8ac0225a68"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a1a95a3e423d17c1f415bc39b75cf77d2">roll</a> (<a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> field, <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> up, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Time Field Rolling function.  <a href="#a1a95a3e423d17c1f415bc39b75cf77d2"></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="classCalendar.html#abff9f8c5e0b0206b9312e64a0ff89666">roll</a> (<a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a> field, int32_t amount, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Time Field Rolling function.  <a href="#abff9f8c5e0b0206b9312e64a0ff89666"></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="classCalendar.html#a5d5aa7348953398da594654c3edbb681">roll</a> (<a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> field, int32_t amount, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Time Field Rolling function.  <a href="#a5d5aa7348953398da594654c3edbb681"></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="classCalendar.html#a6cf48d67d31ee09a3ed5c6064a64e4cd">fieldDifference</a> (<a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> when, <a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a> field, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the difference between the given time and the time this calendar object is set to.  <a href="#a6cf48d67d31ee09a3ed5c6064a64e4cd"></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="classCalendar.html#a1a735b5e3c69f937e58dbb58c1ec50bd">fieldDifference</a> (<a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> when, <a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> field, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the difference between the given time and the time this calendar object is set to.  <a href="#a1a735b5e3c69f937e58dbb58c1ec50bd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#af018c3a61cec42d055e320c1ff1d4292">adoptTimeZone</a> (<a class="el" href="classTimeZone.html">TimeZone</a> *value)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the calendar's time zone to be the one passed in.  <a href="#af018c3a61cec42d055e320c1ff1d4292"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a26bbb988eecad26152a26c5b6aa183ef">setTimeZone</a> (const <a class="el" href="classTimeZone.html">TimeZone</a> &amp;zone)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the calendar's time zone to be the same as the one passed in.  <a href="#a26bbb988eecad26152a26c5b6aa183ef"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classTimeZone.html">TimeZone</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a1ef5c22031d5899ffbedc7032d892087">getTimeZone</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a reference to the time zone owned by this calendar.  <a href="#a1ef5c22031d5899ffbedc7032d892087"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTimeZone.html">TimeZone</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a0d42eafa6a420463fa981aa34a3a6150">orphanTimeZone</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the time zone owned by this calendar.  <a href="#a0d42eafa6a420463fa981aa34a3a6150"></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="classCalendar.html#a8199d459b6d2171fb62620fab29b8668">inDaylightTime</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const =0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Queries if the current date for this <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> is in Daylight Savings Time.  <a href="#a8199d459b6d2171fb62620fab29b8668"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a7d4084cd44bc04497309e01c161f45ee">setLenient</a> (<a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> lenient)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Specifies whether or not date/time interpretation is to be lenient.  <a href="#a7d4084cd44bc04497309e01c161f45ee"></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="classCalendar.html#a183d1b14292fe017fc206a80e6734db9">isLenient</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Tells whether date/time interpretation is to be lenient.  <a href="#a183d1b14292fe017fc206a80e6734db9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#ab7df065eb046cd863eb201fc56b0429e">setFirstDayOfWeek</a> (<a class="el" href="classCalendar.html#a28d5c395b3200c812950321637796aa4">EDaysOfWeek</a> value)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets what the first day of the week is; e.g., Sunday in US, Monday in France.  <a href="#ab7df065eb046cd863eb201fc56b0429e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#ad304c4129e472a106b4027ac78aa09b8">setFirstDayOfWeek</a> (<a class="el" href="ucal_8h.html#a62d9fe551bd48e4141fce52b917119a4">UCalendarDaysOfWeek</a> value)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets what the first day of the week is; e.g., Sunday in US, Monday in France.  <a href="#ad304c4129e472a106b4027ac78aa09b8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCalendar.html#a28d5c395b3200c812950321637796aa4">EDaysOfWeek</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a0a8bdc7ffb9d13e948ef0268dbdddc26">getFirstDayOfWeek</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets what the first day of the week is; e.g., Sunday in US, Monday in France.  <a href="#a0a8bdc7ffb9d13e948ef0268dbdddc26"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="ucal_8h.html#a62d9fe551bd48e4141fce52b917119a4">UCalendarDaysOfWeek</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a063ed9d458f2ab4fd0f4e40ab7d81307">getFirstDayOfWeek</a> (<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 what the first day of the week is; e.g., Sunday in US, Monday in France.  <a href="#a063ed9d458f2ab4fd0f4e40ab7d81307"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#ad3c13b061c7ed103d6b31ac08a9026a6">setMinimalDaysInFirstWeek</a> (uint8_t value)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets what the minimal days required in the first week of the year are; For example, if the first week is defined as one that contains the first day of the first month of a year, call the method with value 1.  <a href="#ad3c13b061c7ed103d6b31ac08a9026a6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#ac39fb4eea23b9ea863ac3119913a3322">getMinimalDaysInFirstWeek</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets what the minimal days required in the first week of the year are; e.g., if the first week is defined as one that contains the first day of the first month of a year, getMinimalDaysInFirstWeek returns 1.  <a href="#ac39fb4eea23b9ea863ac3119913a3322"></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="classCalendar.html#a2c0793eb4f9ff0fc0cc1313188ee203a">getMinimum</a> (<a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a> field) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the minimum value for the given time field.  <a href="#a2c0793eb4f9ff0fc0cc1313188ee203a"></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="classCalendar.html#a3b36ad1a0ae8cc44faf2062971c54dad">getMinimum</a> (<a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> field) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the minimum value for the given time field.  <a href="#a3b36ad1a0ae8cc44faf2062971c54dad"></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="classCalendar.html#ac751035e7d9e6e744edc7d92fd471a4f">getMaximum</a> (<a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a> field) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the maximum value for the given time field.  <a href="#ac751035e7d9e6e744edc7d92fd471a4f"></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="classCalendar.html#a53ddf6470cb971f44d501a097ca52e7e">getMaximum</a> (<a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> field) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the maximum value for the given time field.  <a href="#a53ddf6470cb971f44d501a097ca52e7e"></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="classCalendar.html#a5b6cbd4db4fbfa4fb686689e70633265">getGreatestMinimum</a> (<a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a> field) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the highest minimum value for the given field if varies.  <a href="#a5b6cbd4db4fbfa4fb686689e70633265"></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="classCalendar.html#a82e27703afb741739d0505b58d6860df">getGreatestMinimum</a> (<a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> field) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the highest minimum value for the given field if varies.  <a href="#a82e27703afb741739d0505b58d6860df"></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="classCalendar.html#aacf8382337e234b96bfe4e470dcc4817">getLeastMaximum</a> (<a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a> field) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the lowest maximum value for the given field if varies.  <a href="#aacf8382337e234b96bfe4e470dcc4817"></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="classCalendar.html#a053ab977d86c1a7256ccf59e13e87d88">getLeastMaximum</a> (<a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> field) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the lowest maximum value for the given field if varies.  <a href="#a053ab977d86c1a7256ccf59e13e87d88"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a4e67d27df4e1579ce031de5e6ea05a2e">getActualMinimum</a> (<a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a> field, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the minimum value that this field could have, given the current date.  <a href="#a4e67d27df4e1579ce031de5e6ea05a2e"></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="classCalendar.html#affad02342fc829b1cb623698a57a1917">getActualMinimum</a> (<a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> field, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the minimum value that this field could have, given the current date.  <a href="#affad02342fc829b1cb623698a57a1917"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a62c65424820ca64e850b346212eb35a7">getActualMaximum</a> (<a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a> field, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the maximum value that this field could have, given the current date.  <a href="#a62c65424820ca64e850b346212eb35a7"></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="classCalendar.html#af41a2769b5ce810d3ea5750c391c53b3">getActualMaximum</a> (<a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> field, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the maximum value that this field could have, given the current date.  <a href="#af41a2769b5ce810d3ea5750c391c53b3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e">get</a> (<a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a> field, <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 value for a given time field.  <a href="#a0e86c32f3c5e1e45420d1b57fc5c369e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a473c5a767a72a2c390e2ffc6b971dbd9">get</a> (<a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> field, <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 value for a given time field.  <a href="#a473c5a767a72a2c390e2ffc6b971dbd9"></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="classCalendar.html#aa58ac68d0d775d0766cf2d69d145233b">isSet</a> (<a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a> field) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Determines if the given time field has a value set.  <a href="#aa58ac68d0d775d0766cf2d69d145233b"></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="classCalendar.html#abc3510e5a75c30637122bff345f639cb">isSet</a> (<a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> field) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Determines if the given time field has a value set.  <a href="#abc3510e5a75c30637122bff345f639cb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a98ba908ffc6a88d6566983d4f95245df">set</a> (<a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a> field, int32_t value)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the given time field with the given value.  <a href="#a98ba908ffc6a88d6566983d4f95245df"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a558039a413ea1e1a9bfd47375d12e4ea">set</a> (<a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> field, int32_t value)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the given time field with the given value.  <a href="#a558039a413ea1e1a9bfd47375d12e4ea"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a0de0f9d494dc1a347c64560c73609b09">set</a> (int32_t year, int32_t month, int32_t date)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the values for the fields YEAR, MONTH, and DATE.  <a href="#a0de0f9d494dc1a347c64560c73609b09"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#acea9496f6dbb52f8682abe3c99c7c6c4">set</a> (int32_t year, int32_t month, int32_t date, int32_t hour, int32_t minute)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the values for the fields YEAR, MONTH, DATE, HOUR_OF_DAY, and MINUTE.  <a href="#acea9496f6dbb52f8682abe3c99c7c6c4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a53bae01ea06605c7506d9956db1ef165">set</a> (int32_t year, int32_t month, int32_t date, int32_t hour, int32_t minute, int32_t second)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the values for the fields YEAR, MONTH, DATE, HOUR_OF_DAY, MINUTE, and SECOND.  <a href="#a53bae01ea06605c7506d9956db1ef165"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a7e0409b7750ff09b7275a061bd6ae816">clear</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Clears the values of all the time fields, making them both unset and assigning them a value of zero.  <a href="#a7e0409b7750ff09b7275a061bd6ae816"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#ac62813e912368d76cec3fccfba231108">clear</a> (<a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a> field)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Clears the value in the given time field, both making it unset and assigning it a value of zero.  <a href="#ac62813e912368d76cec3fccfba231108"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#aad6c0532f6b52c5feb288615e3e2b681">clear</a> (<a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> field)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Clears the value in the given time field, both making it unset and assigning it a value of zero.  <a href="#aad6c0532f6b52c5feb288615e3e2b681"></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="classCalendar.html#a13e235c4396d92fc3b129d6a07e6076a">getDynamicClassID</a> (void) const =0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a unique class ID POLYMORPHICALLY.  <a href="#a13e235c4396d92fc3b129d6a07e6076a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a46741d547451faae02591381593d127b">getType</a> () const =0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the resource key string used for this calendar type.  <a href="#a46741d547451faae02591381593d127b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="ucal_8h.html#a5d1f042c84dc291891c208d4c7dcd933">UCalendarWeekdayType</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#abec2a3692bdce31b2e341353a5f25bbe">getDayOfWeekType</a> (<a class="el" href="ucal_8h.html#a62d9fe551bd48e4141fce52b917119a4">UCalendarDaysOfWeek</a> dayOfWeek, <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 whether the given day of the week is a weekday, a weekend day, or a day that transitions from one to the other, in this calendar system.  <a href="#abec2a3692bdce31b2e341353a5f25bbe"></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="classCalendar.html#a4a059bb760a45a663a690c7507c09019">getWeekendTransition</a> (<a class="el" href="ucal_8h.html#a62d9fe551bd48e4141fce52b917119a4">UCalendarDaysOfWeek</a> dayOfWeek, <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 time during the day at which the weekend begins or ends in this calendar system.  <a href="#a4a059bb760a45a663a690c7507c09019"></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="classCalendar.html#a73f2c04e318b4721b78191251fd33599">isWeekend</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 UDate is in the weekend in this calendar system.  <a href="#a73f2c04e318b4721b78191251fd33599"></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="classCalendar.html#a8e5dc579bef95c7293823e6ba65eaea3">isWeekend</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns TRUE if this Calendar's current date-time is in the weekend in this calendar system.  <a href="#a8e5dc579bef95c7293823e6ba65eaea3"></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="classCalendar.html#ae5bb9c44ecea69ad64d813fe41de6efa">haveDefaultCentury</a> () const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a745cdbb7e0477cb7c3bb2b29bd0b4350">defaultCenturyStart</a> () const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a4fa3cf26747f8decdb71d2f3786e9a34">defaultCenturyStartYear</a> () const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classLocale.html">Locale</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a019f867554a0f3dbc3ee865bf7864295">getLocale</a> (<a class="el" href="uloc_8h.html#adf053345d343f8d82ae080f7a5871f34">ULocDataLocaleType</a> type, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the locale for this calendar object.  <a href="#a019f867554a0f3dbc3ee865bf7864295"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#aec71fd785775da0decb82cd819ccfaba">getLocaleID</a> (<a class="el" href="uloc_8h.html#adf053345d343f8d82ae080f7a5871f34">ULocDataLocaleType</a> type, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the locale for this calendar object.  <a href="#aec71fd785775da0decb82cd819ccfaba"></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="classCalendar.html">Calendar</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a1872a90e5aaae1cfe3e826248fa9b497">createInstance</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;success)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> using the default timezone and locale.  <a href="#a1872a90e5aaae1cfe3e826248fa9b497"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCalendar.html">Calendar</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#ad1991655c5d12be8f321026c8b86e33a">createInstance</a> (<a class="el" href="classTimeZone.html">TimeZone</a> *zoneToAdopt, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;success)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> using the given timezone and the default locale.  <a href="#ad1991655c5d12be8f321026c8b86e33a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCalendar.html">Calendar</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a175df133c28993f82204a45f606cf6dd">createInstance</a> (const <a class="el" href="classTimeZone.html">TimeZone</a> &amp;zone, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;success)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> using the given timezone and the default locale.  <a href="#a175df133c28993f82204a45f606cf6dd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCalendar.html">Calendar</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a60ba2c6b6de35fb26560b796d726d9b3">createInstance</a> (const <a class="el" href="classLocale.html">Locale</a> &amp;aLocale, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;success)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> using the default timezone and the given locale.  <a href="#a60ba2c6b6de35fb26560b796d726d9b3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCalendar.html">Calendar</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a4e58744fcd29c45b18826b9b7ebf6a3b">createInstance</a> (<a class="el" href="classTimeZone.html">TimeZone</a> *zoneToAdopt, const <a class="el" href="classLocale.html">Locale</a> &amp;aLocale, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;success)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> using the given timezone and given locale.  <a href="#a4e58744fcd29c45b18826b9b7ebf6a3b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCalendar.html">Calendar</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a264ca0cd356b7431080d4de4078bb905">createInstance</a> (const <a class="el" href="classTimeZone.html">TimeZone</a> &amp;zoneToAdopt, const <a class="el" href="classLocale.html">Locale</a> &amp;aLocale, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;success)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets a <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> using the given timezone and given locale.  <a href="#a264ca0cd356b7431080d4de4078bb905"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a6b87567eb37ad5c07c17e6a2c46d257e">getAvailableLocales</a> (int32_t &amp;count)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a list of the locales for which Calendars are installed.  <a href="#a6b87567eb37ad5c07c17e6a2c46d257e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classStringEnumeration.html">StringEnumeration</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a4e13223ab9167f43c9bddb06a58225b4">getKeywordValuesForLocale</a> (const char *key, const <a class="el" href="classLocale.html">Locale</a> &amp;locale, <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> commonlyUsed, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Given a key and a locale, returns an array of string values in a preferred order that would make a difference.  <a href="#a4e13223ab9167f43c9bddb06a58225b4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#aab1712ccf7b261332a4d14c71dc6994e">getNow</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the current UTC (GMT) time measured in milliseconds since 0:00:00 on 1/1/70 (derived from the system time).  <a href="#aab1712ccf7b261332a4d14c71dc6994e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classStringEnumeration.html">StringEnumeration</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#adc0142552cd2e3fa56ed7a800edf4f2d">getAvailableLocales</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">INTERNAL FOR 2.6 -- Registration.  <a href="#adc0142552cd2e3fa56ed7a800edf4f2d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="umisc_8h.html#ab5905d79ed3b979840cee1d5fd48b4fb">URegistryKey</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a8118ce78632ea4a749e15d24a5f9560a">registerFactory</a> (ICUServiceFactory *toAdopt, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Register a new <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> factory.  <a href="#a8118ce78632ea4a749e15d24a5f9560a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a397c5c9c48463610bc87fcb84ac7a855">unregister</a> (<a class="el" href="umisc_8h.html#ab5905d79ed3b979840cee1d5fd48b4fb">URegistryKey</a> key, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Unregister a previously-registered CalendarFactory using the key returned from the register call.  <a href="#a397c5c9c48463610bc87fcb84ac7a855"></a><br/></td></tr>
<tr><td colspan="2"><h2>Protected Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#aed3b40eef888db3a26315f3a0c37b076">ELimitType</a> { <br/>
&nbsp;&nbsp;<b>UCAL_LIMIT_MINIMUM</b> =  0, 
<b>UCAL_LIMIT_GREATEST_MINIMUM</b>, 
<b>UCAL_LIMIT_LEAST_MAXIMUM</b>, 
<b>UCAL_LIMIT_MAXIMUM</b>, 
<br/>
&nbsp;&nbsp;<b>UCAL_LIMIT_COUNT</b>
<br/>
 }</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><p>Limit enums. </p>
 <a href="classCalendar.html#aed3b40eef888db3a26315f3a0c37b076">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom">{ <a class="el" href="classCalendar.html#a5b8bac9c3abcdaceced9b50535e3eaaea629ecd3850c09395432c5d86b6339951">kResolveSTOP</a> =  -1, 
<a class="el" href="classCalendar.html#a5b8bac9c3abcdaceced9b50535e3eaaeaf9aab2d453c5af0e81408c797ea39395">kResolveRemap</a> =  32
 }</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><p>Values for field resolution tables. </p>
 <a href="classCalendar.html#a5b8bac9c3abcdaceced9b50535e3eaae">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom">{ <b>kUnset</b> =  0, 
<b>kInternallySet</b>, 
<b>kMinimumUserStamp</b>
 }</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><p>Special values of stamp[]. </p>
 <a href="classCalendar.html#af8565777726984278f5e105fafcb60be">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a1807a722455fad6331a8a064273e6e20">Calendar</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;success)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> with the default time zone as returned by TimeZone::createInstance(), and the default locale.  <a href="#a1807a722455fad6331a8a064273e6e20"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#ac96446048cf739bc1d280cdc65a23db0">Calendar</a> (const <a class="el" href="classCalendar.html">Calendar</a> &amp;source)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy constructor.  <a href="#ac96446048cf739bc1d280cdc65a23db0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCalendar.html">Calendar</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#ac3bcbd2497e977c8324cc0b089879c3a">operator=</a> (const <a class="el" href="classCalendar.html">Calendar</a> &amp;right)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default assignment operator.  <a href="#ac3bcbd2497e977c8324cc0b089879c3a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#acf90dad3da55d4c3ffa5fdabf099b88c">Calendar</a> (<a class="el" href="classTimeZone.html">TimeZone</a> *zone, const <a class="el" href="classLocale.html">Locale</a> &amp;aLocale, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;success)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> with the given time zone and locale.  <a href="#acf90dad3da55d4c3ffa5fdabf099b88c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a41eb1824078a3d3d371e97c0314e3eda">Calendar</a> (const <a class="el" href="classTimeZone.html">TimeZone</a> &amp;zone, const <a class="el" href="classLocale.html">Locale</a> &amp;aLocale, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;success)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> with the given time zone and locale.  <a href="#a41eb1824078a3d3d371e97c0314e3eda"></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="classCalendar.html#acd6f300d2cc51b0d75b57d7be1347844">computeTime</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Converts Calendar's time field values to GMT as milliseconds.  <a href="#acd6f300d2cc51b0d75b57d7be1347844"></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="classCalendar.html#ad0ff8705abd13f9c568fb4053e35e27b">computeFields</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Converts GMT as milliseconds to time field values.  <a href="#ad0ff8705abd13f9c568fb4053e35e27b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a5aa1432697348561cc9259bc2c0974c0">getTimeInMillis</a> (<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 this Calendar's current time as a long.  <a href="#a5aa1432697348561cc9259bc2c0974c0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a4e33e7f83e803fb6092e32b988fe5305">setTimeInMillis</a> (double millis, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets this Calendar's current time from the given long value.  <a href="#a4e33e7f83e803fb6092e32b988fe5305"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a90717eab221acdd4d67b5d250c56247e">complete</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Recomputes the current time from currently set fields, and then fills in any unset fields in the time field list.  <a href="#a90717eab221acdd4d67b5d250c56247e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#afcc83cb53a32ea4898280dfaa1a1d881">internalGet</a> (<a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a> field) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the value for a given time field.  <a href="#afcc83cb53a32ea4898280dfaa1a1d881"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#ada18cdb870dd8e8e8507018c93a42ec0">internalGet</a> (<a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> field, int32_t defaultValue) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the value for a given time field.  <a href="#ada18cdb870dd8e8e8507018c93a42ec0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#abe0e23ba4107c023faf3fd6f70a1e78c">internalGet</a> (<a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> field) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the value for a given time field.  <a href="#abe0e23ba4107c023faf3fd6f70a1e78c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a1966488fa1954b3ef426c8dde4d341c6">internalSet</a> (<a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a> field, int32_t value)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the value for a given time field.  <a href="#a1966488fa1954b3ef426c8dde4d341c6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a80318e4604dde732ac89aa81311fbf68">internalSet</a> (<a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> field, int32_t value)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the value for a given time field.  <a href="#a80318e4604dde732ac89aa81311fbf68"></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="classCalendar.html#a660d320b4e90c159bdf1bb8f0678818a">prepareGetActual</a> (<a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> field, <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> isMinimum, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Prepare this calendar for computing the actual minimum or maximum.  <a href="#a660d320b4e90c159bdf1bb8f0678818a"></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="classCalendar.html#afd43a5f74be144b5ac90bc57a2f9cede">handleGetLimit</a> (<a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> field, <a class="el" href="classCalendar.html#aed3b40eef888db3a26315f3a0c37b076">ELimitType</a> limitType) const =0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Subclass API for defining limits of different types.  <a href="#afd43a5f74be144b5ac90bc57a2f9cede"></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="classCalendar.html#a8083df729da06f0271e29e8b7e4376d6">getLimit</a> (<a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> field, <a class="el" href="classCalendar.html#aed3b40eef888db3a26315f3a0c37b076">ELimitType</a> limitType) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return a limit for a field.  <a href="#a8083df729da06f0271e29e8b7e4376d6"></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="classCalendar.html#addb140c1bca76059b1a4084433ab67db">handleComputeMonthStart</a> (int32_t eyear, int32_t month, <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> useMonth) const =0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the Julian day number of day before the first day of the given month in the given extended year.  <a href="#addb140c1bca76059b1a4084433ab67db"></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="classCalendar.html#aaa7b064d37f1ac4b66dc57fef6481cda">handleGetMonthLength</a> (int32_t extendedYear, int32_t month) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the number of days in the given month of the given extended year of this calendar system.  <a href="#aaa7b064d37f1ac4b66dc57fef6481cda"></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="classCalendar.html#acb983bdeebcfb0441ed46256b0f444cc">handleGetYearLength</a> (int32_t eyear) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the number of days in the given extended year of this calendar system.  <a href="#acb983bdeebcfb0441ed46256b0f444cc"></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="classCalendar.html#a465fbc6494f2126892dcd694217697f4">handleGetExtendedYear</a> ()=0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the extended year defined by the current fields.  <a href="#a465fbc6494f2126892dcd694217697f4"></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="classCalendar.html#afd953ab4dc160ffc1b586c627c2c6ad9">handleComputeJulianDay</a> (<a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> bestField)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Subclasses may override this.  <a href="#afd953ab4dc160ffc1b586c627c2c6ad9"></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="classCalendar.html#a116247236ceda5f3d5424767d3c3c561">handleGetExtendedYearFromWeekFields</a> (int32_t yearWoy, int32_t woy)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Subclasses must override this to convert from week fields (YEAR_WOY and WEEK_OF_YEAR) to an extended year in the case where YEAR, EXTENDED_YEAR are not set.  <a href="#a116247236ceda5f3d5424767d3c3c561"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#ad32ba7616507ea59d2f59ee4a5f82fd7">computeJulianDay</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute the Julian day from fields.  <a href="#ad32ba7616507ea59d2f59ee4a5f82fd7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a8c299396a6124e4cbdc9ef88642d0151">computeMillisInDay</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute the milliseconds in the day from the fields.  <a href="#a8c299396a6124e4cbdc9ef88642d0151"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a17f77e9844d0fd3a86ba9c72e93d3e69">computeZoneOffset</a> (double millis, int32_t millisInDay, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;ec)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method can assume EXTENDED_YEAR has been set.  <a href="#a17f77e9844d0fd3a86ba9c72e93d3e69"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#ae2d514396d6fd85c25d9af9eb14b6215">newestStamp</a> (<a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> start, <a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> end, int32_t bestSoFar) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Determine the best stamp in a range.  <a href="#ae2d514396d6fd85c25d9af9eb14b6215"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a10718404e300cb17f0d678f7cd1cfa8e">resolveFields</a> (const <a class="el" href="calendar_8h.html#ab9f6041161064a1936388e94e9788fe2">UFieldResolutionTable</a> *precedenceTable)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Given a precedence table, return the newest field combination in the table, or UCAL_FIELD_COUNT if none is found.  <a href="#a10718404e300cb17f0d678f7cd1cfa8e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual const <br class="typebreak"/>
<a class="el" href="calendar_8h.html#ab9f6041161064a1936388e94e9788fe2">UFieldResolutionTable</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a25bc194dc5449b325b1d44c8f1d29d5c">getFieldResolutionTable</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a3449f24abb996590a0df022367599a87">newerField</a> (<a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> defaultField, <a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> alternateField) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the field that is newer, either defaultField, or alternateField.  <a href="#a3449f24abb996590a0df022367599a87"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#ad20fe42624b49a8a3fca48a06425c4f9">internalGetTime</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the current time without recomputing.  <a href="#ad20fe42624b49a8a3fca48a06425c4f9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a5066148dcb8ef8c6452b77a0d468344c">internalSetTime</a> (<a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> time)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the current time without affecting flags or fields.  <a href="#a5066148dcb8ef8c6452b77a0d468344c"></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="classCalendar.html#a195fad36b525b46df8934aca312db35e">handleComputeFields</a> (int32_t julianDay, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Subclasses may override this method to compute several fields specific to each calendar system.  <a href="#a195fad36b525b46df8934aca312db35e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a5393a0561dd038edff6eddb3be6c999d">getGregorianYear</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the extended year on the Gregorian calendar as computed by <code><a class="el" href="classCalendar.html#a61c3cc26aa39009391dff9e89a41ec67" title="Compute the Gregorian calendar year, month, and day of month from the Julian day...">computeGregorianFields()</a></code>.  <a href="#a5393a0561dd038edff6eddb3be6c999d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#adf8c69e617291bb10a56d683fa8282e0">getGregorianMonth</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the month (0-based) on the Gregorian calendar as computed by <code><a class="el" href="classCalendar.html#a61c3cc26aa39009391dff9e89a41ec67" title="Compute the Gregorian calendar year, month, and day of month from the Julian day...">computeGregorianFields()</a></code>.  <a href="#adf8c69e617291bb10a56d683fa8282e0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#ab4a3b8fb109ffa673e0333a1006a7c70">getGregorianDayOfYear</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the day of year (1-based) on the Gregorian calendar as computed by <code><a class="el" href="classCalendar.html#a61c3cc26aa39009391dff9e89a41ec67" title="Compute the Gregorian calendar year, month, and day of month from the Julian day...">computeGregorianFields()</a></code>.  <a href="#ab4a3b8fb109ffa673e0333a1006a7c70"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#ab93138a7b1ce4a87216ae10165e9cbae">getGregorianDayOfMonth</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the day of month (1-based) on the Gregorian calendar as computed by <code><a class="el" href="classCalendar.html#a61c3cc26aa39009391dff9e89a41ec67" title="Compute the Gregorian calendar year, month, and day of month from the Julian day...">computeGregorianFields()</a></code>.  <a href="#ab93138a7b1ce4a87216ae10165e9cbae"></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="classCalendar.html#a3e79fb81c806fd5ff9c64acc7c8bebc8">getDefaultMonthInYear</a> (int32_t eyear)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Called by computeJulianDay.  <a href="#a3e79fb81c806fd5ff9c64acc7c8bebc8"></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="classCalendar.html#acbee04cad5b9e301e47e1a47fb978002">getDefaultDayInMonth</a> (int32_t eyear, int32_t month)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Called by computeJulianDay.  <a href="#acbee04cad5b9e301e47e1a47fb978002"></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="classCalendar.html#afaeebecc193f1fce5fb616462f4cc593">pinField</a> (<a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> field, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adjust the specified field so that it is within the allowable range for the date to which this calendar is set.  <a href="#afaeebecc193f1fce5fb616462f4cc593"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#ac06ba54055473049be6427add1fa99e0">weekNumber</a> (int32_t desiredDay, int32_t dayOfPeriod, int32_t dayOfWeek)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the week number of a day, within a period.  <a href="#ac06ba54055473049be6427add1fa99e0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#ac37c766c0d2b648b451186132e19004a">weekNumber</a> (int32_t dayOfPeriod, int32_t dayOfWeek)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the week number of a day, within a period.  <a href="#ac37c766c0d2b648b451186132e19004a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a0a80956bea5e66c6cabd5485a98bd3bf">getLocalDOW</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">returns the local DOW, valid range 0..6  <a href="#a0a80956bea5e66c6cabd5485a98bd3bf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a61c3cc26aa39009391dff9e89a41ec67">computeGregorianFields</a> (int32_t julianDay, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;ec)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute the Gregorian calendar year, month, and day of month from the Julian day.  <a href="#a61c3cc26aa39009391dff9e89a41ec67"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#ac80054059c45d5b2466c9aaab596ec1e">julianDayToDayOfWeek</a> (double julian)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert a quasi Julian date to the day of the week.  <a href="#ac80054059c45d5b2466c9aaab596ec1e"></a><br/></td></tr>
<tr><td colspan="2"><h2>Protected Attributes</h2></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="classCalendar.html#a6a3812124ab9abbd2a2f75b490a6b700">fIsTimeSet</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The flag which indicates if the current time is set in the calendar.  <a href="#a6a3812124ab9abbd2a2f75b490a6b700"></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="classCalendar.html#af19aa6e54f1220ffaf74d29071a6a589">fAreFieldsSet</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">True if the fields are in sync with the currently set time of this <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>.  <a href="#af19aa6e54f1220ffaf74d29071a6a589"></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="classCalendar.html#aa198993ac97bca6bf80c2beb6657ed03">fAreAllFieldsSet</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">True if all of the fields have been set.  <a href="#aa198993ac97bca6bf80c2beb6657ed03"></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="classCalendar.html#a223fef486de9d84635c8c2c887dee2b0">fAreFieldsVirtuallySet</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">True if all fields have been virtually set, but have not yet been computed.  <a href="#a223fef486de9d84635c8c2c887dee2b0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a4aeb857bb89a74dbe261896e6b6f6681">fFields</a> [UCAL_FIELD_COUNT]</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The time fields containing values into which the millis is computed.  <a href="#a4aeb857bb89a74dbe261896e6b6f6681"></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="classCalendar.html#a557209952758b6c128ddbc26955eb9dc">fIsSet</a> [UCAL_FIELD_COUNT]</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The flags which tell if a specified time field for the calendar is set.  <a href="#a557209952758b6c128ddbc26955eb9dc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#ae1ab437231e76896ce2b7ccdbc106b0b">fStamp</a> [UCAL_FIELD_COUNT]</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pseudo-time-stamps which specify when each field was set.  <a href="#ae1ab437231e76896ce2b7ccdbc106b0b"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="calendar_8h.html#ab9f6041161064a1936388e94e9788fe2">UFieldResolutionTable</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a443112ee30874283a616c536293892c4">kDatePrecedence</a> []</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Precedence table for Dates.  <a href="#a443112ee30874283a616c536293892c4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="calendar_8h.html#ab9f6041161064a1936388e94e9788fe2">UFieldResolutionTable</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#ae116e0cc5a2c5af58f736fd2199ebcd0">kYearPrecedence</a> []</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Precedence table for Year.  <a href="#ae116e0cc5a2c5af58f736fd2199ebcd0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="calendar_8h.html#ab9f6041161064a1936388e94e9788fe2">UFieldResolutionTable</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a253f88ce055abc651d4784634bb65635">kDOWPrecedence</a> []</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Precedence table for Day of Week.  <a href="#a253f88ce055abc651d4784634bb65635"></a><br/></td></tr>
<tr><td colspan="2"><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#a7b8da58f16be9990955f60c930b4376d">CalendarFactory</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Multiple <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> Implementation.  <a href="#a7b8da58f16be9990955f60c930b4376d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#aef82cfadea9ca1be538463884884c8aa">CalendarService</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Multiple <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> Implementation.  <a href="#aef82cfadea9ca1be538463884884c8aa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCalendar.html#affad2f956e924717f3de7ccd94224551">DefaultCalendarFactory</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Multiple <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> Implementation.  <a href="#affad2f956e924717f3de7ccd94224551"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p><code><a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a></code> is an abstract base class for converting between a <code>UDate</code> object and a set of integer fields such as <code>YEAR</code>, <code>MONTH</code>, <code>DAY</code>, <code>HOUR</code>, and so on. </p>
<p>(A <code>UDate</code> object represents a specific instant in time with millisecond precision. See UDate for information about the <code>UDate</code> class.)</p>
<p>Subclasses of <code><a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a></code> interpret a <code>UDate</code> according to the rules of a specific calendar system. The most commonly used subclass of <code><a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a></code> is <code><a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a></code>. Other subclasses could represent the various types of lunar calendars in use in many parts of the world.</p>
<p><b>NOTE</b>: (ICU 2.6) The subclass interface should be considered unstable</p>
<ul>
<li>it WILL change.</li>
</ul>
<p>Like other locale-sensitive classes, <code><a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a></code> provides a static method, <code>createInstance</code>, for getting a generally useful object of this type. <code><a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a></code>'s <code>createInstance</code> method returns the appropriate <code><a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a></code> subclass whose time fields have been initialized with the current date and time:  <blockquote> <pre>
 <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> *rightNow = Calendar::createInstance(errCode);
 </pre>  </blockquote><p>A <code><a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a></code> object can produce all the time field values needed to implement the date-time formatting for a particular language and calendar style (for example, Japanese-Gregorian, Japanese-Traditional).</p>
<p>When computing a <code>UDate</code> from time fields, two special circumstances may arise: there may be insufficient information to compute the <code>UDate</code> (such as only year and month but no day in the month), or there may be inconsistent information (such as "Tuesday, July 15, 1996" -- July 15, 1996 is actually a Monday).</p>
<p><b>Insufficient information.</b> The calendar will use default information to specify the missing fields. This may vary by calendar; for the Gregorian calendar, the default for a field is the same as that of the start of the epoch: i.e., YEAR = 1970, MONTH = JANUARY, DATE = 1, etc.</p>
<p><b>Inconsistent information.</b> If fields conflict, the calendar will give preference to fields set more recently. For example, when determining the day, the calendar will look for one of the following combinations of fields. The most recent combination, as determined by the most recently set single field, will be used.</p>
 <blockquote> <pre>
 MONTH + DAY_OF_MONTH
 MONTH + WEEK_OF_MONTH + DAY_OF_WEEK
 MONTH + DAY_OF_WEEK_IN_MONTH + DAY_OF_WEEK
 DAY_OF_YEAR
 DAY_OF_WEEK + WEEK_OF_YEAR
 </pre>  </blockquote><p>For the time of day:</p>
 <blockquote> <pre>
 HOUR_OF_DAY
 AM_PM + HOUR
 </pre>  </blockquote><p><b>Note:</b> for some non-Gregorian calendars, different fields may be necessary for complete disambiguation. For example, a full specification of the historial Arabic astronomical calendar requires year, month, day-of-month <em>and</em> day-of-week in some cases.</p>
<p><b>Note:</b> There are certain possible ambiguities in interpretation of certain singular times, which are resolved in the following ways: </p>
<ol>
<li>
<p class="startli">24:00:00 "belongs" to the following day. That is, 23:59 on Dec 31, 1969 &lt; 24:00 on Jan 1, 1970 &lt; 24:01:00 on Jan 1, 1970</p>
<p class="endli"></p>
</li>
<li>
Although historically not precise, midnight also belongs to "am", and noon belongs to "pm", so on the same day, 12:00 am (midnight) &lt; 12:01 am, and 12:00 pm (noon) &lt; 12:01 pm </li>
</ol>
<p>The date or time format strings are not part of the definition of a calendar, as those must be modifiable or overridable by the user at runtime. Use <a class="el" href="classDateFormat.html">DateFormat</a> to format dates.</p>
<p><code><a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a></code> provides an API for field "rolling", where fields can be incremented or decremented, but wrap around. For example, rolling the month up in the date <code>December 12, <b>1996</b></code> results in <code>January 12, <b>1996</b></code>.</p>
<p><code><a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a></code> also provides a date arithmetic function for adding the specified (signed) amount of time to a particular time field. For example, subtracting 5 days from the date <code>September 12, 1996</code> results in <code>September 7, 1996</code>.</p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002159">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l00165">165</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>
<hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a5b8bac9c3abcdaceced9b50535e3eaae"></a><!-- doxytag: member="Calendar::@17" ref="a5b8bac9c3abcdaceced9b50535e3eaae" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">anonymous enum<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Values for field resolution tables. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classCalendar.html#a10718404e300cb17f0d678f7cd1cfa8e" title="Given a precedence table, return the newest field combination in the table, or UCAL_FIELD_COUNT...">resolveFields</a> </dd></dl>
<dl class="internal"><dt><b>Internal:</b></dt><dd>Do not use. This API is for internal use only. </dd></dl>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a5b8bac9c3abcdaceced9b50535e3eaaea629ecd3850c09395432c5d86b6339951"></a><!-- doxytag: member="kResolveSTOP" ref="a5b8bac9c3abcdaceced9b50535e3eaaea629ecd3850c09395432c5d86b6339951" args="" -->kResolveSTOP</em>&nbsp;</td><td>
<p>Marker for end of resolve set (row or group). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a5b8bac9c3abcdaceced9b50535e3eaaeaf9aab2d453c5af0e81408c797ea39395"></a><!-- doxytag: member="kResolveRemap" ref="a5b8bac9c3abcdaceced9b50535e3eaaeaf9aab2d453c5af0e81408c797ea39395" args="" -->kResolveRemap</em>&nbsp;</td><td>
<p>Value to be bitwised "ORed" against resolve table field values for remapping. </p>
<p>Example: (UCAL_DATE | kResolveRemap) in 1st column will cause 'UCAL_DATE' to be returned, but will not examine the value of UCAL_DATE. </p>
</td></tr>
</table>
</dd>
</dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l01568">1568</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<a class="anchor" id="af8565777726984278f5e105fafcb60be"></a><!-- doxytag: member="Calendar::@18" ref="af8565777726984278f5e105fafcb60be" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">anonymous enum<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Special values of stamp[]. </p>
<dl class="stable"><dt><b>Stable:</b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l01718">1718</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab68462e2ea07c44eaa88265c8c80ed28"></a><!-- doxytag: member="Calendar::EAmpm" ref="ab68462e2ea07c44eaa88265c8c80ed28" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classCalendar.html#ab68462e2ea07c44eaa88265c8c80ed28">Calendar::EAmpm</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Useful constants for hour in 12-hour clock. </p>
<p>Used in <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a>. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000163">Deprecated:</a></b></dt><dd>ICU 2.6. Use C enum UCalendarAMPMs defined in <a class="el" href="ucal_8h.html" title="C API: Calendar.">ucal.h</a> </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l00255">255</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<a class="anchor" id="a9aa66a9e8030312d5314e306c713913e"></a><!-- doxytag: member="Calendar::EDateFields" ref="a9aa66a9e8030312d5314e306c713913e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">Calendar::EDateFields</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Field IDs for date and time. </p>
<p>Used to specify date/time fields. ERA is calendar specific. Example ranges given are for illustration only; see specific <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> subclasses for actual ranges. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000160">Deprecated:</a></b></dt><dd>ICU 2.6. Use C enum UCalendarDateFields defined in <a class="el" href="ucal_8h.html" title="C API: Calendar.">ucal.h</a> </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l00174">174</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<a class="anchor" id="a28d5c395b3200c812950321637796aa4"></a><!-- doxytag: member="Calendar::EDaysOfWeek" ref="a28d5c395b3200c812950321637796aa4" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classCalendar.html#a28d5c395b3200c812950321637796aa4">Calendar::EDaysOfWeek</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Useful constant for days of week. </p>
<p>Note: <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> day-of-week is 1-based. Clients who create locale resources for the field of first-day-of-week should be aware of this. For instance, in US locale, first-day-of-week is set to 1, i.e., SUNDAY. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000161">Deprecated:</a></b></dt><dd>ICU 2.6. Use C enum UCalendarDaysOfWeek defined in <a class="el" href="ucal_8h.html" title="C API: Calendar.">ucal.h</a> </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l00217">217</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<a class="anchor" id="aed3b40eef888db3a26315f3a0c37b076"></a><!-- doxytag: member="Calendar::ELimitType" ref="aed3b40eef888db3a26315f3a0c37b076" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classCalendar.html#aed3b40eef888db3a26315f3a0c37b076">Calendar::ELimitType</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Limit enums. </p>
<p>Not in sync with UCalendarLimitType (refers to internal fields). </p>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000172">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l01418">1418</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<a class="anchor" id="a26f00f1507a3dd73ba4553b6e04d8313"></a><!-- doxytag: member="Calendar::EMonths" ref="a26f00f1507a3dd73ba4553b6e04d8313" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classCalendar.html#a26f00f1507a3dd73ba4553b6e04d8313">Calendar::EMonths</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Useful constants for month. </p>
<p>Note: <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> month is 0-based. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000162">Deprecated:</a></b></dt><dd>ICU 2.6. Use C enum UCalendarMonths defined in <a class="el" href="ucal_8h.html" title="C API: Calendar.">ucal.h</a> </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l00233">233</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a3d5422cc908f8666dd295f4f25a793e1"></a><!-- doxytag: member="Calendar::~Calendar" ref="a3d5422cc908f8666dd295f4f25a793e1" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Calendar::~Calendar </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#_stable002160">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

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

<p>Constructs a <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> with the default time zone as returned by TimeZone::createInstance(), and the default locale. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>success</em>&nbsp;</td><td>Indicates the status of <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> object construction. Returns U_ZERO_ERROR if constructed successfully. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002209">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

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

<p>Copy constructor. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>source</em>&nbsp;</td><td><a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> object to be copied from </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002210">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="acf90dad3da55d4c3ffa5fdabf099b88c"></a><!-- doxytag: member="Calendar::Calendar" ref="acf90dad3da55d4c3ffa5fdabf099b88c" args="(TimeZone *zone, const Locale &amp;aLocale, UErrorCode &amp;success)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Calendar::Calendar </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classTimeZone.html">TimeZone</a> *&nbsp;</td>
          <td class="paramname"> <em>zone</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>aLocale</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>success</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> with the given time zone and locale. </p>
<p>Clients are no longer responsible for deleting the given time zone object after it's adopted.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>zone</em>&nbsp;</td><td>The given time zone. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>aLocale</em>&nbsp;</td><td>The given locale. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>success</em>&nbsp;</td><td>Indicates the status of <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> object construction. Returns U_ZERO_ERROR if constructed successfully. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002212">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a41eb1824078a3d3d371e97c0314e3eda"></a><!-- doxytag: member="Calendar::Calendar" ref="a41eb1824078a3d3d371e97c0314e3eda" args="(const TimeZone &amp;zone, const Locale &amp;aLocale, UErrorCode &amp;success)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Calendar::Calendar </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classTimeZone.html">TimeZone</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>zone</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>aLocale</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>success</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> with the given time zone and locale. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>zone</em>&nbsp;</td><td>The given time zone. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>aLocale</em>&nbsp;</td><td>The given locale. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>success</em>&nbsp;</td><td>Indicates the status of <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> object construction. Returns U_ZERO_ERROR if constructed successfully. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002213">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a743c11819bc8823ece3d7ee9260f174f"></a><!-- doxytag: member="Calendar::add" ref="a743c11819bc8823ece3d7ee9260f174f" args="(UCalendarDateFields field, int32_t amount, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Calendar::add </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>amount</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>UDate Arithmetic function. </p>
<p>Adds the specified (signed) amount of time to the given time field, based on the calendar's rules. For example, to subtract 5 days from the current time of the calendar, call add(Calendar::DATE, -5). When adding on the month or Calendar::MONTH field, other fields like date might conflict and need to be changed. For instance, adding 1 month on the date 01/31/96 will result in 02/29/96.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>Specifies which date field to modify. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>amount</em>&nbsp;</td><td>The amount of time to be added to the field, in the natural unit for that field (e.g., days for the day fields, hours for the hour field.) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code on exit. If any value previously set in the time field is invalid or restricted by leniency, this will be set to an error status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002179">Stable:</a></b></dt><dd>ICU 2.6. </dd></dl>

</div>
</div>
<a class="anchor" id="a4c480d382487d1f05b717dbd310515b3"></a><!-- doxytag: member="Calendar::add" ref="a4c480d382487d1f05b717dbd310515b3" args="(EDateFields field, int32_t amount, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Calendar::add </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>amount</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>UDate Arithmetic function. </p>
<p>Adds the specified (signed) amount of time to the given time field, based on the calendar's rules. For example, to subtract 5 days from the current time of the calendar, call add(Calendar::DATE, -5). When adding on the month or Calendar::MONTH field, other fields like date might conflict and need to be changed. For instance, adding 1 month on the date 01/31/96 will result in 02/29/96.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>Specifies which date field to modify. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>amount</em>&nbsp;</td><td>The amount of time to be added to the field, in the natural unit for that field (e.g., days for the day fields, hours for the hour field.) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code on exit. If any value previously set in the time field is invalid or restricted by leniency, this will be set to an error status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000164">Deprecated:</a></b></dt><dd>ICU 2.6. use <a class="el" href="classCalendar.html#a743c11819bc8823ece3d7ee9260f174f" title="UDate Arithmetic function.">add(UCalendarDateFields field, int32_t amount, UErrorCode&amp; status)</a> instead. </dd></dl>

</div>
</div>
<a class="anchor" id="af018c3a61cec42d055e320c1ff1d4292"></a><!-- doxytag: member="Calendar::adoptTimeZone" ref="af018c3a61cec42d055e320c1ff1d4292" args="(TimeZone *value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Calendar::adoptTimeZone </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classTimeZone.html">TimeZone</a> *&nbsp;</td>
          <td class="paramname"> <em>value</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the calendar's time zone to be the one passed in. </p>
<p>The <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> takes ownership of the <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a>; the caller is no longer responsible for deleting it. If the given time zone is NULL, this function has no effect.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>The given time zone. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002183">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a2ca85aeccfad737241317ad4a3571926"></a><!-- doxytag: member="Calendar::after" ref="a2ca85aeccfad737241317ad4a3571926" args="(const Calendar &amp;when, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> Calendar::after </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCalendar.html">Calendar</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>when</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</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns true if this Calendar's current time is after "when"'s current 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>when</em>&nbsp;</td><td>The <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> to be compared with this <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>. Although this is a const parameter, the object may be modified physically (semantically const). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code on exit. If any value previously set in the time field is invalid or restricted by leniency, this will be set to an error status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if the current time of this <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> is after the time of <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> when; false otherwise. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002178">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a46f47197740b6ea80d81743ec3af3fab"></a><!-- doxytag: member="Calendar::before" ref="a46f47197740b6ea80d81743ec3af3fab" args="(const Calendar &amp;when, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> Calendar::before </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCalendar.html">Calendar</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>when</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</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns true if this Calendar's current time is before "when"'s current 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>when</em>&nbsp;</td><td>The <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> to be compared with this <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>. Although this is a const parameter, the object may be modified physically (semantically const). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code on exit. If any value previously set in the time field is invalid or restricted by leniency, this will be set to an error status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if the current time of this <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> is before the time of <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> when; false otherwise. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002177">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="aad6c0532f6b52c5feb288615e3e2b681"></a><!-- doxytag: member="Calendar::clear" ref="aad6c0532f6b52c5feb288615e3e2b681" args="(UCalendarDateFields field)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Calendar::clear </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Clears the value in the given time field, both making it unset and assigning it a value of zero. </p>
<p>This field value will be determined during the next resolving of time into time fields.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>The time field to be cleared. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002207">Stable:</a></b></dt><dd>ICU 2.6. </dd></dl>

</div>
</div>
<a class="anchor" id="ac62813e912368d76cec3fccfba231108"></a><!-- doxytag: member="Calendar::clear" ref="ac62813e912368d76cec3fccfba231108" args="(EDateFields field)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Calendar::clear </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Clears the value in the given time field, both making it unset and assigning it a value of zero. </p>
<p>This field value will be determined during the next resolving of time into time fields.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>The time field to be cleared. </td></tr>
  </table>
  </dd>
</dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000179">Deprecated:</a></b></dt><dd>ICU 2.6. Use <a class="el" href="classCalendar.html#aad6c0532f6b52c5feb288615e3e2b681" title="Clears the value in the given time field, both making it unset and assigning it a...">clear(UCalendarDateFields field)</a> instead. </dd></dl>

</div>
</div>
<a class="anchor" id="a7e0409b7750ff09b7275a061bd6ae816"></a><!-- doxytag: member="Calendar::clear" ref="a7e0409b7750ff09b7275a061bd6ae816" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Calendar::clear </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Clears the values of all the time fields, making them both unset and assigning them a value of zero. </p>
<p>The field values will be determined during the next resolving of time into time fields. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002206">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

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

<p>Create and return a polymorphic copy of this calendar. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>a polymorphic copy of this calendar. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002161">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implemented in <a class="el" href="classGregorianCalendar.html#a6924d2c9812c8af226ca941b024c56aa">GregorianCalendar</a>.</p>

</div>
</div>
<a class="anchor" id="a90717eab221acdd4d67b5d250c56247e"></a><!-- doxytag: member="Calendar::complete" ref="a90717eab221acdd4d67b5d250c56247e" args="(UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Calendar::complete </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> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Recomputes the current time from currently set fields, and then fills in any unset fields in the time field list. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code on exit. If any value previously set in the time field is invalid or restricted by leniency, this will be set to an error status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002218">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="ad0ff8705abd13f9c568fb4053e35e27b"></a><!-- doxytag: member="Calendar::computeFields" ref="ad0ff8705abd13f9c568fb4053e35e27b" args="(UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Calendar::computeFields </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> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts GMT as milliseconds to time field values. </p>
<p>This allows you to sync up the time field values with a new time that is set for the calendar. This method does NOT recompute the time first; to recompute the time, then the fields, use the method <a class="el" href="classCalendar.html#a90717eab221acdd4d67b5d250c56247e" title="Recomputes the current time from currently set fields, and then fills in any unset...">complete()</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>status</em>&nbsp;</td><td>Output param set to success/failure code on exit. If any value previously set in the time field is invalid or restricted by leniency, this will be set to an error status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002215">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a61c3cc26aa39009391dff9e89a41ec67"></a><!-- doxytag: member="Calendar::computeGregorianFields" ref="a61c3cc26aa39009391dff9e89a41ec67" args="(int32_t julianDay, UErrorCode &amp;ec)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Calendar::computeGregorianFields </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>julianDay</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><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Compute the Gregorian calendar year, month, and day of month from the Julian day. </p>
<p>These values are not stored in fields, but in member variables gregorianXxx. They are used for time zone computations and by subclasses that are Gregorian derivatives. Subclasses may call this method to perform a Gregorian calendar millis-&gt;fields computation. </p>

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

<p>Compute the Julian day from fields. </p>
<p>Will determine whether to use the JULIAN_DAY field directly, or other fields. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the julian day </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000180">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

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

<p>Compute the milliseconds in the day from the fields. </p>
<p>This is a value from 0 to 23:59:59.999 inclusive, unless fields are out of range, in which case it can be an arbitrary value. This value reflects local zone wall time. </p>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000181">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

</div>
</div>
<a class="anchor" id="acd6f300d2cc51b0d75b57d7be1347844"></a><!-- doxytag: member="Calendar::computeTime" ref="acd6f300d2cc51b0d75b57d7be1347844" args="(UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Calendar::computeTime </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> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts Calendar's time field values to GMT as milliseconds. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code on exit. If any value previously set in the time field is invalid or restricted by leniency, this will be set to an error status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002214">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a17f77e9844d0fd3a86ba9c72e93d3e69"></a><!-- doxytag: member="Calendar::computeZoneOffset" ref="a17f77e9844d0fd3a86ba9c72e93d3e69" args="(double millis, int32_t millisInDay, UErrorCode &amp;ec)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t Calendar::computeZoneOffset </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>millis</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>millisInDay</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><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This method can assume EXTENDED_YEAR has been set. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>millis</em>&nbsp;</td><td>milliseconds of the date fields </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>millisInDay</em>&nbsp;</td><td>milliseconds of the time fields; may be out or range. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>ec</em>&nbsp;</td><td>Output param set to failure code on function return when this function fails. </td></tr>
  </table>
  </dd>
</dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000182">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

</div>
</div>
<a class="anchor" id="a264ca0cd356b7431080d4de4078bb905"></a><!-- doxytag: member="Calendar::createInstance" ref="a264ca0cd356b7431080d4de4078bb905" args="(const TimeZone &amp;zoneToAdopt, const Locale &amp;aLocale, UErrorCode &amp;success)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classCalendar.html">Calendar</a>* Calendar::createInstance </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classTimeZone.html">TimeZone</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>zoneToAdopt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>aLocale</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>success</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets a <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> using the given timezone and given locale. </p>
<p>The <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> is _not_ adopted; the client is still responsible for deleting it.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>zoneToAdopt</em>&nbsp;</td><td>The given timezone to be adopted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>aLocale</em>&nbsp;</td><td>The given locale. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>success</em>&nbsp;</td><td>Indicates the success/failure of <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> creation. Filled in with U_ZERO_ERROR if created successfully, set to a failure result otherwise. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> if created successfully. NULL otherwise. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002167">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a4e58744fcd29c45b18826b9b7ebf6a3b"></a><!-- doxytag: member="Calendar::createInstance" ref="a4e58744fcd29c45b18826b9b7ebf6a3b" args="(TimeZone *zoneToAdopt, const Locale &amp;aLocale, UErrorCode &amp;success)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classCalendar.html">Calendar</a>* Calendar::createInstance </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classTimeZone.html">TimeZone</a> *&nbsp;</td>
          <td class="paramname"> <em>zoneToAdopt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>aLocale</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>success</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> using the given timezone and given locale. </p>
<p>The <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> takes ownership of zoneToAdopt; the client must not delete it.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>zoneToAdopt</em>&nbsp;</td><td>The given timezone to be adopted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>aLocale</em>&nbsp;</td><td>The given locale. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>success</em>&nbsp;</td><td>Indicates the success/failure of <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> creation. Filled in with U_ZERO_ERROR if created successfully, set to a failure result otherwise. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> if created successfully. NULL otherwise. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002166">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a60ba2c6b6de35fb26560b796d726d9b3"></a><!-- doxytag: member="Calendar::createInstance" ref="a60ba2c6b6de35fb26560b796d726d9b3" args="(const Locale &amp;aLocale, UErrorCode &amp;success)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classCalendar.html">Calendar</a>* Calendar::createInstance </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>aLocale</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>success</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> using the default timezone and the given locale. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aLocale</em>&nbsp;</td><td>The given locale. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>success</em>&nbsp;</td><td>Indicates the success/failure of <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> creation. Filled in with U_ZERO_ERROR if created successfully, set to a failure result otherwise. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> if created successfully. NULL otherwise. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002165">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a175df133c28993f82204a45f606cf6dd"></a><!-- doxytag: member="Calendar::createInstance" ref="a175df133c28993f82204a45f606cf6dd" args="(const TimeZone &amp;zone, UErrorCode &amp;success)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classCalendar.html">Calendar</a>* Calendar::createInstance </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classTimeZone.html">TimeZone</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>zone</em>, </td>
        </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>success</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> using the given timezone and the default locale. </p>
<p>The <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> is _not_ adopted; the client is still responsible for deleting it.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>zone</em>&nbsp;</td><td>The timezone. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>success</em>&nbsp;</td><td>Indicates the success/failure of <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> creation. Filled in with U_ZERO_ERROR if created successfully, set to a failure result otherwise. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> if created successfully. NULL otherwise. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002164">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="ad1991655c5d12be8f321026c8b86e33a"></a><!-- doxytag: member="Calendar::createInstance" ref="ad1991655c5d12be8f321026c8b86e33a" args="(TimeZone *zoneToAdopt, UErrorCode &amp;success)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCalendar.html">Calendar</a> * Calendar::createInstance </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classTimeZone.html">TimeZone</a> *&nbsp;</td>
          <td class="paramname"> <em>zoneToAdopt</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>success</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> using the given timezone and the default locale. </p>
<p>The <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> takes ownership of zoneToAdopt; the client must not delete it.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>zoneToAdopt</em>&nbsp;</td><td>The given timezone to be adopted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>success</em>&nbsp;</td><td>Indicates the success/failure of <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> creation. Filled in with U_ZERO_ERROR if created successfully, set to a failure result otherwise. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> if created successfully. NULL otherwise. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002163">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l02206">2206</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

<p>References <a class="el" href="classCalendar.html#a1872a90e5aaae1cfe3e826248fa9b497">createInstance()</a>, and <a class="el" href="classLocale.html#ac12d6326f2d283f5643f6b6caacfe88c">Locale::getDefault()</a>.</p>

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

<p>Creates a <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> using the default timezone and locale. </p>
<p>Clients are responsible for deleting the object returned.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>success</em>&nbsp;</td><td>Indicates the success/failure of <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> creation. Filled in with U_ZERO_ERROR if created successfully, set to a failure result otherwise. U_MISSING_RESOURCE_ERROR will be returned if the resource data requests a calendar type which has not been installed. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> if created successfully. NULL otherwise. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002162">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Referenced by <a class="el" href="calendar_8h_source.html#l02206">createInstance()</a>.</p>

</div>
</div>
<a class="anchor" id="a745cdbb7e0477cb7c3bb2b29bd0b4350"></a><!-- doxytag: member="Calendar::defaultCenturyStart" ref="a745cdbb7e0477cb7c3bb2b29bd0b4350" args="() const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> Calendar::defaultCenturyStart </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000212">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the start of the default century, as a UDate </dd></dl>

<p>Implemented in <a class="el" href="classGregorianCalendar.html#a3c11c790997b4a7ef2009c9db5dfc7dd">GregorianCalendar</a>.</p>

</div>
</div>
<a class="anchor" id="a4fa3cf26747f8decdb71d2f3786e9a34"></a><!-- doxytag: member="Calendar::defaultCenturyStartYear" ref="a4fa3cf26747f8decdb71d2f3786e9a34" args="() const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t Calendar::defaultCenturyStartYear </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000213">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the beginning year of the default century, as a year </dd></dl>

<p>Implemented in <a class="el" href="classGregorianCalendar.html#ad308638658b0758dcdaaae57a3599a27">GregorianCalendar</a>.</p>

</div>
</div>
<a class="anchor" id="a3ed5a35ec465912fed9e8ed90992cdc9"></a><!-- doxytag: member="Calendar::equals" ref="a3ed5a35ec465912fed9e8ed90992cdc9" args="(const Calendar &amp;when, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> Calendar::equals </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCalendar.html">Calendar</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>when</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</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Compares the <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> time, whereas <a class="el" href="classCalendar.html#aa231d324e53576d3198a0aedd129f3ad" title="Compares the equality of two Calendar objects.">Calendar::operator==</a> compares the equality of <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> objects. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>when</em>&nbsp;</td><td>The <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> to be compared with this <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>. Although this is a const parameter, the object may be modified physically (semantically const). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code on exit. If any value previously set in the time field is invalid or restricted by leniency, this will be set to an error status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if the current time of this <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> is equal to the time of <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> when; false otherwise. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002176">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a1a735b5e3c69f937e58dbb58c1ec50bd"></a><!-- doxytag: member="Calendar::fieldDifference" ref="a1a735b5e3c69f937e58dbb58c1ec50bd" args="(UDate when, UCalendarDateFields field, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t Calendar::fieldDifference </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&nbsp;</td>
          <td class="paramname"> <em>when</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</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>Return the difference between the given time and the time this calendar object is set to. </p>
<p>If this calendar is set <em>before</em> the given time, the returned value will be positive. If this calendar is set <em>after</em> the given time, the returned value will be negative. The <code>field</code> parameter specifies the units of the return value. For example, if <code>fieldDifference(when, Calendar::MONTH)</code> returns 3, then this calendar is set to 3 months before <code>when</code>, and possibly some addition time less than one month.</p>
<p>As a side effect of this call, this calendar is advanced toward <code>when</code> by the given amount. That is, calling this method has the side effect of calling <code>add(field, n)</code>, where <code>n</code> is the return value.</p>
<p>Usage: To use this method, call it first with the largest field of interest, then with progressively smaller fields. For example:</p>
<pre>
 int y = cal-&gt;fieldDifference(when, Calendar::YEAR, err);
 int m = cal-&gt;fieldDifference(when, Calendar::MONTH, err);
 int d = cal-&gt;fieldDifference(when, Calendar::DATE, err);</pre><p>computes the difference between <code>cal</code> and <code>when</code> in years, months, and days.</p>
<p>Note: <code><a class="el" href="classCalendar.html#a6cf48d67d31ee09a3ed5c6064a64e4cd" title="Return the difference between the given time and the time this calendar object is...">fieldDifference()</a></code> is <em>asymmetrical</em>. That is, in the following code:</p>
<pre>
 cal-&gt;setTime(date1, err);
 int m1 = cal-&gt;fieldDifference(date2, Calendar::MONTH, err);
 int d1 = cal-&gt;fieldDifference(date2, Calendar::DATE, err);
 cal-&gt;setTime(date2, err);
 int m2 = cal-&gt;fieldDifference(date1, Calendar::MONTH, err);
 int d2 = cal-&gt;fieldDifference(date1, Calendar::DATE, err);</pre><p>one might expect that <code>m1 == -m2 &amp;&amp; d1 == -d2</code>. However, this is not generally the case, because of irregularities in the underlying calendar system (e.g., the Gregorian calendar has a varying number of days per 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>when</em>&nbsp;</td><td>the date to compare this calendar's time to </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>the field in which to compute the result </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code on exit. If any value previously set in the time field is invalid, this will be set to an error status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the difference, either positive or negative, between this calendar's time and <code>when</code>, in terms of <code>field</code>. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002182">Stable:</a></b></dt><dd>ICU 2.6. </dd></dl>

</div>
</div>
<a class="anchor" id="a6cf48d67d31ee09a3ed5c6064a64e4cd"></a><!-- doxytag: member="Calendar::fieldDifference" ref="a6cf48d67d31ee09a3ed5c6064a64e4cd" args="(UDate when, EDateFields field, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t Calendar::fieldDifference </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&nbsp;</td>
          <td class="paramname"> <em>when</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</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>Return the difference between the given time and the time this calendar object is set to. </p>
<p>If this calendar is set <em>before</em> the given time, the returned value will be positive. If this calendar is set <em>after</em> the given time, the returned value will be negative. The <code>field</code> parameter specifies the units of the return value. For example, if <code>fieldDifference(when, Calendar::MONTH)</code> returns 3, then this calendar is set to 3 months before <code>when</code>, and possibly some addition time less than one month.</p>
<p>As a side effect of this call, this calendar is advanced toward <code>when</code> by the given amount. That is, calling this method has the side effect of calling <code>add(field, n)</code>, where <code>n</code> is the return value.</p>
<p>Usage: To use this method, call it first with the largest field of interest, then with progressively smaller fields. For example:</p>
<pre>
 int y = cal-&gt;fieldDifference(when, Calendar::YEAR, err);
 int m = cal-&gt;fieldDifference(when, Calendar::MONTH, err);
 int d = cal-&gt;fieldDifference(when, Calendar::DATE, err);</pre><p>computes the difference between <code>cal</code> and <code>when</code> in years, months, and days.</p>
<p>Note: <code><a class="el" href="classCalendar.html#a6cf48d67d31ee09a3ed5c6064a64e4cd" title="Return the difference between the given time and the time this calendar object is...">fieldDifference()</a></code> is <em>asymmetrical</em>. That is, in the following code:</p>
<pre>
 cal-&gt;setTime(date1, err);
 int m1 = cal-&gt;fieldDifference(date2, Calendar::MONTH, err);
 int d1 = cal-&gt;fieldDifference(date2, Calendar::DATE, err);
 cal-&gt;setTime(date2, err);
 int m2 = cal-&gt;fieldDifference(date1, Calendar::MONTH, err);
 int d2 = cal-&gt;fieldDifference(date1, Calendar::DATE, err);</pre><p>one might expect that <code>m1 == -m2 &amp;&amp; d1 == -d2</code>. However, this is not generally the case, because of irregularities in the underlying calendar system (e.g., the Gregorian calendar has a varying number of days per 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>when</em>&nbsp;</td><td>the date to compare this calendar's time to </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>the field in which to compute the result </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code on exit. If any value previously set in the time field is invalid, this will be set to an error status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the difference, either positive or negative, between this calendar's time and <code>when</code>, in terms of <code>field</code>. </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000167">Deprecated:</a></b></dt><dd>ICU 2.6. Use <a class="el" href="classCalendar.html#a1a735b5e3c69f937e58dbb58c1ec50bd" title="Return the difference between the given time and the time this calendar object is...">fieldDifference(UDate when, UCalendarDateFields field, UErrorCode&amp; status)</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="a473c5a767a72a2c390e2ffc6b971dbd9"></a><!-- doxytag: member="Calendar::get" ref="a473c5a767a72a2c390e2ffc6b971dbd9" args="(UCalendarDateFields field, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t Calendar::get </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</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</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the value for a given time field. </p>
<p>Recalculate the current time field values if the time value has been changed by a call to <a class="el" href="classCalendar.html#a4b918629b9bfd29e888f5ab933bd0b9b" title="Sets this Calendar&#39;s current time with the given UDate.">setTime()</a>. Return zero for unset fields if any fields have been explicitly set by a call to <a class="el" href="classCalendar.html#a98ba908ffc6a88d6566983d4f95245df" title="Sets the given time field with the given value.">set()</a>. To force a recomputation of all fields regardless of the previous state, call <a class="el" href="classCalendar.html#a90717eab221acdd4d67b5d250c56247e" title="Recomputes the current time from currently set fields, and then fills in any unset...">complete()</a>. This method is semantically const, but may alter the object in memory.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>The given time field. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Fill-in parameter which receives the status of the operation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The value for the given time field, or zero if the field is unset, and <a class="el" href="classCalendar.html#a98ba908ffc6a88d6566983d4f95245df" title="Sets the given time field with the given value.">set()</a> has been called for any other field. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002200">Stable:</a></b></dt><dd>ICU 2.6. </dd></dl>

</div>
</div>
<a class="anchor" id="a0e86c32f3c5e1e45420d1b57fc5c369e"></a><!-- doxytag: member="Calendar::get" ref="a0e86c32f3c5e1e45420d1b57fc5c369e" args="(EDateFields field, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t Calendar::get </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</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</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the value for a given time field. </p>
<p>Recalculate the current time field values if the time value has been changed by a call to <a class="el" href="classCalendar.html#a4b918629b9bfd29e888f5ab933bd0b9b" title="Sets this Calendar&#39;s current time with the given UDate.">setTime()</a>. Return zero for unset fields if any fields have been explicitly set by a call to <a class="el" href="classCalendar.html#a98ba908ffc6a88d6566983d4f95245df" title="Sets the given time field with the given value.">set()</a>. To force a recomputation of all fields regardless of the previous state, call <a class="el" href="classCalendar.html#a90717eab221acdd4d67b5d250c56247e" title="Recomputes the current time from currently set fields, and then fills in any unset...">complete()</a>. This method is semantically const, but may alter the object in memory.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>The given time field. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Fill-in parameter which receives the status of the operation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The value for the given time field, or zero if the field is unset, and <a class="el" href="classCalendar.html#a98ba908ffc6a88d6566983d4f95245df" title="Sets the given time field with the given value.">set()</a> has been called for any other field. </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000176">Deprecated:</a></b></dt><dd>ICU 2.6. Use get(UCalendarDateFields field, UErrorCode&amp; status) instead. </dd></dl>

</div>
</div>
<a class="anchor" id="af41a2769b5ce810d3ea5750c391c53b3"></a><!-- doxytag: member="Calendar::getActualMaximum" ref="af41a2769b5ce810d3ea5750c391c53b3" args="(UCalendarDateFields field, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t Calendar::getActualMaximum </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</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>Return the maximum value that this field could have, given the current date. </p>
<p>For example, with the date "Feb 3, 1997" and the DAY_OF_MONTH field, the actual maximum would be 28; for "Feb 3, 1996" it s 29. Similarly for a Hebrew calendar, for some years the actual maximum for MONTH is 12, and for others 13.</p>
<p>The version of this function on <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> uses an iterative algorithm to determine the actual maximum value for the field. There is almost always a more efficient way to accomplish this (in most cases, you can simply return <a class="el" href="classCalendar.html#ac751035e7d9e6e744edc7d92fd471a4f" title="Gets the maximum value for the given time field.">getMaximum()</a>). <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> overrides this function with a more efficient implementation.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>the field to determine the maximum of </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Fill-in parameter which receives the status of this operation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the maximum of the given field for the current date of this <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></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002199">Stable:</a></b></dt><dd>ICU 2.6. </dd></dl>

<p>Reimplemented in <a class="el" href="classGregorianCalendar.html#aa6dffa7c30b24613fa6762c715dc24ab">GregorianCalendar</a>.</p>

</div>
</div>
<a class="anchor" id="a62c65424820ca64e850b346212eb35a7"></a><!-- doxytag: member="Calendar::getActualMaximum" ref="a62c65424820ca64e850b346212eb35a7" args="(EDateFields field, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t Calendar::getActualMaximum </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</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</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the maximum value that this field could have, given the current date. </p>
<p>For example, with the date "Feb 3, 1997" and the DAY_OF_MONTH field, the actual maximum would be 28; for "Feb 3, 1996" it s 29. Similarly for a Hebrew calendar, for some years the actual maximum for MONTH is 12, and for others 13.</p>
<p>The version of this function on <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> uses an iterative algorithm to determine the actual maximum value for the field. There is almost always a more efficient way to accomplish this (in most cases, you can simply return <a class="el" href="classCalendar.html#ac751035e7d9e6e744edc7d92fd471a4f" title="Gets the maximum value for the given time field.">getMaximum()</a>). <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> overrides this function with a more efficient implementation.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>the field to determine the maximum of </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Fill-in parameter which receives the status of this operation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the maximum of the given field for the current date of this <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></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000175">Deprecated:</a></b></dt><dd>ICU 2.6. Use getActualMaximum(UCalendarDateFields field, UErrorCode&amp; status) instead. </dd></dl>

</div>
</div>
<a class="anchor" id="affad02342fc829b1cb623698a57a1917"></a><!-- doxytag: member="Calendar::getActualMinimum" ref="affad02342fc829b1cb623698a57a1917" args="(UCalendarDateFields field, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t Calendar::getActualMinimum </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</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>Return the minimum value that this field could have, given the current date. </p>
<p>For the Gregorian calendar, this is the same as <a class="el" href="classCalendar.html#a2c0793eb4f9ff0fc0cc1313188ee203a" title="Gets the minimum value for the given time field.">getMinimum()</a> and <a class="el" href="classCalendar.html#a5b6cbd4db4fbfa4fb686689e70633265" title="Gets the highest minimum value for the given field if varies.">getGreatestMinimum()</a>.</p>
<p>The version of this function on <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> uses an iterative algorithm to determine the actual minimum value for the field. There is almost always a more efficient way to accomplish this (in most cases, you can simply return <a class="el" href="classCalendar.html#a2c0793eb4f9ff0fc0cc1313188ee203a" title="Gets the minimum value for the given time field.">getMinimum()</a>). <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> overrides this function with a more efficient implementation.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>the field to determine the minimum of </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Fill-in parameter which receives the status of this operation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the minimum of the given field for the current date of this <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></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002198">Stable:</a></b></dt><dd>ICU 2.6. </dd></dl>

<p>Reimplemented in <a class="el" href="classGregorianCalendar.html#a3cddc1a8bd73250d23ef4ccd632c21c8">GregorianCalendar</a>.</p>

</div>
</div>
<a class="anchor" id="a4e67d27df4e1579ce031de5e6ea05a2e"></a><!-- doxytag: member="Calendar::getActualMinimum" ref="a4e67d27df4e1579ce031de5e6ea05a2e" args="(EDateFields field, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t Calendar::getActualMinimum </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</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</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the minimum value that this field could have, given the current date. </p>
<p>For the Gregorian calendar, this is the same as <a class="el" href="classCalendar.html#a2c0793eb4f9ff0fc0cc1313188ee203a" title="Gets the minimum value for the given time field.">getMinimum()</a> and <a class="el" href="classCalendar.html#a5b6cbd4db4fbfa4fb686689e70633265" title="Gets the highest minimum value for the given field if varies.">getGreatestMinimum()</a>.</p>
<p>The version of this function on <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> uses an iterative algorithm to determine the actual minimum value for the field. There is almost always a more efficient way to accomplish this (in most cases, you can simply return <a class="el" href="classCalendar.html#a2c0793eb4f9ff0fc0cc1313188ee203a" title="Gets the minimum value for the given time field.">getMinimum()</a>). <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> overrides this function with a more efficient implementation.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>the field to determine the minimum of </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Fill-in parameter which receives the status of this operation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the minimum of the given field for the current date of this <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></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000174">Deprecated:</a></b></dt><dd>ICU 2.6. Use getActualMinimum(UCalendarDateFields field, UErrorCode&amp; status) instead. </dd></dl>

<p>Reimplemented in <a class="el" href="classGregorianCalendar.html#af24993c1cd9d48e203b820f6981f991e">GregorianCalendar</a>.</p>

</div>
</div>
<a class="anchor" id="adc0142552cd2e3fa56ed7a800edf4f2d"></a><!-- doxytag: member="Calendar::getAvailableLocales" ref="adc0142552cd2e3fa56ed7a800edf4f2d" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classStringEnumeration.html">StringEnumeration</a>* Calendar::getAvailableLocales </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>INTERNAL FOR 2.6 -- Registration. </p>
<p>Return a <a class="el" href="classStringEnumeration.html" title="Base class for &#39;pure&#39; C++ implementations of uenum api.">StringEnumeration</a> over the locales available at the time of the call, including registered locales. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>a <a class="el" href="classStringEnumeration.html" title="Base class for &#39;pure&#39; C++ implementations of uenum api.">StringEnumeration</a> over the locales available at the time of the call </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000205">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

</div>
</div>
<a class="anchor" id="a6b87567eb37ad5c07c17e6a2c46d257e"></a><!-- doxytag: member="Calendar::getAvailableLocales" ref="a6b87567eb37ad5c07c17e6a2c46d257e" args="(int32_t &amp;count)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static const <a class="el" href="classLocale.html">Locale</a>* Calendar::getAvailableLocales </td>
          <td>(</td>
          <td class="paramtype">int32_t &amp;&nbsp;</td>
          <td class="paramname"> <em>count</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a list of the locales for which Calendars are installed. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>Number of locales returned. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>An array of <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a> objects representing the set of locales for which Calendars are installed. The system retains ownership of this list; the caller must NOT delete it. Does not include user-registered Calendars. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002168">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="abec2a3692bdce31b2e341353a5f25bbe"></a><!-- doxytag: member="Calendar::getDayOfWeekType" ref="abec2a3692bdce31b2e341353a5f25bbe" args="(UCalendarDaysOfWeek dayOfWeek, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="ucal_8h.html#a5d1f042c84dc291891c208d4c7dcd933">UCalendarWeekdayType</a> Calendar::getDayOfWeekType </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a62d9fe551bd48e4141fce52b917119a4">UCalendarDaysOfWeek</a>&nbsp;</td>
          <td class="paramname"> <em>dayOfWeek</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="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 whether the given day of the week is a weekday, a weekend day, or a day that transitions from one to the other, in this calendar system. </p>
<p>If a transition occurs at midnight, then the days before and after the transition will have the type UCAL_WEEKDAY or UCAL_WEEKEND. If a transition occurs at a time other than midnight, then the day of the transition will have the type UCAL_WEEKEND_ONSET or UCAL_WEEKEND_CEASE. In this case, the method <a class="el" href="classCalendar.html#a4a059bb760a45a663a690c7507c09019" title="Returns the time during the day at which the weekend begins or ends in this calendar...">getWeekendTransition()</a> will return the point of transition. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dayOfWeek</em>&nbsp;</td><td>The day of the week whose type is desired (UCAL_SUNDAY..UCAL_SATURDAY). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>The error code for the operation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The UCalendarWeekdayType for the day of the week. </dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000130">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl>

</div>
</div>
<a class="anchor" id="acbee04cad5b9e301e47e1a47fb978002"></a><!-- doxytag: member="Calendar::getDefaultDayInMonth" ref="acbee04cad5b9e301e47e1a47fb978002" args="(int32_t eyear, int32_t month)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t Calendar::getDefaultDayInMonth </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>eyear</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>month</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Called by computeJulianDay. </p>
<p>Returns the default day (1-based) for the month, taking currently-set year and era into account. Defaults to 1 for Gregorian. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>eyear</em>&nbsp;</td><td>the extended year </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>month</em>&nbsp;</td><td>the month in the year </td></tr>
  </table>
  </dd>
</dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000198">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

</div>
</div>
<a class="anchor" id="a3e79fb81c806fd5ff9c64acc7c8bebc8"></a><!-- doxytag: member="Calendar::getDefaultMonthInYear" ref="a3e79fb81c806fd5ff9c64acc7c8bebc8" args="(int32_t eyear)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t Calendar::getDefaultMonthInYear </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>eyear</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Called by computeJulianDay. </p>
<p>Returns the default month (0-based) for the year, taking year and era into account. Defaults to 0 for Gregorian, which doesn't care. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>eyear</em>&nbsp;</td><td>The extended year </td></tr>
  </table>
  </dd>
</dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000197">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

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

<p>Returns a unique class ID POLYMORPHICALLY. </p>
<p>Pure virtual method. This method is to implement a simple version of RTTI, since not all C++ compilers support genuine RTTI. Polymorphic <a class="el" href="classCalendar.html#aa231d324e53576d3198a0aedd129f3ad" title="Compares the equality of two Calendar objects.">operator==()</a> and <a class="el" href="classCalendar.html#a369327438e076e64c99ec1d669919957" title="Create and return a polymorphic copy of this calendar.">clone()</a> methods call this method. </p>
<p>Concrete subclasses of <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> must implement <a class="el" href="classCalendar.html#a13e235c4396d92fc3b129d6a07e6076a" title="Returns a unique class ID POLYMORPHICALLY.">getDynamicClassID()</a> and also a static method and data member:</p>
<p>static UClassID getStaticClassID() { return (UClassID)&amp;fgClassID; } static char fgClassID;</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#_stable002208">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

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

<p>Implemented in <a class="el" href="classGregorianCalendar.html#ad692fc0734c8b0dd5af7cf8f403caa87">GregorianCalendar</a>.</p>

</div>
</div>
<a class="anchor" id="a25bc194dc5449b325b1d44c8f1d29d5c"></a><!-- doxytag: member="Calendar::getFieldResolutionTable" ref="a25bc194dc5449b325b1d44c8f1d29d5c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const <a class="el" href="calendar_8h.html#ab9f6041161064a1936388e94e9788fe2">UFieldResolutionTable</a>* Calendar::getFieldResolutionTable </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000189">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

</div>
</div>
<a class="anchor" id="a063ed9d458f2ab4fd0f4e40ab7d81307"></a><!-- doxytag: member="Calendar::getFirstDayOfWeek" ref="a063ed9d458f2ab4fd0f4e40ab7d81307" args="(UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="ucal_8h.html#a62d9fe551bd48e4141fce52b917119a4">UCalendarDaysOfWeek</a> Calendar::getFirstDayOfWeek </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> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets what the first day of the week is; e.g., Sunday in US, Monday in France. </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>error code </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The first day of the week. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002191">Stable:</a></b></dt><dd>ICU 2.6 </dd></dl>

</div>
</div>
<a class="anchor" id="a0a8bdc7ffb9d13e948ef0268dbdddc26"></a><!-- doxytag: member="Calendar::getFirstDayOfWeek" ref="a0a8bdc7ffb9d13e948ef0268dbdddc26" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCalendar.html#a28d5c395b3200c812950321637796aa4">EDaysOfWeek</a> Calendar::getFirstDayOfWeek </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets what the first day of the week is; e.g., Sunday in US, Monday in France. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The first day of the week. </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000169">Deprecated:</a></b></dt><dd>ICU 2.6 use the overload with error code </dd></dl>

</div>
</div>
<a class="anchor" id="a82e27703afb741739d0505b58d6860df"></a><!-- doxytag: member="Calendar::getGreatestMinimum" ref="a82e27703afb741739d0505b58d6860df" args="(UCalendarDateFields field) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t Calendar::getGreatestMinimum </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the highest minimum value for the given field if varies. </p>
<p>Otherwise same as <a class="el" href="classCalendar.html#a2c0793eb4f9ff0fc0cc1313188ee203a" title="Gets the minimum value for the given time field.">getMinimum()</a>. For Gregorian, no difference.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>The given time field. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The highest minimum value for the given time field. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002196">Stable:</a></b></dt><dd>ICU 2.6. </dd></dl>

</div>
</div>
<a class="anchor" id="a5b6cbd4db4fbfa4fb686689e70633265"></a><!-- doxytag: member="Calendar::getGreatestMinimum" ref="a5b6cbd4db4fbfa4fb686689e70633265" args="(EDateFields field) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t Calendar::getGreatestMinimum </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the highest minimum value for the given field if varies. </p>
<p>Otherwise same as <a class="el" href="classCalendar.html#a2c0793eb4f9ff0fc0cc1313188ee203a" title="Gets the minimum value for the given time field.">getMinimum()</a>. For Gregorian, no difference.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>The given time field. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The highest minimum value for the given time field. </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000172">Deprecated:</a></b></dt><dd>ICU 2.6. Use getGreatestMinimum(UCalendarDateFields field) instead. </dd></dl>

</div>
</div>
<a class="anchor" id="ab93138a7b1ce4a87216ae10165e9cbae"></a><!-- doxytag: member="Calendar::getGregorianDayOfMonth" ref="ab93138a7b1ce4a87216ae10165e9cbae" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t Calendar::getGregorianDayOfMonth </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the day of month (1-based) on the Gregorian calendar as computed by <code><a class="el" href="classCalendar.html#a61c3cc26aa39009391dff9e89a41ec67" title="Compute the Gregorian calendar year, month, and day of month from the Julian day...">computeGregorianFields()</a></code>. </p>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000196">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l01790">1790</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab4a3b8fb109ffa673e0333a1006a7c70"></a><!-- doxytag: member="Calendar::getGregorianDayOfYear" ref="ab4a3b8fb109ffa673e0333a1006a7c70" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t Calendar::getGregorianDayOfYear </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the day of year (1-based) on the Gregorian calendar as computed by <code><a class="el" href="classCalendar.html#a61c3cc26aa39009391dff9e89a41ec67" title="Compute the Gregorian calendar year, month, and day of month from the Julian day...">computeGregorianFields()</a></code>. </p>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000195">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l01781">1781</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<a class="anchor" id="adf8c69e617291bb10a56d683fa8282e0"></a><!-- doxytag: member="Calendar::getGregorianMonth" ref="adf8c69e617291bb10a56d683fa8282e0" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t Calendar::getGregorianMonth </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the month (0-based) on the Gregorian calendar as computed by <code><a class="el" href="classCalendar.html#a61c3cc26aa39009391dff9e89a41ec67" title="Compute the Gregorian calendar year, month, and day of month from the Julian day...">computeGregorianFields()</a></code>. </p>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000194">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l01772">1772</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5393a0561dd038edff6eddb3be6c999d"></a><!-- doxytag: member="Calendar::getGregorianYear" ref="a5393a0561dd038edff6eddb3be6c999d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t Calendar::getGregorianYear </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the extended year on the Gregorian calendar as computed by <code><a class="el" href="classCalendar.html#a61c3cc26aa39009391dff9e89a41ec67" title="Compute the Gregorian calendar year, month, and day of month from the Julian day...">computeGregorianFields()</a></code>. </p>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000193">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l01763">1763</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<a class="anchor" id="a4e13223ab9167f43c9bddb06a58225b4"></a><!-- doxytag: member="Calendar::getKeywordValuesForLocale" ref="a4e13223ab9167f43c9bddb06a58225b4" args="(const char *key, const Locale &amp;locale, UBool commonlyUsed, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classStringEnumeration.html">StringEnumeration</a>* Calendar::getKeywordValuesForLocale </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td>
          <td class="paramname"> <em>commonlyUsed</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Given a key and a locale, returns an array of string values in a preferred order that would make a difference. </p>
<p>These are all and only those values where the open (creation) of the service with the locale formed from the input locale plus input keyword and that value has different behavior than creation with the input locale alone. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>key</em>&nbsp;</td><td>one of the keys supported by this service. For now, only "calendar" is supported. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>locale</em>&nbsp;</td><td>the locale </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>commonlyUsed</em>&nbsp;</td><td>if set to true it will return only commonly used values with the given locale in preferred order. Otherwise, it will return all the available values for the locale. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>ICU Error Code </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a string enumeration over keyword values for the given key and the locale. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002169">Stable:</a></b></dt><dd>ICU 4.2 </dd></dl>

</div>
</div>
<a class="anchor" id="a053ab977d86c1a7256ccf59e13e87d88"></a><!-- doxytag: member="Calendar::getLeastMaximum" ref="a053ab977d86c1a7256ccf59e13e87d88" args="(UCalendarDateFields field) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t Calendar::getLeastMaximum </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the lowest maximum value for the given field if varies. </p>
<p>Otherwise same as <a class="el" href="classCalendar.html#ac751035e7d9e6e744edc7d92fd471a4f" title="Gets the maximum value for the given time field.">getMaximum()</a>. e.g., for Gregorian DAY_OF_MONTH, 28.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>The given time field. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The lowest maximum value for the given time field. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002197">Stable:</a></b></dt><dd>ICU 2.6. </dd></dl>

</div>
</div>
<a class="anchor" id="aacf8382337e234b96bfe4e470dcc4817"></a><!-- doxytag: member="Calendar::getLeastMaximum" ref="aacf8382337e234b96bfe4e470dcc4817" args="(EDateFields field) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t Calendar::getLeastMaximum </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the lowest maximum value for the given field if varies. </p>
<p>Otherwise same as <a class="el" href="classCalendar.html#ac751035e7d9e6e744edc7d92fd471a4f" title="Gets the maximum value for the given time field.">getMaximum()</a>. e.g., for Gregorian DAY_OF_MONTH, 28.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>The given time field. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The lowest maximum value for the given time field. </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000173">Deprecated:</a></b></dt><dd>ICU 2.6. Use getLeastMaximum(UCalendarDateFields field) instead. </dd></dl>

</div>
</div>
<a class="anchor" id="a8083df729da06f0271e29e8b7e4376d6"></a><!-- doxytag: member="Calendar::getLimit" ref="a8083df729da06f0271e29e8b7e4376d6" args="(UCalendarDateFields field, ELimitType limitType) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t Calendar::getLimit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classCalendar.html#aed3b40eef888db3a26315f3a0c37b076">ELimitType</a>&nbsp;</td>
          <td class="paramname"> <em>limitType</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return a limit for a field. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>the field, from <code>0..UCAL_MAX_FIELD</code> </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>limitType</em>&nbsp;</td><td>the type specifier for the limit </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classCalendar.html#aed3b40eef888db3a26315f3a0c37b076" title="Limit enums.">ELimitType</a> </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000174">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

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

<p>returns the local DOW, valid range 0..6 </p>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000200">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

</div>
</div>
<a class="anchor" id="a019f867554a0f3dbc3ee865bf7864295"></a><!-- doxytag: member="Calendar::getLocale" ref="a019f867554a0f3dbc3ee865bf7864295" args="(ULocDataLocaleType type, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classLocale.html">Locale</a> Calendar::getLocale </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="uloc_8h.html#adf053345d343f8d82ae080f7a5871f34">ULocDataLocaleType</a>&nbsp;</td>
          <td class="paramname"> <em>type</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</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the locale for this calendar object. </p>
<p>You can choose between valid and actual locale. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>type</em>&nbsp;</td><td>type of the locale we're looking for (valid or actual) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>error code for the operation </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the locale </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002232">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl>

</div>
</div>
<a class="anchor" id="aec71fd785775da0decb82cd819ccfaba"></a><!-- doxytag: member="Calendar::getLocaleID" ref="aec71fd785775da0decb82cd819ccfaba" args="(ULocDataLocaleType type, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* Calendar::getLocaleID </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="uloc_8h.html#adf053345d343f8d82ae080f7a5871f34">ULocDataLocaleType</a>&nbsp;</td>
          <td class="paramname"> <em>type</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</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the locale for this calendar object. </p>
<p>You can choose between valid and actual locale. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>type</em>&nbsp;</td><td>type of the locale we're looking for (valid or actual) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>error code for the operation </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the locale </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000214">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

</div>
</div>
<a class="anchor" id="a53ddf6470cb971f44d501a097ca52e7e"></a><!-- doxytag: member="Calendar::getMaximum" ref="a53ddf6470cb971f44d501a097ca52e7e" args="(UCalendarDateFields field) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t Calendar::getMaximum </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the maximum value for the given time field. </p>
<p>e.g. for Gregorian DAY_OF_MONTH, 31.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>The given time field. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The maximum value for the given time field. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002195">Stable:</a></b></dt><dd>ICU 2.6. </dd></dl>

</div>
</div>
<a class="anchor" id="ac751035e7d9e6e744edc7d92fd471a4f"></a><!-- doxytag: member="Calendar::getMaximum" ref="ac751035e7d9e6e744edc7d92fd471a4f" args="(EDateFields field) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t Calendar::getMaximum </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the maximum value for the given time field. </p>
<p>e.g. for Gregorian DAY_OF_MONTH, 31.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>The given time field. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The maximum value for the given time field. </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000171">Deprecated:</a></b></dt><dd>ICU 2.6. Use getMaximum(UCalendarDateFields field) instead. </dd></dl>

</div>
</div>
<a class="anchor" id="ac39fb4eea23b9ea863ac3119913a3322"></a><!-- doxytag: member="Calendar::getMinimalDaysInFirstWeek" ref="ac39fb4eea23b9ea863ac3119913a3322" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t Calendar::getMinimalDaysInFirstWeek </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets what the minimal days required in the first week of the year are; e.g., if the first week is defined as one that contains the first day of the first month of a year, getMinimalDaysInFirstWeek returns 1. </p>
<p>If the minimal days required must be a full week, getMinimalDaysInFirstWeek returns 7.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The minimal days required in the first week of the year. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002193">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a3b36ad1a0ae8cc44faf2062971c54dad"></a><!-- doxytag: member="Calendar::getMinimum" ref="a3b36ad1a0ae8cc44faf2062971c54dad" args="(UCalendarDateFields field) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t Calendar::getMinimum </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the minimum value for the given time field. </p>
<p>e.g., for Gregorian DAY_OF_MONTH, 1.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>The given time field. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The minimum value for the given time field. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002194">Stable:</a></b></dt><dd>ICU 2.6. </dd></dl>

</div>
</div>
<a class="anchor" id="a2c0793eb4f9ff0fc0cc1313188ee203a"></a><!-- doxytag: member="Calendar::getMinimum" ref="a2c0793eb4f9ff0fc0cc1313188ee203a" args="(EDateFields field) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t Calendar::getMinimum </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the minimum value for the given time field. </p>
<p>e.g., for Gregorian DAY_OF_MONTH, 1.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>The given time field. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The minimum value for the given time field. </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000170">Deprecated:</a></b></dt><dd>ICU 2.6. Use getMinimum(UCalendarDateFields field) instead. </dd></dl>

</div>
</div>
<a class="anchor" id="aab1712ccf7b261332a4d14c71dc6994e"></a><!-- doxytag: member="Calendar::getNow" ref="aab1712ccf7b261332a4d14c71dc6994e" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> Calendar::getNow </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>Returns the current UTC (GMT) time measured in milliseconds since 0:00:00 on 1/1/70 (derived from the system time). </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The current UTC time in milliseconds. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002170">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a84d108d140a43b019c3ab3d022d7c68b"></a><!-- doxytag: member="Calendar::getTime" ref="a84d108d140a43b019c3ab3d022d7c68b" args="(UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> Calendar::getTime </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> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets this Calendar's time as milliseconds. </p>
<p>May involve recalculation of time due to previous calls to set time field values. The time specified is non-local UTC (GMT) time. Although this method is const, this object may actually be changed (semantically const).</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code on exit. If any value previously set in the time field is invalid or restricted by leniency, this will be set to an error status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The current time in UTC (GMT) time, or zero if the operation failed. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002171">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l00410">410</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5aa1432697348561cc9259bc2c0974c0"></a><!-- doxytag: member="Calendar::getTimeInMillis" ref="a5aa1432697348561cc9259bc2c0974c0" args="(UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Calendar::getTimeInMillis </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> const<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets this Calendar's current time as a long. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code on exit. If any value previously set in the time field is invalid or restricted by leniency, this will be set to an error status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the current time as UTC milliseconds from the epoch. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002216">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a1ef5c22031d5899ffbedc7032d892087"></a><!-- doxytag: member="Calendar::getTimeZone" ref="a1ef5c22031d5899ffbedc7032d892087" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classTimeZone.html">TimeZone</a>&amp; Calendar::getTimeZone </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a reference to the time zone owned by this calendar. </p>
<p>The returned reference is only valid until clients make another call to adoptTimeZone or setTimeZone, or this <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> is destroyed.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The time zone object associated with this calendar. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002185">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a46741d547451faae02591381593d127b"></a><!-- doxytag: member="Calendar::getType" ref="a46741d547451faae02591381593d127b" args="() const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const char* Calendar::getType </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the resource key string used for this calendar type. </p>
<p>For example, prepending "Eras_" to this string could return "Eras_japanese" or "Eras_gregorian".</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>static string, for example, "gregorian" or "japanese" </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000168">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Implemented in <a class="el" href="classGregorianCalendar.html#a9d3dbbead3bf74c685b479e5115e514c">GregorianCalendar</a>.</p>

</div>
</div>
<a class="anchor" id="a4a059bb760a45a663a690c7507c09019"></a><!-- doxytag: member="Calendar::getWeekendTransition" ref="a4a059bb760a45a663a690c7507c09019" args="(UCalendarDaysOfWeek dayOfWeek, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t Calendar::getWeekendTransition </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a62d9fe551bd48e4141fce52b917119a4">UCalendarDaysOfWeek</a>&nbsp;</td>
          <td class="paramname"> <em>dayOfWeek</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="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 time during the day at which the weekend begins or ends in this calendar system. </p>
<p>If <a class="el" href="classCalendar.html#abec2a3692bdce31b2e341353a5f25bbe" title="Returns whether the given day of the week is a weekday, a weekend day, or a day that...">getDayOfWeekType()</a> rerturns UCAL_WEEKEND_ONSET for the specified dayOfWeek, return the time at which the weekend begins. If <a class="el" href="classCalendar.html#abec2a3692bdce31b2e341353a5f25bbe" title="Returns whether the given day of the week is a weekday, a weekend day, or a day that...">getDayOfWeekType()</a> returns UCAL_WEEKEND_CEASE for the specified dayOfWeek, return the time at which the weekend ends. If <a class="el" href="classCalendar.html#abec2a3692bdce31b2e341353a5f25bbe" title="Returns whether the given day of the week is a weekday, a weekend day, or a day that...">getDayOfWeekType()</a> returns some other UCalendarWeekdayType for the specified dayOfWeek, is it an error condition (U_ILLEGAL_ARGUMENT_ERROR). </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dayOfWeek</em>&nbsp;</td><td>The day of the week for which the weekend transition time is desired (UCAL_SUNDAY..UCAL_SATURDAY). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>The error code for the operation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The milliseconds after midnight at which the weekend begins or ends. </dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000131">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl>

</div>
</div>
<a class="anchor" id="a195fad36b525b46df8934aca312db35e"></a><!-- doxytag: member="Calendar::handleComputeFields" ref="a195fad36b525b46df8934aca312db35e" args="(int32_t julianDay, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Calendar::handleComputeFields </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>julianDay</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> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Subclasses may override this method to compute several fields specific to each calendar system. </p>
<p>These are:</p>
<ul>
<li>
ERA </li>
<li>
YEAR </li>
<li>
MONTH </li>
<li>
DAY_OF_MONTH </li>
<li>
DAY_OF_YEAR </li>
<li>
EXTENDED_YEAR</li>
</ul>
<p>Subclasses can refer to the DAY_OF_WEEK and DOW_LOCAL fields, which will be set when this method is called. Subclasses can also call the getGregorianXxx() methods to obtain Gregorian calendar equivalents for the given Julian day.</p>
<p>In addition, subclasses should compute any subclass-specific fields, that is, fields from BASE_FIELD_COUNT to getFieldCount() - 1.</p>
<p>The default implementation in <code><a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a></code> implements a pure proleptic Gregorian calendar. </p>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000192">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Reimplemented in <a class="el" href="classGregorianCalendar.html#a2f31b54f19ec8588cb1cfe1ade77eb07">GregorianCalendar</a>.</p>

</div>
</div>
<a class="anchor" id="afd953ab4dc160ffc1b586c627c2c6ad9"></a><!-- doxytag: member="Calendar::handleComputeJulianDay" ref="afd953ab4dc160ffc1b586c627c2c6ad9" args="(UCalendarDateFields bestField)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t Calendar::handleComputeJulianDay </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>bestField</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Subclasses may override this. </p>
<p>This method calls <a class="el" href="classCalendar.html#aaa7b064d37f1ac4b66dc57fef6481cda" title="Return the number of days in the given month of the given extended year of this calendar...">handleGetMonthLength()</a> to obtain the calendar-specific month length. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>bestField</em>&nbsp;</td><td>which field to use to calculate the date </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>julian day specified by calendar fields. </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000178">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Reimplemented in <a class="el" href="classGregorianCalendar.html#a59b86395575bf7784ffe1f2edac5b165">GregorianCalendar</a>.</p>

</div>
</div>
<a class="anchor" id="addb140c1bca76059b1a4084433ab67db"></a><!-- doxytag: member="Calendar::handleComputeMonthStart" ref="addb140c1bca76059b1a4084433ab67db" args="(int32_t eyear, int32_t month, UBool useMonth) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t Calendar::handleComputeMonthStart </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>eyear</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"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td>
          <td class="paramname"> <em>useMonth</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [protected, pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the Julian day number of day before the first day of the given month in the given extended year. </p>
<p>Subclasses should override this method to implement their calendar system. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>eyear</em>&nbsp;</td><td>the extended year </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>month</em>&nbsp;</td><td>the zero-based month, or 0 if useMonth is false </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>useMonth</em>&nbsp;</td><td>if false, compute the day before the first day of the given year, otherwise, compute the day before the first day of the given month </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the Julian day number of the day before the first day of the given month and year </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000175">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Implemented in <a class="el" href="classGregorianCalendar.html#a87badc27fdb6dc0638bc94864a4961d9">GregorianCalendar</a>.</p>

</div>
</div>
<a class="anchor" id="a465fbc6494f2126892dcd694217697f4"></a><!-- doxytag: member="Calendar::handleGetExtendedYear" ref="a465fbc6494f2126892dcd694217697f4" args="()=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t Calendar::handleGetExtendedYear </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the extended year defined by the current fields. </p>
<p>This will use the UCAL_EXTENDED_YEAR field or the UCAL_YEAR and supra-year fields (such as UCAL_ERA) specific to the calendar system, depending on which set of fields is newer. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the extended year </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000177">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Implemented in <a class="el" href="classGregorianCalendar.html#a9c8ef3f3ae56e41f52c7fd353348a09f">GregorianCalendar</a>.</p>

</div>
</div>
<a class="anchor" id="a116247236ceda5f3d5424767d3c3c561"></a><!-- doxytag: member="Calendar::handleGetExtendedYearFromWeekFields" ref="a116247236ceda5f3d5424767d3c3c561" args="(int32_t yearWoy, int32_t woy)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t Calendar::handleGetExtendedYearFromWeekFields </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>yearWoy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>woy</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Subclasses must override this to convert from week fields (YEAR_WOY and WEEK_OF_YEAR) to an extended year in the case where YEAR, EXTENDED_YEAR are not set. </p>
<p>The <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> implementation assumes yearWoy is in extended gregorian form </p>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000179">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the extended year, UCAL_EXTENDED_YEAR </dd></dl>

<p>Reimplemented in <a class="el" href="classGregorianCalendar.html#a9068000f1c22c0d27ab752e01cacf082">GregorianCalendar</a>.</p>

</div>
</div>
<a class="anchor" id="afd43a5f74be144b5ac90bc57a2f9cede"></a><!-- doxytag: member="Calendar::handleGetLimit" ref="afd43a5f74be144b5ac90bc57a2f9cede" args="(UCalendarDateFields field, ELimitType limitType) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t Calendar::handleGetLimit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classCalendar.html#aed3b40eef888db3a26315f3a0c37b076">ELimitType</a>&nbsp;</td>
          <td class="paramname"> <em>limitType</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [protected, pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Subclass API for defining limits of different types. </p>
<p>Subclasses must implement this method to return limits for the following fields:</p>
<pre>UCAL_ERA
 UCAL_YEAR
 UCAL_MONTH
 UCAL_WEEK_OF_YEAR
 UCAL_WEEK_OF_MONTH
 UCAL_DATE (DAY_OF_MONTH on Java)
 UCAL_DAY_OF_YEAR
 UCAL_DAY_OF_WEEK_IN_MONTH
 UCAL_YEAR_WOY
 UCAL_EXTENDED_YEAR</pre><dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>one of the above field numbers </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>limitType</em>&nbsp;</td><td>one of <code>MINIMUM</code>, <code>GREATEST_MINIMUM</code>, <code>LEAST_MAXIMUM</code>, or <code>MAXIMUM</code> </td></tr>
  </table>
  </dd>
</dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000173">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Implemented in <a class="el" href="classGregorianCalendar.html#a6075f0ad5bbe0cecd8283e45e93d482c">GregorianCalendar</a>.</p>

</div>
</div>
<a class="anchor" id="aaa7b064d37f1ac4b66dc57fef6481cda"></a><!-- doxytag: member="Calendar::handleGetMonthLength" ref="aaa7b064d37f1ac4b66dc57fef6481cda" args="(int32_t extendedYear, int32_t month) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t Calendar::handleGetMonthLength </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>extendedYear</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>month</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the number of days in the given month of the given extended year of this calendar system. </p>
<p>Subclasses should override this method if they can provide a more correct or more efficient implementation than the default implementation in <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>. </p>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000176">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Reimplemented in <a class="el" href="classGregorianCalendar.html#a05a03940641b2455a2875cbc31f386e9">GregorianCalendar</a>.</p>

</div>
</div>
<a class="anchor" id="acb983bdeebcfb0441ed46256b0f444cc"></a><!-- doxytag: member="Calendar::handleGetYearLength" ref="acb983bdeebcfb0441ed46256b0f444cc" args="(int32_t eyear) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t Calendar::handleGetYearLength </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>eyear</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the number of days in the given extended year of this calendar system. </p>
<p>Subclasses should override this method if they can provide a more correct or more efficient implementation than the default implementation in <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002220">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented in <a class="el" href="classGregorianCalendar.html#a32772c0335d2440b8fcb4cf7569e9f84">GregorianCalendar</a>.</p>

</div>
</div>
<a class="anchor" id="ae5bb9c44ecea69ad64d813fe41de6efa"></a><!-- doxytag: member="Calendar::haveDefaultCentury" ref="ae5bb9c44ecea69ad64d813fe41de6efa" args="() const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> Calendar::haveDefaultCentury </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000211">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if this calendar has a default century (i.e. 03 -&gt; 2003) </dd></dl>

<p>Implemented in <a class="el" href="classGregorianCalendar.html#a777df4314a0e9266ee3fd20afcdb3218">GregorianCalendar</a>.</p>

</div>
</div>
<a class="anchor" id="a8199d459b6d2171fb62620fab29b8668"></a><!-- doxytag: member="Calendar::inDaylightTime" ref="a8199d459b6d2171fb62620fab29b8668" args="(UErrorCode &amp;status) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> Calendar::inDaylightTime </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> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Queries if the current date for this <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> is in Daylight Savings 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>status</em>&nbsp;</td><td>Fill-in parameter which receives the status of this operation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if the current date for this <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> is in Daylight Savings Time, false, otherwise. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002187">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implemented in <a class="el" href="classGregorianCalendar.html#aa9dcb25c2fefe715f33fad5e11075cd8">GregorianCalendar</a>.</p>

</div>
</div>
<a class="anchor" id="abe0e23ba4107c023faf3fd6f70a1e78c"></a><!-- doxytag: member="Calendar::internalGet" ref="abe0e23ba4107c023faf3fd6f70a1e78c" args="(UCalendarDateFields field) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t Calendar::internalGet </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the value for a given time field. </p>
<p>Subclasses can use this function to get field values without forcing recomputation of 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>field</em>&nbsp;</td><td>The given time field. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The value for the given time field. </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000170">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l01382">1382</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<a class="anchor" id="ada18cdb870dd8e8e8507018c93a42ec0"></a><!-- doxytag: member="Calendar::internalGet" ref="ada18cdb870dd8e8e8507018c93a42ec0" args="(UCalendarDateFields field, int32_t defaultValue) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t Calendar::internalGet </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>defaultValue</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [inline, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the value for a given time field. </p>
<p>Subclasses can use this function to get field values without forcing recomputation of time. If the field's stamp is UNSET, the defaultValue is used.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>The given time field. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>defaultValue</em>&nbsp;</td><td>a default value used if the field is unset. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The value for the given time field. </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000169">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l01372">1372</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<a class="anchor" id="afcc83cb53a32ea4898280dfaa1a1d881"></a><!-- doxytag: member="Calendar::internalGet" ref="afcc83cb53a32ea4898280dfaa1a1d881" args="(EDateFields field) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t Calendar::internalGet </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the value for a given time field. </p>
<p>Subclasses can use this function to get field values without forcing recomputation of 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>field</em>&nbsp;</td><td>The given time field. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The value for the given time field. </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000180">Deprecated:</a></b></dt><dd>ICU 2.6. Use internalGet(UCalendarDateFields field) instead. </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l01360">1360</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad20fe42624b49a8a3fca48a06425c4f9"></a><!-- doxytag: member="Calendar::internalGetTime" ref="ad20fe42624b49a8a3fca48a06425c4f9" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> Calendar::internalGetTime </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the current time without recomputing. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the current time without recomputing. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002225">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l01692">1692</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<a class="anchor" id="a80318e4604dde732ac89aa81311fbf68"></a><!-- doxytag: member="Calendar::internalSet" ref="a80318e4604dde732ac89aa81311fbf68" args="(UCalendarDateFields field, int32_t value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Calendar::internalSet </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the value for a given time field. </p>
<p>Fast method for subclasses.</p>
<p>This is a fast internal method for subclasses. It does not affect the areFieldsInSync, isTimeSet, or areAllFieldsSet flags.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>The given time field. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>The value for the given time field. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002219">Stable:</a></b></dt><dd>ICU 2.6. </dd></dl>
<p>The caller must maintain fUserSetDSTOffset and fUserSetZoneOffset, as well as the isSet[] array. </p>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l02235">2235</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

<p>References <a class="el" href="calendar_8h_source.html#l01707">fFields</a>, <a class="el" href="calendar_8h_source.html#l01713">fIsSet</a>, <a class="el" href="calendar_8h_source.html#l01730">fStamp</a>, and <a class="el" href="umachine_8h_source.html#l00223">TRUE</a>.</p>

</div>
</div>
<a class="anchor" id="a1966488fa1954b3ef426c8dde4d341c6"></a><!-- doxytag: member="Calendar::internalSet" ref="a1966488fa1954b3ef426c8dde4d341c6" args="(EDateFields field, int32_t value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Calendar::internalSet </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the value for a given time field. </p>
<p>This is a fast internal method for subclasses. It does not affect the areFieldsInSync, isTimeSet, or areAllFieldsSet flags.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>The given time field. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>The value for the given time field. </td></tr>
  </table>
  </dd>
</dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000181">Deprecated:</a></b></dt><dd>ICU 2.6. Use <a class="el" href="classCalendar.html#a80318e4604dde732ac89aa81311fbf68" title="Sets the value for a given time field.">internalSet(UCalendarDateFields field, int32_t value)</a> instead. </dd></dl>

</div>
</div>
<a class="anchor" id="a5066148dcb8ef8c6452b77a0d468344c"></a><!-- doxytag: member="Calendar::internalSetTime" ref="a5066148dcb8ef8c6452b77a0d468344c" args="(UDate time)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Calendar::internalSetTime </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a>&nbsp;</td>
          <td class="paramname"> <em>time</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the current time without affecting flags or fields. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>time</em>&nbsp;</td><td>The time to be set </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the current time without recomputing. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002226">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l01701">1701</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

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

<p>Returns TRUE if the given <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> object is equivalent to this one. </p>
<p>An equivalent <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> will behave exactly as this one does, but it may be set to a different time. By contrast, for the <a class="el" href="classCalendar.html#aa231d324e53576d3198a0aedd129f3ad" title="Compares the equality of two Calendar objects.">operator==()</a> method to return TRUE, the other <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> must be set to the same 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>other</em>&nbsp;</td><td>the <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> to be compared with this <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002175">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

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

<p>Tells whether date/time interpretation is to be lenient. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>True tells that date/time interpretation is to be lenient. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002189">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="abc3510e5a75c30637122bff345f639cb"></a><!-- doxytag: member="Calendar::isSet" ref="abc3510e5a75c30637122bff345f639cb" args="(UCalendarDateFields field) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> Calendar::isSet </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Determines if the given time field has a value set. </p>
<p>This can affect in the resolving of time in <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>. Unset fields have a value of zero, by definition.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>The given time field. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if the given time field has a value set; false otherwise. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002201">Stable:</a></b></dt><dd>ICU 2.6. </dd></dl>

</div>
</div>
<a class="anchor" id="aa58ac68d0d775d0766cf2d69d145233b"></a><!-- doxytag: member="Calendar::isSet" ref="aa58ac68d0d775d0766cf2d69d145233b" args="(EDateFields field) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> Calendar::isSet </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Determines if the given time field has a value set. </p>
<p>This can affect in the resolving of time in <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>. Unset fields have a value of zero, by definition.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>The given time field. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if the given time field has a value set; false otherwise. </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000177">Deprecated:</a></b></dt><dd>ICU 2.6. Use isSet(UCalendarDateFields field) instead. </dd></dl>

</div>
</div>
<a class="anchor" id="a8e5dc579bef95c7293823e6ba65eaea3"></a><!-- doxytag: member="Calendar::isWeekend" ref="a8e5dc579bef95c7293823e6ba65eaea3" 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> Calendar::isWeekend </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 TRUE if this Calendar's current date-time is in the weekend in this calendar system. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if this Calendar's current date-time is in the weekend in this calendar system, FALSE otherwise. </dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000133">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl>

</div>
</div>
<a class="anchor" id="a73f2c04e318b4721b78191251fd33599"></a><!-- doxytag: member="Calendar::isWeekend" ref="a73f2c04e318b4721b78191251fd33599" 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> Calendar::isWeekend </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 UDate is in the weekend in this calendar system. </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 UDate in question. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>The error code for the operation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if the given UDate is in the weekend in this calendar system, FALSE otherwise. </dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000132">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl>

</div>
</div>
<a class="anchor" id="ac80054059c45d5b2466c9aaab596ec1e"></a><!-- doxytag: member="Calendar::julianDayToDayOfWeek" ref="ac80054059c45d5b2466c9aaab596ec1e" args="(double julian)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static uint8_t Calendar::julianDayToDayOfWeek </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>julian</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Convert a quasi Julian date to the day of the week. </p>
<p>The Julian date used here is not a true Julian date, since it is measured from midnight, not noon. Return value is one-based.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>julian</em>&nbsp;</td><td>The given Julian date number. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Day number from 1..7 (SUN..SAT). </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000204">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

</div>
</div>
<a class="anchor" id="a3449f24abb996590a0df022367599a87"></a><!-- doxytag: member="Calendar::newerField" ref="a3449f24abb996590a0df022367599a87" args="(UCalendarDateFields defaultField, UCalendarDateFields alternateField) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> Calendar::newerField </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>defaultField</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>alternateField</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the field that is newer, either defaultField, or alternateField. </p>
<p>If neither is newer or neither is set, return defaultField. </p>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000190">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

</div>
</div>
<a class="anchor" id="ae2d514396d6fd85c25d9af9eb14b6215"></a><!-- doxytag: member="Calendar::newestStamp" ref="ae2d514396d6fd85c25d9af9eb14b6215" args="(UCalendarDateFields start, UCalendarDateFields end, int32_t bestSoFar) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t Calendar::newestStamp </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>end</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>bestSoFar</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Determine the best stamp in a range. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>start</em>&nbsp;</td><td>first enum to look at </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>end</em>&nbsp;</td><td>last enum to look at </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>bestSoFar</em>&nbsp;</td><td>stamp prior to function call </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the stamp value of the best stamp </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000183">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

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

<p>Compares the inequality of two <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> objects. </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="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> object to be compared with. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if the given <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> is not the same as this <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>; false otherwise. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002174">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l00445">445</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

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

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

<p>Default assignment operator. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>right</em>&nbsp;</td><td><a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> object to be copied </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002211">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented in <a class="el" href="classGregorianCalendar.html#ac178802905971d48556c0ac8a77bb3c4">GregorianCalendar</a>.</p>

</div>
</div>
<a class="anchor" id="aa231d324e53576d3198a0aedd129f3ad"></a><!-- doxytag: member="Calendar::operator==" ref="aa231d324e53576d3198a0aedd129f3ad" args="(const Calendar &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> Calendar::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCalendar.html">Calendar</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>Compares the equality of two <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> objects. </p>
<p>Objects of different subclasses are considered unequal. This comparison is very exacting; two <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> objects must be in exactly the same state to be considered equal. To compare based on the represented time, use <a class="el" href="classCalendar.html#a3ed5a35ec465912fed9e8ed90992cdc9" title="Compares the Calendar time, whereas Calendar::operator== compares the equality of...">equals()</a> instead.</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="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> object to be compared with. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if the given <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> is the same as this <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>; false otherwise. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002173">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

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

<p>Returns the time zone owned by this calendar. </p>
<p>The caller owns the returned object and must delete it when done. After this call, the new time zone associated with this <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> is the default <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> as returned by <a class="el" href="classTimeZone.html#aeb13a4845ba186dc4c1151f4cd3de0a6" title="Creates a new copy of the default TimeZone for this host.">TimeZone::createDefault()</a>.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The time zone object which was associated with this calendar. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002186">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="afaeebecc193f1fce5fb616462f4cc593"></a><!-- doxytag: member="Calendar::pinField" ref="afaeebecc193f1fce5fb616462f4cc593" args="(UCalendarDateFields field, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Calendar::pinField </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</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> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adjust the specified field so that it is within the allowable range for the date to which this calendar is set. </p>
<p>For example, in a Gregorian calendar pinning the <a class="el" href="ucal_8h.html#a28411d3f471b1720fe688466983d2298">DAY_OF_MONTH</a> field for a calendar set to April 31 would cause it to be set to April 30. </p>
<p><b>Subclassing:</b> <br/>
 This utility method is intended for use by subclasses that need to implement their own overrides of <a class="el" href="classCalendar.html#a98e5b80bb733a6e8dec95b8ac0225a68">roll</a> and <a class="el" href="classCalendar.html#a4c480d382487d1f05b717dbd310515b3">add</a>. </p>
<p><b>Note:</b> <code>pinField</code> is implemented in terms of <a class="el" href="classCalendar.html#a4e67d27df4e1579ce031de5e6ea05a2e">getActualMinimum</a> and <a class="el" href="classCalendar.html#a62c65424820ca64e850b346212eb35a7">getActualMaximum</a>. If either of those methods uses a slow, iterative algorithm for a particular field, it would be unwise to attempt to call <code>pinField</code> for that field. If you really do need to do so, you should override this method to do something more efficient for that field. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>The calendar field whose value should be pinned. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to failure code on function return when this function fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classCalendar.html#a4e67d27df4e1579ce031de5e6ea05a2e" title="Return the minimum value that this field could have, given the current date.">getActualMinimum</a> </dd>
<dd>
<a class="el" href="classCalendar.html#a62c65424820ca64e850b346212eb35a7" title="Return the maximum value that this field could have, given the current date.">getActualMaximum</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002230">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a660d320b4e90c159bdf1bb8f0678818a"></a><!-- doxytag: member="Calendar::prepareGetActual" ref="a660d320b4e90c159bdf1bb8f0678818a" args="(UCalendarDateFields field, UBool isMinimum, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Calendar::prepareGetActual </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</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>isMinimum</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> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Prepare this calendar for computing the actual minimum or maximum. </p>
<p>This method modifies this calendar's fields; it is called on a temporary calendar. </p>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000171">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

</div>
</div>
<a class="anchor" id="a8118ce78632ea4a749e15d24a5f9560a"></a><!-- doxytag: member="Calendar::registerFactory" ref="a8118ce78632ea4a749e15d24a5f9560a" args="(ICUServiceFactory *toAdopt, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="umisc_8h.html#ab5905d79ed3b979840cee1d5fd48b4fb">URegistryKey</a> Calendar::registerFactory </td>
          <td>(</td>
          <td class="paramtype">ICUServiceFactory *&nbsp;</td>
          <td class="paramname"> <em>toAdopt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Register a new <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> factory. </p>
<p>The factory will be adopted. INTERNAL in 2.6 </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>toAdopt</em>&nbsp;</td><td>the factory instance to be adopted </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>the in/out status code, no special meanings are assigned </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a registry key that can be used to unregister this factory </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000206">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

</div>
</div>
<a class="anchor" id="a10718404e300cb17f0d678f7cd1cfa8e"></a><!-- doxytag: member="Calendar::resolveFields" ref="a10718404e300cb17f0d678f7cd1cfa8e" args="(const UFieldResolutionTable *precedenceTable)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> Calendar::resolveFields </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="calendar_8h.html#ab9f6041161064a1936388e94e9788fe2">UFieldResolutionTable</a> *&nbsp;</td>
          <td class="paramname"> <em>precedenceTable</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Given a precedence table, return the newest field combination in the table, or UCAL_FIELD_COUNT if none is found. </p>
<p>The precedence table is a 3-dimensional array of integers. It may be thought of as an array of groups. Each group is an array of lines. Each line is an array of field numbers. Within a line, if all fields are set, then the time stamp of the line is taken to be the stamp of the most recently set field. If any field of a line is unset, then the line fails to match. Within a group, the line with the newest time stamp is selected. The first field of the line is returned to indicate which line matched.</p>
<p>In some cases, it may be desirable to map a line to field that whose stamp is NOT examined. For example, if the best field is DAY_OF_WEEK then the DAY_OF_WEEK_IN_MONTH algorithm may be used. In order to do this, insert the value <code>kResolveRemap | F</code> at the start of the line, where <code>F</code> is the desired return field value. This field will NOT be examined; it only determines the return value if the other fields in the line are the newest.</p>
<p>If all lines of a group contain at least one unset field, then no line will match, and the group as a whole will fail to match. In that case, the next group will be processed. If all groups fail to match, then UCAL_FIELD_COUNT is returned. </p>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000188">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

</div>
</div>
<a class="anchor" id="a5d5aa7348953398da594654c3edbb681"></a><!-- doxytag: member="Calendar::roll" ref="a5d5aa7348953398da594654c3edbb681" args="(UCalendarDateFields field, int32_t amount, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Calendar::roll </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>amount</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>Time Field Rolling function. </p>
<p>Rolls by the given amount on the given time field. For example, to roll the current date up by one day, call roll(Calendar::DATE, +1, status). When rolling on the month or Calendar::MONTH field, other fields like date might conflict and, need to be changed. For instance, rolling the month up on the date 01/31/96 will result in 02/29/96. Rolling by a positive value always means rolling forward in time; e.g., rolling the year by +1 on "100 BC" will result in "99 BC", for Gregorian calendar. When rolling on the hour-in-day or Calendar::HOUR_OF_DAY field, it will roll the hour value in the range between 0 and 23, which is zero-based. </p>
<p>The only difference between <a class="el" href="classCalendar.html#a98e5b80bb733a6e8dec95b8ac0225a68" title="Time Field Rolling function.">roll()</a> and <a class="el" href="classCalendar.html#a4c480d382487d1f05b717dbd310515b3" title="UDate Arithmetic function.">add()</a> is that <a class="el" href="classCalendar.html#a98e5b80bb733a6e8dec95b8ac0225a68" title="Time Field Rolling function.">roll()</a> does not change the value of more significant fields when it reaches the minimum or maximum of its range, whereas <a class="el" href="classCalendar.html#a4c480d382487d1f05b717dbd310515b3" title="UDate Arithmetic function.">add()</a> does.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>The time field. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>amount</em>&nbsp;</td><td>Indicates amount to roll. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code on exit. If any value previously set in the time field is invalid, this will be set to an error status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002181">Stable:</a></b></dt><dd>ICU 2.6. </dd></dl>

<p>Reimplemented in <a class="el" href="classGregorianCalendar.html#a356ca180f51ab33ce27f41fde8c43739">GregorianCalendar</a>.</p>

</div>
</div>
<a class="anchor" id="abff9f8c5e0b0206b9312e64a0ff89666"></a><!-- doxytag: member="Calendar::roll" ref="abff9f8c5e0b0206b9312e64a0ff89666" args="(EDateFields field, int32_t amount, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Calendar::roll </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>amount</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>Time Field Rolling function. </p>
<p>Rolls by the given amount on the given time field. For example, to roll the current date up by one day, call roll(Calendar::DATE, +1, status). When rolling on the month or Calendar::MONTH field, other fields like date might conflict and, need to be changed. For instance, rolling the month up on the date 01/31/96 will result in 02/29/96. Rolling by a positive value always means rolling forward in time; e.g., rolling the year by +1 on "100 BC" will result in "99 BC", for Gregorian calendar. When rolling on the hour-in-day or Calendar::HOUR_OF_DAY field, it will roll the hour value in the range between 0 and 23, which is zero-based. </p>
<p>The only difference between <a class="el" href="classCalendar.html#a98e5b80bb733a6e8dec95b8ac0225a68" title="Time Field Rolling function.">roll()</a> and <a class="el" href="classCalendar.html#a4c480d382487d1f05b717dbd310515b3" title="UDate Arithmetic function.">add()</a> is that <a class="el" href="classCalendar.html#a98e5b80bb733a6e8dec95b8ac0225a68" title="Time Field Rolling function.">roll()</a> does not change the value of more significant fields when it reaches the minimum or maximum of its range, whereas <a class="el" href="classCalendar.html#a4c480d382487d1f05b717dbd310515b3" title="UDate Arithmetic function.">add()</a> does.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>The time field. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>amount</em>&nbsp;</td><td>Indicates amount to roll. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code on exit. If any value previously set in the time field is invalid, this will be set to an error status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000166">Deprecated:</a></b></dt><dd>ICU 2.6. Use <a class="el" href="classCalendar.html#a5d5aa7348953398da594654c3edbb681" title="Time Field Rolling function.">roll(UCalendarDateFields field, int32_t amount, UErrorCode&amp; status)</a> instead. </dd></dl>

<p>Reimplemented in <a class="el" href="classGregorianCalendar.html#a94eb045ce42c58b4f823e55f91bb695e">GregorianCalendar</a>.</p>

</div>
</div>
<a class="anchor" id="a1a95a3e423d17c1f415bc39b75cf77d2"></a><!-- doxytag: member="Calendar::roll" ref="a1a95a3e423d17c1f415bc39b75cf77d2" args="(UCalendarDateFields field, UBool up, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Calendar::roll </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</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>up</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>Time Field Rolling function. </p>
<p>Rolls (up/down) a single unit of time on the given time field. For example, to roll the current date up by one day, call roll(Calendar::DATE, true). When rolling on the year or Calendar::YEAR field, it will roll the year value in the range between getMinimum(Calendar::YEAR) and the value returned by getMaximum(Calendar::YEAR). When rolling on the month or Calendar::MONTH field, other fields like date might conflict and, need to be changed. For instance, rolling the month up on the date 01/31/96 will result in 02/29/96. Rolling up always means rolling forward in time; e.g., rolling the year up on "100 BC" will result in "99 BC", for Gregorian calendar. When rolling on the hour-in-day or Calendar::HOUR_OF_DAY field, it will roll the hour value in the range between 0 and 23, which is zero-based. </p>
<p>NOTE: Do not use this method -- use roll(UCalendarDateFields, int, UErrorCode&amp;) instead.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>The time field. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>up</em>&nbsp;</td><td>Indicates if the value of the specified time field is to be rolled up or rolled down. Use true if rolling up, false otherwise. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code on exit. If any value previously set in the time field is invalid or restricted by leniency, this will be set to an error status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002180">Stable:</a></b></dt><dd>ICU 2.6. </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l02215">2215</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

<p>References <a class="el" href="calendar_8h_source.html#l02221">roll()</a>.</p>

</div>
</div>
<a class="anchor" id="a98e5b80bb733a6e8dec95b8ac0225a68"></a><!-- doxytag: member="Calendar::roll" ref="a98e5b80bb733a6e8dec95b8ac0225a68" args="(EDateFields field, UBool up, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Calendar::roll </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</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>up</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>Time Field Rolling function. </p>
<p>Rolls (up/down) a single unit of time on the given time field. For example, to roll the current date up by one day, call roll(Calendar::DATE, true). When rolling on the year or Calendar::YEAR field, it will roll the year value in the range between getMinimum(Calendar::YEAR) and the value returned by getMaximum(Calendar::YEAR). When rolling on the month or Calendar::MONTH field, other fields like date might conflict and, need to be changed. For instance, rolling the month up on the date 01/31/96 will result in 02/29/96. Rolling up always means rolling forward in time; e.g., rolling the year up on "100 BC" will result in "99 BC", for Gregorian calendar. When rolling on the hour-in-day or Calendar::HOUR_OF_DAY field, it will roll the hour value in the range between 0 and 23, which is zero-based. </p>
<p>NOTE: Do not use this method -- use roll(EDateFields, int, UErrorCode&amp;) instead.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>The time field. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>up</em>&nbsp;</td><td>Indicates if the value of the specified time field is to be rolled up or rolled down. Use true if rolling up, false otherwise. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code on exit. If any value previously set in the time field is invalid or restricted by leniency, this will be set to an error status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000165">Deprecated:</a></b></dt><dd>ICU 2.6. Use <a class="el" href="classCalendar.html#a1a95a3e423d17c1f415bc39b75cf77d2" title="Time Field Rolling function.">roll(UCalendarDateFields field, UBool up, UErrorCode&amp; status)</a> instead. </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l02221">2221</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

<p>Referenced by <a class="el" href="calendar_8h_source.html#l02215">roll()</a>.</p>

</div>
</div>
<a class="anchor" id="a53bae01ea06605c7506d9956db1ef165"></a><!-- doxytag: member="Calendar::set" ref="a53bae01ea06605c7506d9956db1ef165" args="(int32_t year, int32_t month, int32_t date, int32_t hour, int32_t minute, int32_t second)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Calendar::set </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>date</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>hour</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>minute</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>second</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 values for the fields YEAR, MONTH, DATE, HOUR_OF_DAY, MINUTE, and SECOND. </p>
<p>Other field values are retained; call <a class="el" href="classCalendar.html#a7e0409b7750ff09b7275a061bd6ae816" title="Clears the values of all the time fields, making them both unset and assigning them...">clear()</a> first if this is not desired.</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 value used to set the YEAR time field. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>month</em>&nbsp;</td><td>The value used to set the MONTH time field. Month value is 0-based. E.g., 0 for January. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>date</em>&nbsp;</td><td>The value used to set the DATE time field. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>hour</em>&nbsp;</td><td>The value used to set the HOUR_OF_DAY time field. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>minute</em>&nbsp;</td><td>The value used to set the MINUTE time field. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>second</em>&nbsp;</td><td>The value used to set the SECOND time field. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002205">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="acea9496f6dbb52f8682abe3c99c7c6c4"></a><!-- doxytag: member="Calendar::set" ref="acea9496f6dbb52f8682abe3c99c7c6c4" args="(int32_t year, int32_t month, int32_t date, int32_t hour, int32_t minute)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Calendar::set </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>date</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>hour</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>minute</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 values for the fields YEAR, MONTH, DATE, HOUR_OF_DAY, and MINUTE. </p>
<p>Other field values are retained; call <a class="el" href="classCalendar.html#a7e0409b7750ff09b7275a061bd6ae816" title="Clears the values of all the time fields, making them both unset and assigning them...">clear()</a> first if this is not desired.</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 value used to set the YEAR time field. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>month</em>&nbsp;</td><td>The value used to set the MONTH time field. Month value is 0-based. E.g., 0 for January. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>date</em>&nbsp;</td><td>The value used to set the DATE time field. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>hour</em>&nbsp;</td><td>The value used to set the HOUR_OF_DAY time field. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>minute</em>&nbsp;</td><td>The value used to set the MINUTE time field. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002204">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a0de0f9d494dc1a347c64560c73609b09"></a><!-- doxytag: member="Calendar::set" ref="a0de0f9d494dc1a347c64560c73609b09" args="(int32_t year, int32_t month, int32_t date)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Calendar::set </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>date</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 values for the fields YEAR, MONTH, and DATE. </p>
<p>Other field values are retained; call <a class="el" href="classCalendar.html#a7e0409b7750ff09b7275a061bd6ae816" title="Clears the values of all the time fields, making them both unset and assigning them...">clear()</a> first if this is not desired.</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 value used to set the YEAR time field. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>month</em>&nbsp;</td><td>The value used to set the MONTH time field. Month value is 0-based. e.g., 0 for January. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>date</em>&nbsp;</td><td>The value used to set the DATE time field. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002203">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a558039a413ea1e1a9bfd47375d12e4ea"></a><!-- doxytag: member="Calendar::set" ref="a558039a413ea1e1a9bfd47375d12e4ea" args="(UCalendarDateFields field, int32_t value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Calendar::set </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>value</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 given time field with the given 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>field</em>&nbsp;</td><td>The given time field. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>The value to be set for the given time field. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002202">Stable:</a></b></dt><dd>ICU 2.6. </dd></dl>

</div>
</div>
<a class="anchor" id="a98ba908ffc6a88d6566983d4f95245df"></a><!-- doxytag: member="Calendar::set" ref="a98ba908ffc6a88d6566983d4f95245df" args="(EDateFields field, int32_t value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Calendar::set </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>value</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 given time field with the given 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>field</em>&nbsp;</td><td>The given time field. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>The value to be set for the given time field. </td></tr>
  </table>
  </dd>
</dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000178">Deprecated:</a></b></dt><dd>ICU 2.6. Use <a class="el" href="classCalendar.html#a558039a413ea1e1a9bfd47375d12e4ea" title="Sets the given time field with the given value.">set(UCalendarDateFields field, int32_t value)</a> instead. </dd></dl>

</div>
</div>
<a class="anchor" id="ad304c4129e472a106b4027ac78aa09b8"></a><!-- doxytag: member="Calendar::setFirstDayOfWeek" ref="ad304c4129e472a106b4027ac78aa09b8" args="(UCalendarDaysOfWeek value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Calendar::setFirstDayOfWeek </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a62d9fe551bd48e4141fce52b917119a4">UCalendarDaysOfWeek</a>&nbsp;</td>
          <td class="paramname"> <em>value</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets what the first day of the week is; e.g., Sunday in US, Monday in France. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>The given first day of the week. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002190">Stable:</a></b></dt><dd>ICU 2.6. </dd></dl>

</div>
</div>
<a class="anchor" id="ab7df065eb046cd863eb201fc56b0429e"></a><!-- doxytag: member="Calendar::setFirstDayOfWeek" ref="ab7df065eb046cd863eb201fc56b0429e" args="(EDaysOfWeek value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Calendar::setFirstDayOfWeek </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCalendar.html#a28d5c395b3200c812950321637796aa4">EDaysOfWeek</a>&nbsp;</td>
          <td class="paramname"> <em>value</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets what the first day of the week is; e.g., Sunday in US, Monday in France. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>The given first day of the week. </td></tr>
  </table>
  </dd>
</dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000168">Deprecated:</a></b></dt><dd>ICU 2.6. Use <a class="el" href="classCalendar.html#ad304c4129e472a106b4027ac78aa09b8" title="Sets what the first day of the week is; e.g., Sunday in US, Monday in France.">setFirstDayOfWeek(UCalendarDaysOfWeek value)</a> instead. </dd></dl>

</div>
</div>
<a class="anchor" id="a7d4084cd44bc04497309e01c161f45ee"></a><!-- doxytag: member="Calendar::setLenient" ref="a7d4084cd44bc04497309e01c161f45ee" args="(UBool lenient)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Calendar::setLenient </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td>
          <td class="paramname"> <em>lenient</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Specifies whether or not date/time interpretation is to be lenient. </p>
<p>With lenient interpretation, a date such as "February 942, 1996" will be treated as being equivalent to the 941st day after February 1, 1996. With strict interpretation, such dates will cause an error when computing time from the time field values representing the dates.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>lenient</em>&nbsp;</td><td>True specifies date/time interpretation to be lenient.</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classDateFormat.html#a6b0da8c6169b80f5adafc9099ed29b11" title="Specify whether or not date/time parsing is to be lenient.">DateFormat::setLenient</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002188">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="ad3c13b061c7ed103d6b31ac08a9026a6"></a><!-- doxytag: member="Calendar::setMinimalDaysInFirstWeek" ref="ad3c13b061c7ed103d6b31ac08a9026a6" args="(uint8_t value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Calendar::setMinimalDaysInFirstWeek </td>
          <td>(</td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>value</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets what the minimal days required in the first week of the year are; For example, if the first week is defined as one that contains the first day of the first month of a year, call the method with value 1. </p>
<p>If it must be a full week, use value 7.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>The given minimal days required in the first week of the year. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002192">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a4b918629b9bfd29e888f5ab933bd0b9b"></a><!-- doxytag: member="Calendar::setTime" ref="a4b918629b9bfd29e888f5ab933bd0b9b" args="(UDate date, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Calendar::setTime </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><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets this Calendar's current time with the given UDate. </p>
<p>The time specified should be in non-local UTC (GMT) 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>date</em>&nbsp;</td><td>The given UDate in UTC (GMT) time. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code on exit. If any value set in the time field is invalid or restricted by leniency, this will be set to an error status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002172">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l00422">422</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<a class="anchor" id="a4e33e7f83e803fb6092e32b988fe5305"></a><!-- doxytag: member="Calendar::setTimeInMillis" ref="a4e33e7f83e803fb6092e32b988fe5305" args="(double millis, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Calendar::setTimeInMillis </td>
          <td>(</td>
          <td class="paramtype">double&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><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets this Calendar's current time from the given long 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>millis</em>&nbsp;</td><td>the new time in UTC milliseconds from the epoch. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param set to success/failure code on exit. If any value previously set in the time field is invalid or restricted by leniency, this will be set to an error status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002217">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

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

<p>Sets the calendar's time zone to be the same as the one passed in. </p>
<p>The <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> passed in is _not_ adopted; the client is still responsible for deleting it.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>zone</em>&nbsp;</td><td>The given time zone. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002184">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a397c5c9c48463610bc87fcb84ac7a855"></a><!-- doxytag: member="Calendar::unregister" ref="a397c5c9c48463610bc87fcb84ac7a855" args="(URegistryKey key, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> Calendar::unregister </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="umisc_8h.html#ab5905d79ed3b979840cee1d5fd48b4fb">URegistryKey</a>&nbsp;</td>
          <td class="paramname"> <em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Unregister a previously-registered CalendarFactory using the key returned from the register call. </p>
<p>Key becomes invalid after a successful call and should not be used again. The CalendarFactory corresponding to the key will be deleted. INTERNAL in 2.6 </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>key</em>&nbsp;</td><td>the registry key returned by a previous call to registerFactory </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>the in/out status code, no special meanings are assigned </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if the factory for the key was successfully unregistered </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000207">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

</div>
</div>
<a class="anchor" id="ac37c766c0d2b648b451186132e19004a"></a><!-- doxytag: member="Calendar::weekNumber" ref="ac37c766c0d2b648b451186132e19004a" args="(int32_t dayOfPeriod, int32_t dayOfWeek)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t Calendar::weekNumber </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>dayOfPeriod</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>dayOfWeek</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the week number of a day, within a period. </p>
<p>This may be the week number in a year, or the week number in a month. Usually this will be a value &gt;= 1, but if some initial days of the period are excluded from week 1, because <a class="el" href="classCalendar.html#ac39fb4eea23b9ea863ac3119913a3322">getMinimalDaysInFirstWeek</a> is &gt; 1, then the week number will be zero for those initial days. This method requires the day of week for the given date in order to determine the result. </p>
<p><b>Subclassing:</b> <br/>
 This method is intended for use by subclasses in implementing their <a class="el" href="classCalendar.html#acd6f300d2cc51b0d75b57d7be1347844">computeTime</a> and/or <a class="el" href="classCalendar.html#ad0ff8705abd13f9c568fb4053e35e27b">computeFields</a> methods. It is often useful in <a class="el" href="classCalendar.html#a4e67d27df4e1579ce031de5e6ea05a2e">getActualMinimum</a> and <a class="el" href="classCalendar.html#a62c65424820ca64e850b346212eb35a7">getActualMaximum</a> as well. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dayOfPeriod</em>&nbsp;</td><td>The <a class="el" href="ucal_8h.html#a28411d3f471b1720fe688466983d2298">DAY_OF_YEAR</a> or <a class="el" href="ucal_8h.html#a28411d3f471b1720fe688466983d2298">DAY_OF_MONTH</a> whose week number is desired. Should be 1 for the first day of the period.</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfWeek</em>&nbsp;</td><td>The <a class="el" href="ucal_8h.html#a28411d3f471b1720fe688466983d2298">DAY_OF_WEEK</a> for the day corresponding to the <code>dayOfPeriod</code> parameter. 1-based with 1=Sunday.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The week number (one-based), or zero if the day falls before the first week because <a class="el" href="classCalendar.html#ac39fb4eea23b9ea863ac3119913a3322">getMinimalDaysInFirstWeek</a> is more than one. </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000199">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l02242">2242</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

<p>References <a class="el" href="classCalendar.html#ac06ba54055473049be6427add1fa99e0">weekNumber()</a>.</p>

</div>
</div>
<a class="anchor" id="ac06ba54055473049be6427add1fa99e0"></a><!-- doxytag: member="Calendar::weekNumber" ref="ac06ba54055473049be6427add1fa99e0" args="(int32_t desiredDay, int32_t dayOfPeriod, int32_t dayOfWeek)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t Calendar::weekNumber </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>desiredDay</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>dayOfPeriod</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>dayOfWeek</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the week number of a day, within a period. </p>
<p>This may be the week number in a year or the week number in a month. Usually this will be a value &gt;= 1, but if some initial days of the period are excluded from week 1, because <a class="el" href="classCalendar.html#ac39fb4eea23b9ea863ac3119913a3322">getMinimalDaysInFirstWeek</a> is &gt; 1, then the week number will be zero for those initial days. This method requires the day number and day of week for some known date in the period in order to determine the day of week on the desired day. </p>
<p><b>Subclassing:</b> <br/>
 This method is intended for use by subclasses in implementing their <a class="el" href="classCalendar.html#acd6f300d2cc51b0d75b57d7be1347844">computeTime</a> and/or <a class="el" href="classCalendar.html#ad0ff8705abd13f9c568fb4053e35e27b">computeFields</a> methods. It is often useful in <a class="el" href="classCalendar.html#a4e67d27df4e1579ce031de5e6ea05a2e">getActualMinimum</a> and <a class="el" href="classCalendar.html#a62c65424820ca64e850b346212eb35a7">getActualMaximum</a> as well. </p>
<p>This variant is handy for computing the week number of some other day of a period (often the first or last day of the period) when its day of the week is not known but the day number and day of week for some other day in the period (e.g. the current date) <em>is</em> known. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>desiredDay</em>&nbsp;</td><td>The <a class="el" href="ucal_8h.html#a28411d3f471b1720fe688466983d2298">DAY_OF_YEAR</a> or <a class="el" href="ucal_8h.html#a28411d3f471b1720fe688466983d2298">DAY_OF_MONTH</a> whose week number is desired. Should be 1 for the first day of the period.</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfPeriod</em>&nbsp;</td><td>The <a class="el" href="ucal_8h.html#a28411d3f471b1720fe688466983d2298">DAY_OF_YEAR</a> or <a class="el" href="ucal_8h.html#a28411d3f471b1720fe688466983d2298">DAY_OF_MONTH</a> for a day in the period whose <a class="el" href="ucal_8h.html#a28411d3f471b1720fe688466983d2298">DAY_OF_WEEK</a> is specified by the <code>knownDayOfWeek</code> parameter. Should be 1 for first day of period.</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dayOfWeek</em>&nbsp;</td><td>The <a class="el" href="ucal_8h.html#a28411d3f471b1720fe688466983d2298">DAY_OF_WEEK</a> for the day corresponding to the <code>knownDayOfPeriod</code> parameter. 1-based with 1=Sunday.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The week number (one-based), or zero if the day falls before the first week because <a class="el" href="classCalendar.html#ac39fb4eea23b9ea863ac3119913a3322">getMinimalDaysInFirstWeek</a> is more than one.</dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002231">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl>

<p>Referenced by <a class="el" href="calendar_8h_source.html#l02242">weekNumber()</a>.</p>

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a7b8da58f16be9990955f60c930b4376d"></a><!-- doxytag: member="Calendar::CalendarFactory" ref="a7b8da58f16be9990955f60c930b4376d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">friend class CalendarFactory<code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Multiple <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> Implementation. </p>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000208">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l02153">2153</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<a class="anchor" id="aef82cfadea9ca1be538463884884c8aa"></a><!-- doxytag: member="Calendar::CalendarService" ref="aef82cfadea9ca1be538463884884c8aa" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">friend class CalendarService<code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Multiple <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> Implementation. </p>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000209">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l02159">2159</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<a class="anchor" id="affad2f956e924717f3de7ccd94224551"></a><!-- doxytag: member="Calendar::DefaultCalendarFactory" ref="affad2f956e924717f3de7ccd94224551" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">friend class DefaultCalendarFactory<code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Multiple <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> Implementation. </p>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000210">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l02165">2165</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<hr/><h2>Field Documentation</h2>
<a class="anchor" id="aa198993ac97bca6bf80c2beb6657ed03"></a><!-- doxytag: member="Calendar::fAreAllFieldsSet" ref="aa198993ac97bca6bf80c2beb6657ed03" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> <a class="el" href="classCalendar.html#aa198993ac97bca6bf80c2beb6657ed03">Calendar::fAreAllFieldsSet</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>True if all of the fields have been set. </p>
<p>This is initially false, and set to true by <a class="el" href="classCalendar.html#ad0ff8705abd13f9c568fb4053e35e27b" title="Converts GMT as milliseconds to time field values.">computeFields()</a>. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002223">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l01675">1675</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<a class="anchor" id="af19aa6e54f1220ffaf74d29071a6a589"></a><!-- doxytag: member="Calendar::fAreFieldsSet" ref="af19aa6e54f1220ffaf74d29071a6a589" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> <a class="el" href="classCalendar.html#af19aa6e54f1220ffaf74d29071a6a589">Calendar::fAreFieldsSet</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>True if the fields are in sync with the currently set time of this <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>. </p>
<p>If false, then the next attempt to get the value of a field will force a recomputation of all fields from the current value of the time field. </p>
<p>This should really be named areFieldsInSync, but the old name is retained for backward compatibility. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002222">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l01668">1668</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<a class="anchor" id="a223fef486de9d84635c8c2c887dee2b0"></a><!-- doxytag: member="Calendar::fAreFieldsVirtuallySet" ref="a223fef486de9d84635c8c2c887dee2b0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> <a class="el" href="classCalendar.html#a223fef486de9d84635c8c2c887dee2b0">Calendar::fAreFieldsVirtuallySet</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>True if all fields have been virtually set, but have not yet been computed. </p>
<p>This occurs only in <a class="el" href="classCalendar.html#a4e33e7f83e803fb6092e32b988fe5305" title="Sets this Calendar&#39;s current time from the given long value.">setTimeInMillis()</a>. A calendar set to this state will compute all fields from the time if it becomes necessary, but otherwise will delay such computation. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002224">Stable:</a></b></dt><dd>ICU 3.0 </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l01684">1684</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<a class="anchor" id="a4aeb857bb89a74dbe261896e6b6f6681"></a><!-- doxytag: member="Calendar::fFields" ref="a4aeb857bb89a74dbe261896e6b6f6681" args="[UCAL_FIELD_COUNT]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t <a class="el" href="classCalendar.html#a4aeb857bb89a74dbe261896e6b6f6681">Calendar::fFields</a>[UCAL_FIELD_COUNT]<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The time fields containing values into which the millis is computed. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002227">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l01707">1707</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

<p>Referenced by <a class="el" href="calendar_8h_source.html#l02235">internalSet()</a>.</p>

</div>
</div>
<a class="anchor" id="a557209952758b6c128ddbc26955eb9dc"></a><!-- doxytag: member="Calendar::fIsSet" ref="a557209952758b6c128ddbc26955eb9dc" args="[UCAL_FIELD_COUNT]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> <a class="el" href="classCalendar.html#a557209952758b6c128ddbc26955eb9dc">Calendar::fIsSet</a>[UCAL_FIELD_COUNT]<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The flags which tell if a specified time field for the calendar is set. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000182">Deprecated:</a></b></dt><dd>ICU 2.8 use (fStamp[n]!=kUnset) </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l01713">1713</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

<p>Referenced by <a class="el" href="calendar_8h_source.html#l02235">internalSet()</a>.</p>

</div>
</div>
<a class="anchor" id="a6a3812124ab9abbd2a2f75b490a6b700"></a><!-- doxytag: member="Calendar::fIsTimeSet" ref="a6a3812124ab9abbd2a2f75b490a6b700" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> <a class="el" href="classCalendar.html#a6a3812124ab9abbd2a2f75b490a6b700">Calendar::fIsTimeSet</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The flag which indicates if the current time is set in the calendar. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002221">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l01656">1656</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae1ab437231e76896ce2b7ccdbc106b0b"></a><!-- doxytag: member="Calendar::fStamp" ref="ae1ab437231e76896ce2b7ccdbc106b0b" args="[UCAL_FIELD_COUNT]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t <a class="el" href="classCalendar.html#ae1ab437231e76896ce2b7ccdbc106b0b">Calendar::fStamp</a>[UCAL_FIELD_COUNT]<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Pseudo-time-stamps which specify when each field was set. </p>
<p>There are two special values, UNSET and INTERNALLY_SET. Values from MINIMUM_USER_SET to Integer.MAX_VALUE are legal user set values. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002229">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l01730">1730</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

<p>Referenced by <a class="el" href="calendar_8h_source.html#l02235">internalSet()</a>.</p>

</div>
</div>
<a class="anchor" id="a443112ee30874283a616c536293892c4"></a><!-- doxytag: member="Calendar::kDatePrecedence" ref="a443112ee30874283a616c536293892c4" args="[]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="calendar_8h.html#ab9f6041161064a1936388e94e9788fe2">UFieldResolutionTable</a> <a class="el" href="classCalendar.html#a443112ee30874283a616c536293892c4">Calendar::kDatePrecedence</a>[]<code> [static, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Precedence table for Dates. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classCalendar.html#a10718404e300cb17f0d678f7cd1cfa8e" title="Given a precedence table, return the newest field combination in the table, or UCAL_FIELD_COUNT...">resolveFields</a> </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000185">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l01580">1580</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<a class="anchor" id="a253f88ce055abc651d4784634bb65635"></a><!-- doxytag: member="Calendar::kDOWPrecedence" ref="a253f88ce055abc651d4784634bb65635" args="[]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="calendar_8h.html#ab9f6041161064a1936388e94e9788fe2">UFieldResolutionTable</a> <a class="el" href="classCalendar.html#a253f88ce055abc651d4784634bb65635">Calendar::kDOWPrecedence</a>[]<code> [static, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Precedence table for Day of Week. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classCalendar.html#a10718404e300cb17f0d678f7cd1cfa8e" title="Given a precedence table, return the newest field combination in the table, or UCAL_FIELD_COUNT...">resolveFields</a> </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000187">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l01594">1594</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae116e0cc5a2c5af58f736fd2199ebcd0"></a><!-- doxytag: member="Calendar::kYearPrecedence" ref="ae116e0cc5a2c5af58f736fd2199ebcd0" args="[]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="calendar_8h.html#ab9f6041161064a1936388e94e9788fe2">UFieldResolutionTable</a> <a class="el" href="classCalendar.html#ae116e0cc5a2c5af58f736fd2199ebcd0">Calendar::kYearPrecedence</a>[]<code> [static, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Precedence table for Year. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classCalendar.html#a10718404e300cb17f0d678f7cd1cfa8e" title="Given a precedence table, return the newest field combination in the table, or UCAL_FIELD_COUNT...">resolveFields</a> </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000186">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Definition at line <a class="el" href="calendar_8h_source.html#l01587">1587</a> of file <a class="el" href="calendar_8h_source.html">calendar.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="calendar_8h_source.html">calendar.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>