Sophie

Sophie

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

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: GregorianCalendar 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>GregorianCalendar Class Reference</h1><!-- doxytag: class="GregorianCalendar" --><!-- doxytag: inherits="Calendar" -->
<p>Concrete class which provides the standard calendar used by most of the world.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="gregocal_8h_source.html">gregocal.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for GregorianCalendar:</div>
<div class="dynsection">
 <div class="center">
  <img src="classGregorianCalendar.gif" usemap="#GregorianCalendar_map" alt=""/>
  <map id="GregorianCalendar_map" name="GregorianCalendar_map">
<area href="classCalendar.html" alt="Calendar" shape="rect" coords="0,112,121,136"/>
<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"/>
</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="classGregorianCalendar.html#afeedaf0d04321220e77c46ba69b78619">EEras</a> { <b>BC</b>, 
<b>AD</b>
 }</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><p>Useful constants for <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> and <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a>. </p>
 <a href="classGregorianCalendar.html#afeedaf0d04321220e77c46ba69b78619">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#aef459c49036add0f69c9991ff7d7f11d">GregorianCalendar</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 default <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> using the current time in the default time zone with the default locale.  <a href="#aef459c49036add0f69c9991ff7d7f11d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#a062240b2ac5791cc8b00ff871b022ec0">GregorianCalendar</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">Constructs a <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> based on the current time in the given time zone with the default locale.  <a href="#a062240b2ac5791cc8b00ff871b022ec0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#a072fb9cf35f38dc78b5f6ac09856ce2b">GregorianCalendar</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">Constructs a <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> based on the current time in the given time zone with the default locale.  <a href="#a072fb9cf35f38dc78b5f6ac09856ce2b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#a6b1045e9d4426d089d3c9fccf3ed1520">GregorianCalendar</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">Constructs a <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> based on the current time in the default time zone with the given locale.  <a href="#a6b1045e9d4426d089d3c9fccf3ed1520"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#aa4776493fdf072637107e33db27ae0f4">GregorianCalendar</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">Constructs a <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> based on the current time in the given time zone with the given locale.  <a href="#aa4776493fdf072637107e33db27ae0f4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#a331be71044f6f7be43ddc9c65c0d47ea">GregorianCalendar</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="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> based on the current time in the given time zone with the given locale.  <a href="#a331be71044f6f7be43ddc9c65c0d47ea"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#aee943a8e7ad66de21cf68f65d131583e">GregorianCalendar</a> (int32_t year, int32_t month, int32_t date, <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="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> with the given AD date set in the default time zone with the default locale.  <a href="#aee943a8e7ad66de21cf68f65d131583e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#a9d653bb7fd8865fd40f9bd8e499d4e00">GregorianCalendar</a> (int32_t year, int32_t month, int32_t date, int32_t hour, int32_t minute, <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="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> with the given AD date and time set for the default time zone with the default locale.  <a href="#a9d653bb7fd8865fd40f9bd8e499d4e00"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#ae4312d4bda173f6d707b08d389dd0525">GregorianCalendar</a> (int32_t year, int32_t month, int32_t date, int32_t hour, int32_t minute, int32_t second, <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="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> with the given AD date and time set for the default time zone with the default locale.  <a href="#ae4312d4bda173f6d707b08d389dd0525"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#a5ccea6f20e8762609df45b85450299e2">~GregorianCalendar</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor.  <a href="#a5ccea6f20e8762609df45b85450299e2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#a73927d036deb23cbc22de2ead041ced9">GregorianCalendar</a> (const <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> &amp;source)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy constructor.  <a href="#a73927d036deb23cbc22de2ead041ced9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#ac178802905971d48556c0ac8a77bb3c4">operator=</a> (const <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> &amp;right)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default assignment operator.  <a href="#ac178802905971d48556c0ac8a77bb3c4"></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="classGregorianCalendar.html#a6924d2c9812c8af226ca941b024c56aa">clone</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create and return a polymorphic copy of this calendar.  <a href="#a6924d2c9812c8af226ca941b024c56aa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#a5e643d82a8dba031b54c97f057d804f6">setGregorianChange</a> (<a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> date, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;success)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> change date.  <a href="#a5e643d82a8dba031b54c97f057d804f6"></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="classGregorianCalendar.html#a3e038439da10df6dec13fc500f2b54b5">getGregorianChange</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the Gregorian <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> change date.  <a href="#a3e038439da10df6dec13fc500f2b54b5"></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="classGregorianCalendar.html#a74481deb64e01bbcd8d0f72ff99b687f">isLeapYear</a> (int32_t year) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return true if the given year is a leap year.  <a href="#a74481deb64e01bbcd8d0f72ff99b687f"></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="classGregorianCalendar.html#ab72c13d826e10d9292760b083c63f956">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="#ab72c13d826e10d9292760b083c63f956"></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="classGregorianCalendar.html#a94eb045ce42c58b4f823e55f91bb695e">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">(Overrides <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>) Rolls up or down by the given amount in the specified field.  <a href="#a94eb045ce42c58b4f823e55f91bb695e"></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="classGregorianCalendar.html#a356ca180f51ab33ce27f41fde8c43739">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">(Overrides <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>) Rolls up or down by the given amount in the specified field.  <a href="#a356ca180f51ab33ce27f41fde8c43739"></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="classGregorianCalendar.html#ac4638c3ac6effee100f6b18081533943">getActualMinimum</a> (<a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a> field) 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="#ac4638c3ac6effee100f6b18081533943"></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="classGregorianCalendar.html#af24993c1cd9d48e203b820f6981f991e">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="#af24993c1cd9d48e203b820f6981f991e"></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="classGregorianCalendar.html#a3cddc1a8bd73250d23ef4ccd632c21c8">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="#a3cddc1a8bd73250d23ef4ccd632c21c8"></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="classGregorianCalendar.html#a1fe4199946f259c5fff4b3a976db628f">getActualMaximum</a> (<a class="el" href="classCalendar.html#a9aa66a9e8030312d5314e306c713913e">EDateFields</a> field) 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="#a1fe4199946f259c5fff4b3a976db628f"></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="classGregorianCalendar.html#aa6dffa7c30b24613fa6762c715dc24ab">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="#aa6dffa7c30b24613fa6762c715dc24ab"></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="classGregorianCalendar.html#aa9dcb25c2fefe715f33fad5e11075cd8">inDaylightTime</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">(Overrides <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>) Return 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.  <a href="#aa9dcb25c2fefe715f33fad5e11075cd8"></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="classGregorianCalendar.html#ad692fc0734c8b0dd5af7cf8f403caa87">getDynamicClassID</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Override <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> Returns a unique class ID POLYMORPHICALLY.  <a href="#ad692fc0734c8b0dd5af7cf8f403caa87"></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="classGregorianCalendar.html#a9d3dbbead3bf74c685b479e5115e514c">getType</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the calendar type, "gregorian", for use in <a class="el" href="classDateFormatSymbols.html" title="DateFormatSymbols is a public class for encapsulating localizable date-time formatting...">DateFormatSymbols</a>.  <a href="#a9d3dbbead3bf74c685b479e5115e514c"></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="classGregorianCalendar.html#a777df4314a0e9266ee3fd20afcdb3218">haveDefaultCentury</a> () const </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="classGregorianCalendar.html#a3c11c790997b4a7ef2009c9db5dfc7dd">defaultCenturyStart</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#ad308638658b0758dcdaaae57a3599a27">defaultCenturyStartYear</a> () const </td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#a0f6db4c67cbe5b671aee4cb8934c3fd8">getStaticClassID</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the class ID for this class.  <a href="#a0f6db4c67cbe5b671aee4cb8934c3fd8"></a><br/></td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#acad345a12f58ef31e2a7b275e0c3dd23">internalGetEra</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the ERA.  <a href="#acad345a12f58ef31e2a7b275e0c3dd23"></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="classGregorianCalendar.html#a87badc27fdb6dc0638bc94864a4961d9">handleComputeMonthStart</a> (int32_t eyear, int32_t month, <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> useMonth) const </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="#a87badc27fdb6dc0638bc94864a4961d9"></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="classGregorianCalendar.html#a59b86395575bf7784ffe1f2edac5b165">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="#a59b86395575bf7784ffe1f2edac5b165"></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="classGregorianCalendar.html#a05a03940641b2455a2875cbc31f386e9">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="#a05a03940641b2455a2875cbc31f386e9"></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="classGregorianCalendar.html#a32772c0335d2440b8fcb4cf7569e9f84">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="#a32772c0335d2440b8fcb4cf7569e9f84"></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="classGregorianCalendar.html#a4d4fc48ebc080768c5850f95c7d6cff7">monthLength</a> (int32_t month) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return the length of the given month.  <a href="#a4d4fc48ebc080768c5850f95c7d6cff7"></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="classGregorianCalendar.html#a2204aacfc59e4e74760e0aceaee38f62">monthLength</a> (int32_t month, int32_t year) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return the length of the month according to the given year.  <a href="#a2204aacfc59e4e74760e0aceaee38f62"></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="classGregorianCalendar.html#a127be84d5a2d75ca5c7e382c59c97235">yearLength</a> (int32_t year) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return the length of the given year.  <a href="#a127be84d5a2d75ca5c7e382c59c97235"></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="classGregorianCalendar.html#a256c2c34dd24f4c5def8bd97bedf80a1">yearLength</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return the length of the year field.  <a href="#a256c2c34dd24f4c5def8bd97bedf80a1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#afc614bc74d3d9ce7272947b8e136d6ab">pinDayOfMonth</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">After adjustments such as add(MONTH), add(YEAR), we don't want the month to jump around.  <a href="#afc614bc74d3d9ce7272947b8e136d6ab"></a><br/></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="classGregorianCalendar.html#a87a5e98e6893195878c88371510c6a70">getEpochDay</a> (<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 day number with respect to the epoch.  <a href="#a87a5e98e6893195878c88371510c6a70"></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="classGregorianCalendar.html#a6075f0ad5bbe0cecd8283e45e93d482c">handleGetLimit</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">Subclass API for defining limits of different types.  <a href="#a6075f0ad5bbe0cecd8283e45e93d482c"></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="classGregorianCalendar.html#a9c8ef3f3ae56e41f52c7fd353348a09f">handleGetExtendedYear</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the extended year defined by the current fields.  <a href="#a9c8ef3f3ae56e41f52c7fd353348a09f"></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="classGregorianCalendar.html#a9068000f1c22c0d27ab752e01cacf082">handleGetExtendedYearFromWeekFields</a> (int32_t yearWoy, int32_t woy)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Subclasses may 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="#a9068000f1c22c0d27ab752e01cacf082"></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="classGregorianCalendar.html#a2f31b54f19ec8588cb1cfe1ade77eb07">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="#a2f31b54f19ec8588cb1cfe1ade77eb07"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Concrete class which provides the standard calendar used by most of the world. </p>
<p>The standard (Gregorian) calendar has 2 eras, BC and AD. </p>
<p>This implementation handles a single discontinuity, which corresponds by default to the date the Gregorian calendar was originally instituted (October 15, 1582). Not all countries adopted the Gregorian calendar then, so this cutover date may be changed by the caller. </p>
<p>Prior to the institution of the Gregorian <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>, New Year's Day was March 25. To avoid confusion, 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> always uses January 1. A manual adjustment may be made if desired for dates that are prior to the Gregorian changeover and which fall between January 1 and March 24.</p>
<p>Values calculated for the <code>WEEK_OF_YEAR</code> field range from 1 to 53. Week 1 for a year is the first week that contains at least <code><a class="el" href="classCalendar.html#ac39fb4eea23b9ea863ac3119913a3322" title="Gets what the minimal days required in the first week of the year are; e.g., if the...">getMinimalDaysInFirstWeek()</a></code> days from that year. It thus depends on the values of <code><a class="el" href="classCalendar.html#ac39fb4eea23b9ea863ac3119913a3322" title="Gets what the minimal days required in the first week of the year are; e.g., if the...">getMinimalDaysInFirstWeek()</a></code>, <code><a class="el" href="classCalendar.html#a0a8bdc7ffb9d13e948ef0268dbdddc26" title="Gets what the first day of the week is; e.g., Sunday in US, Monday in France.">getFirstDayOfWeek()</a></code>, and the day of the week of January 1. Weeks between week 1 of one year and week 1 of the following year are numbered sequentially from 2 to 52 or 53 (as needed).</p>
<p>For example, January 1, 1998 was a Thursday. If <code><a class="el" href="classCalendar.html#a0a8bdc7ffb9d13e948ef0268dbdddc26" title="Gets what the first day of the week is; e.g., Sunday in US, Monday in France.">getFirstDayOfWeek()</a></code> is <code>MONDAY</code> and <code><a class="el" href="classCalendar.html#ac39fb4eea23b9ea863ac3119913a3322" title="Gets what the minimal days required in the first week of the year are; e.g., if the...">getMinimalDaysInFirstWeek()</a></code> is 4 (these are the values reflecting ISO 8601 and many national standards), then week 1 of 1998 starts on December 29, 1997, and ends on January 4, 1998. If, however, <code><a class="el" href="classCalendar.html#a0a8bdc7ffb9d13e948ef0268dbdddc26" title="Gets what the first day of the week is; e.g., Sunday in US, Monday in France.">getFirstDayOfWeek()</a></code> is <code>SUNDAY</code>, then week 1 of 1998 starts on January 4, 1998, and ends on January 10, 1998; the first three days of 1998 then are part of week 53 of 1997.</p>
<p>Example for using <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a>: </p>
<pre>
 <div class="fragment"><pre class="fragment">     <span class="comment">// get the supported ids for GMT-08:00 (Pacific Standard Time)</span>
     <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a> success = <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78caa43dbfc9499c5f911d04e1a0ca3bf6f9" title="No error, no warning.">U_ZERO_ERROR</a>;
     <span class="keyword">const</span> <a class="code" href="classStringEnumeration.html" title="Base class for &amp;#39;pure&amp;#39; C++ implementations of uenum api.">StringEnumeration</a> *ids = <a class="code" href="classTimeZone.html#a362ad48ebf317d439247b3bc0e40789d" title="Returns an enumeration over all recognized time zone IDs.">TimeZone::createEnumeration</a>(-8 * 60 * 60 * 1000);
     <span class="comment">// if no ids were returned, something is wrong. get out.</span>
     <span class="keywordflow">if</span> (ids == 0 || ids-&gt;<a class="code" href="classStringEnumeration.html#a1747cfdb3a749c576dbf2a930ff7a010">count</a>(success) == 0) {
         <span class="keywordflow">return</span>;
     }

     <span class="comment">// begin output</span>
     cout &lt;&lt; <span class="stringliteral">&quot;Current Time&quot;</span> &lt;&lt; endl;

     <span class="comment">// create a Pacific Standard Time time zone</span>
     <a class="code" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a>* pdt = <span class="keyword">new</span> <a class="code" href="classSimpleTimeZone.html" title="SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for...">SimpleTimeZone</a>(-8 * 60 * 60 * 1000, ids-&gt;<a class="code" href="classStringEnumeration.html#a3ea012fc20253a0d97801a1d3cee0fcf">unext</a>(<a class="code" href="utypes_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4" title="Define NULL if necessary, to 0 for C++ and to ((void *)0) for C.">NULL</a>, success)));

     <span class="comment">// set up rules for daylight savings time</span>
     pdt-&gt;<a class="code" href="classSimpleTimeZone.html#a8c4a9581b04860da2c1cee479a47f196" title="Sets the daylight savings starting rule.">setStartRule</a>(<a class="code" href="ucal_8h.html#af13a67d4d259962e1840471f3a8e6596af65658af9cb3b9b829ae218318d8c11b" title="March.">UCAL_MARCH</a>, 1, <a class="code" href="ucal_8h.html#a62d9fe551bd48e4141fce52b917119a4a9db1e73b33252ffcd5d5a4197b68f805" title="Sunday.">UCAL_SUNDAY</a>, 2 * 60 * 60 * 1000);
     pdt-&gt;<a class="code" href="classSimpleTimeZone.html#ae2eee23700f7405a563cf01e3cedd797" title="Sets the daylight savings ending rule.">setEndRule</a>(<a class="code" href="ucal_8h.html#af13a67d4d259962e1840471f3a8e6596a5bf40eb18049fa52944f56f73a56d5a4" title="November.">UCAL_NOVEMBER</a>, 2, <a class="code" href="ucal_8h.html#a62d9fe551bd48e4141fce52b917119a4a9db1e73b33252ffcd5d5a4197b68f805" title="Sunday.">UCAL_SUNDAY</a>, 2 * 60 * 60 * 1000);

     <span class="comment">// create a GregorianCalendar with the Pacific Daylight time zone</span>
     <span class="comment">// and the current date and time</span>
     <a class="code" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>* calendar = <span class="keyword">new</span> <a class="code" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a>( pdt, success );

     <span class="comment">// print out a bunch of interesting things</span>
     cout &lt;&lt; <span class="stringliteral">&quot;ERA: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912a0ddda11f9012d9b033adab7e5d99a8d7" title="Field number indicating the era, e.g., AD or BC in the Gregorian (Julian) calendar...">UCAL_ERA</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;YEAR: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912a3e2b44660e01084c8b4990f281554ae1" title="Field number indicating the year.">UCAL_YEAR</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;MONTH: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912a9546c33a33caefb88822bd22d4667fe1" title="Field number indicating the month.">UCAL_MONTH</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;WEEK_OF_YEAR: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912ab4fa05d61c729a269a6b6bad11387eea" title="Field number indicating the week number within the current year.">UCAL_WEEK_OF_YEAR</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;WEEK_OF_MONTH: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912a3585d4fa3f681dbda0e9ac8826e36d2f" title="Field number indicating the week number within the current month.">UCAL_WEEK_OF_MONTH</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;DATE: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912a8086caf60ea1b9ca1f3ce590da84869e" title="Field number indicating the day of the month.">UCAL_DATE</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;DAY_OF_MONTH: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912acba35fb282eacc2434e3229a3f64ef7e" title="Field number indicating the day of the month.">UCAL_DAY_OF_MONTH</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;DAY_OF_YEAR: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912a4269b2063a9d820c4d6a81e573e72a33" title="Field number indicating the day number within the current year.">UCAL_DAY_OF_YEAR</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;DAY_OF_WEEK: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912ad922feccd72ca5e2ef90bb74a61f8070" title="Field number indicating the day of the week.">UCAL_DAY_OF_WEEK</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;DAY_OF_WEEK_IN_MONTH: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912a8ed09799953a8b540f50ae856be93fc2" title="Field number indicating the ordinal number of the day of the week within the current...">UCAL_DAY_OF_WEEK_IN_MONTH</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;AM_PM: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912ad94a5edcb9a6dd1c2480f4da8151bf04" title="Field number indicating whether the HOUR is before or after noon.">UCAL_AM_PM</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;HOUR: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912ac878e7ce810cf85e33b5a2e53e26c590" title="Field number indicating the hour of the morning or afternoon.">UCAL_HOUR</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;HOUR_OF_DAY: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912a022b239bf42bff7814930817c7190b4f" title="Field number indicating the hour of the day.">UCAL_HOUR_OF_DAY</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;MINUTE: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912a581a19cc0c5ff9ba238088cdb062c861" title="Field number indicating the minute within the hour.">UCAL_MINUTE</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;SECOND: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912a8bf78aa14924fb5eacd123ed11eedb9b" title="Field number indicating the second within the minute.">UCAL_SECOND</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;MILLISECOND: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912abc240c53c10619668e22f5cc08dc9555" title="Field number indicating the millisecond within the second.">UCAL_MILLISECOND</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;ZONE_OFFSET: &quot;</span> &lt;&lt; (calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912a956400c61f7ff988019c663580d4984c" title="Field number indicating the raw offset from GMT in milliseconds.">UCAL_ZONE_OFFSET</a>, success )/(60*60*1000)) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;DST_OFFSET: &quot;</span> &lt;&lt; (calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912adeaf79a310cfb7f9036a431b9ae0ff2a" title="Field number indicating the daylight savings offset in milliseconds.">UCAL_DST_OFFSET</a>, success )/(60*60*1000)) &lt;&lt; endl;

     cout &lt;&lt; <span class="stringliteral">&quot;Current Time, with hour reset to 3&quot;</span> &lt;&lt; endl;
     calendar-&gt;<a class="code" href="classCalendar.html#a7e0409b7750ff09b7275a061bd6ae816" title="Clears the values of all the time fields, making them both unset and assigning them...">clear</a>(<a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912a022b239bf42bff7814930817c7190b4f" title="Field number indicating the hour of the day.">UCAL_HOUR_OF_DAY</a>); <span class="comment">// so doesn&apos;t override</span>
     calendar-&gt;<a class="code" href="classCalendar.html#a98ba908ffc6a88d6566983d4f95245df" title="Sets the given time field with the given value.">set</a>(<a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912ac878e7ce810cf85e33b5a2e53e26c590" title="Field number indicating the hour of the morning or afternoon.">UCAL_HOUR</a>, 3);
     cout &lt;&lt; <span class="stringliteral">&quot;ERA: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912a0ddda11f9012d9b033adab7e5d99a8d7" title="Field number indicating the era, e.g., AD or BC in the Gregorian (Julian) calendar...">UCAL_ERA</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;YEAR: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912a3e2b44660e01084c8b4990f281554ae1" title="Field number indicating the year.">UCAL_YEAR</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;MONTH: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912a9546c33a33caefb88822bd22d4667fe1" title="Field number indicating the month.">UCAL_MONTH</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;WEEK_OF_YEAR: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912ab4fa05d61c729a269a6b6bad11387eea" title="Field number indicating the week number within the current year.">UCAL_WEEK_OF_YEAR</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;WEEK_OF_MONTH: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912a3585d4fa3f681dbda0e9ac8826e36d2f" title="Field number indicating the week number within the current month.">UCAL_WEEK_OF_MONTH</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;DATE: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912a8086caf60ea1b9ca1f3ce590da84869e" title="Field number indicating the day of the month.">UCAL_DATE</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;DAY_OF_MONTH: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912acba35fb282eacc2434e3229a3f64ef7e" title="Field number indicating the day of the month.">UCAL_DAY_OF_MONTH</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;DAY_OF_YEAR: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912a4269b2063a9d820c4d6a81e573e72a33" title="Field number indicating the day number within the current year.">UCAL_DAY_OF_YEAR</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;DAY_OF_WEEK: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912ad922feccd72ca5e2ef90bb74a61f8070" title="Field number indicating the day of the week.">UCAL_DAY_OF_WEEK</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;DAY_OF_WEEK_IN_MONTH: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912a8ed09799953a8b540f50ae856be93fc2" title="Field number indicating the ordinal number of the day of the week within the current...">UCAL_DAY_OF_WEEK_IN_MONTH</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;AM_PM: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912ad94a5edcb9a6dd1c2480f4da8151bf04" title="Field number indicating whether the HOUR is before or after noon.">UCAL_AM_PM</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;HOUR: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912ac878e7ce810cf85e33b5a2e53e26c590" title="Field number indicating the hour of the morning or afternoon.">UCAL_HOUR</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;HOUR_OF_DAY: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912a022b239bf42bff7814930817c7190b4f" title="Field number indicating the hour of the day.">UCAL_HOUR_OF_DAY</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;MINUTE: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912a581a19cc0c5ff9ba238088cdb062c861" title="Field number indicating the minute within the hour.">UCAL_MINUTE</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;SECOND: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912a8bf78aa14924fb5eacd123ed11eedb9b" title="Field number indicating the second within the minute.">UCAL_SECOND</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;MILLISECOND: &quot;</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912abc240c53c10619668e22f5cc08dc9555" title="Field number indicating the millisecond within the second.">UCAL_MILLISECOND</a>, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">&quot;ZONE_OFFSET: &quot;</span> &lt;&lt; (calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912a956400c61f7ff988019c663580d4984c" title="Field number indicating the raw offset from GMT in milliseconds.">UCAL_ZONE_OFFSET</a>, success )/(60*60*1000)) &lt;&lt; endl; <span class="comment">// in hours</span>
     cout &lt;&lt; <span class="stringliteral">&quot;DST_OFFSET: &quot;</span> &lt;&lt; (calendar-&gt;<a class="code" href="classCalendar.html#a0e86c32f3c5e1e45420d1b57fc5c369e" title="Gets the value for a given time field.">get</a>( <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912adeaf79a310cfb7f9036a431b9ae0ff2a" title="Field number indicating the daylight savings offset in milliseconds.">UCAL_DST_OFFSET</a>, success )/(60*60*1000)) &lt;&lt; endl; <span class="comment">// in hours</span>

     <span class="keywordflow">if</span> (<a class="code" href="utypes_8h.html#a4d202200b6aa6f3c965ea370e0c8155f" title="Does the error code indicate a failure?">U_FAILURE</a>(success)) {
         cout &lt;&lt; <span class="stringliteral">&quot;An error occured. success=&quot;</span> &lt;&lt; <a class="code" href="utypes_8h.html#a89eb455526bb29bf5350ee861d81df92" title="Return a string for a UErrorCode value.">u_errorName</a>(success) &lt;&lt; endl;
     }

     <span class="keyword">delete</span> ids;
     <span class="keyword">delete</span> calendar; <span class="comment">// also deletes pdt</span>
</pre></div>
 </pre> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002715">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="gregocal_8h_source.html#l00149">149</a> of file <a class="el" href="gregocal_8h_source.html">gregocal.h</a>.</p>
<hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="afeedaf0d04321220e77c46ba69b78619"></a><!-- doxytag: member="GregorianCalendar::EEras" ref="afeedaf0d04321220e77c46ba69b78619" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classGregorianCalendar.html#afeedaf0d04321220e77c46ba69b78619">GregorianCalendar::EEras</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Useful constants for <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> and <a class="el" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a>. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002716">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Definition at line <a class="el" href="gregocal_8h_source.html#l00156">156</a> of file <a class="el" href="gregocal_8h_source.html">gregocal.h</a>.</p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aef459c49036add0f69c9991ff7d7f11d"></a><!-- doxytag: member="GregorianCalendar::GregorianCalendar" ref="aef459c49036add0f69c9991ff7d7f11d" args="(UErrorCode &amp;success)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GregorianCalendar::GregorianCalendar </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></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a default <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> using the current time in the default time zone with 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="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</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#_stable002717">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a062240b2ac5791cc8b00ff871b022ec0"></a><!-- doxytag: member="GregorianCalendar::GregorianCalendar" ref="a062240b2ac5791cc8b00ff871b022ec0" args="(TimeZone *zoneToAdopt, UErrorCode &amp;success)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GregorianCalendar::GregorianCalendar </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></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> based on the current time in the given time zone with the default 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>zoneToAdopt</em>&nbsp;</td><td>The given timezone. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>success</em>&nbsp;</td><td>Indicates the status of <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</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#_stable002718">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a072fb9cf35f38dc78b5f6ac09856ce2b"></a><!-- doxytag: member="GregorianCalendar::GregorianCalendar" ref="a072fb9cf35f38dc78b5f6ac09856ce2b" args="(const TimeZone &amp;zone, UErrorCode &amp;success)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GregorianCalendar::GregorianCalendar </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></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> based on the current time in the given time zone with 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>zone</em>&nbsp;</td><td>The given timezone. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>success</em>&nbsp;</td><td>Indicates the status of <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</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#_stable002719">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a6b1045e9d4426d089d3c9fccf3ed1520"></a><!-- doxytag: member="GregorianCalendar::GregorianCalendar" ref="a6b1045e9d4426d089d3c9fccf3ed1520" args="(const Locale &amp;aLocale, UErrorCode &amp;success)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GregorianCalendar::GregorianCalendar </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></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> based on the current time in the default time zone with 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 status of <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</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#_stable002720">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="aa4776493fdf072637107e33db27ae0f4"></a><!-- doxytag: member="GregorianCalendar::GregorianCalendar" ref="aa4776493fdf072637107e33db27ae0f4" args="(TimeZone *zoneToAdopt, const Locale &amp;aLocale, UErrorCode &amp;success)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GregorianCalendar::GregorianCalendar </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></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> based on the current time in the given time zone with the given 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>zoneToAdopt</em>&nbsp;</td><td>The given timezone. </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="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</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#_stable002721">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a331be71044f6f7be43ddc9c65c0d47ea"></a><!-- doxytag: member="GregorianCalendar::GregorianCalendar" ref="a331be71044f6f7be43ddc9c65c0d47ea" 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">GregorianCalendar::GregorianCalendar </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></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> based on the current time in the given time zone with 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>zone</em>&nbsp;</td><td>The given timezone. </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="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</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#_stable002722">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="aee943a8e7ad66de21cf68f65d131583e"></a><!-- doxytag: member="GregorianCalendar::GregorianCalendar" ref="aee943a8e7ad66de21cf68f65d131583e" args="(int32_t year, int32_t month, int32_t date, UErrorCode &amp;success)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GregorianCalendar::GregorianCalendar </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"><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></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> with the given AD date set in the default time zone with 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>year</em>&nbsp;</td><td>The value used to set the YEAR time field in the calendar. </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 in the calendar. 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 in the calendar. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>success</em>&nbsp;</td><td>Indicates the status of <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</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#_stable002723">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a9d653bb7fd8865fd40f9bd8e499d4e00"></a><!-- doxytag: member="GregorianCalendar::GregorianCalendar" ref="a9d653bb7fd8865fd40f9bd8e499d4e00" args="(int32_t year, int32_t month, int32_t date, int32_t hour, int32_t minute, UErrorCode &amp;success)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GregorianCalendar::GregorianCalendar </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"><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></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> with the given AD date and time set for the default time zone with 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>year</em>&nbsp;</td><td>The value used to set the YEAR time field in the calendar. </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 in the calendar. 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 in the calendar. </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 in the calendar. </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 in the calendar. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>success</em>&nbsp;</td><td>Indicates the status of <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</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#_stable002724">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="ae4312d4bda173f6d707b08d389dd0525"></a><!-- doxytag: member="GregorianCalendar::GregorianCalendar" ref="ae4312d4bda173f6d707b08d389dd0525" args="(int32_t year, int32_t month, int32_t date, int32_t hour, int32_t minute, int32_t second, UErrorCode &amp;success)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GregorianCalendar::GregorianCalendar </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>
        </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></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> with the given AD date and time set for the default time zone with 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>year</em>&nbsp;</td><td>The value used to set the YEAR time field in the calendar. </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 in the calendar. 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 in the calendar. </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 in the calendar. </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 in the calendar. </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 in the calendar. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>success</em>&nbsp;</td><td>Indicates the status of <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</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#_stable002725">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a5ccea6f20e8762609df45b85450299e2"></a><!-- doxytag: member="GregorianCalendar::~GregorianCalendar" ref="a5ccea6f20e8762609df45b85450299e2" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual GregorianCalendar::~GregorianCalendar </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#_stable002726">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

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

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

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

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

<p>Implements <a class="el" href="classCalendar.html#a369327438e076e64c99ec1d669919957">Calendar</a>.</p>

</div>
</div>
<a class="anchor" id="a3c11c790997b4a7ef2009c9db5dfc7dd"></a><!-- doxytag: member="GregorianCalendar::defaultCenturyStart" ref="a3c11c790997b4a7ef2009c9db5dfc7dd" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> GregorianCalendar::defaultCenturyStart </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000317">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 </dd></dl>

<p>Implements <a class="el" href="classCalendar.html#a745cdbb7e0477cb7c3bb2b29bd0b4350">Calendar</a>.</p>

</div>
</div>
<a class="anchor" id="ad308638658b0758dcdaaae57a3599a27"></a><!-- doxytag: member="GregorianCalendar::defaultCenturyStartYear" ref="ad308638658b0758dcdaaae57a3599a27" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t GregorianCalendar::defaultCenturyStartYear </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000318">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 </dd></dl>

<p>Implements <a class="el" href="classCalendar.html#a4fa3cf26747f8decdb71d2f3786e9a34">Calendar</a>.</p>

</div>
</div>
<a class="anchor" id="aa6dffa7c30b24613fa6762c715dc24ab"></a><!-- doxytag: member="GregorianCalendar::getActualMaximum" ref="aa6dffa7c30b24613fa6762c715dc24ab" args="(UCalendarDateFields field, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t GregorianCalendar::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>
<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>status</em>&nbsp;</td><td>returns any errors that may result from this function call. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the maximum value that this field could have, given the current date. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002736">Stable:</a></b></dt><dd>ICU 2.6 </dd></dl>

<p>Reimplemented from <a class="el" href="classCalendar.html#af41a2769b5ce810d3ea5750c391c53b3">Calendar</a>.</p>

</div>
</div>
<a class="anchor" id="a1fe4199946f259c5fff4b3a976db628f"></a><!-- doxytag: member="GregorianCalendar::getActualMaximum" ref="a1fe4199946f259c5fff4b3a976db628f" args="(EDateFields field) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t GregorianCalendar::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>
          <td>&nbsp;)&nbsp;</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>
<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>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the maximum value that this field could have, given the current date. </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000200">Deprecated:</a></b></dt><dd>ICU 2.6. Use getActualMaximum(UCalendarDateFields field) instead. </dd></dl>

</div>
</div>
<a class="anchor" id="a3cddc1a8bd73250d23ef4ccd632c21c8"></a><!-- doxytag: member="GregorianCalendar::getActualMinimum" ref="a3cddc1a8bd73250d23ef4ccd632c21c8" args="(UCalendarDateFields field, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t GregorianCalendar::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>
<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>status</em>&nbsp;</td><td>error result. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the minimum value that this field could have, given the current date. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002735">Stable:</a></b></dt><dd>ICU 3.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classCalendar.html#affad02342fc829b1cb623698a57a1917">Calendar</a>.</p>

</div>
</div>
<a class="anchor" id="af24993c1cd9d48e203b820f6981f991e"></a><!-- doxytag: member="GregorianCalendar::getActualMinimum" ref="af24993c1cd9d48e203b820f6981f991e" args="(EDateFields field, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t GregorianCalendar::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>
<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>status</em>&nbsp;</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the minimum value that this field could have, given the current date. </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000199">Deprecated:</a></b></dt><dd>ICU 2.6. Use getActualMinimum(UCalendarDateFields field) instead. (Added to ICU 3.0 for signature consistency) </dd></dl>

<p>Reimplemented from <a class="el" href="classCalendar.html#a4e67d27df4e1579ce031de5e6ea05a2e">Calendar</a>.</p>

</div>
</div>
<a class="anchor" id="ac4638c3ac6effee100f6b18081533943"></a><!-- doxytag: member="GregorianCalendar::getActualMinimum" ref="ac4638c3ac6effee100f6b18081533943" args="(EDateFields field) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t GregorianCalendar::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>
          <td>&nbsp;)&nbsp;</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>
<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>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the minimum value that this field could have, given the current date. </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000198">Deprecated:</a></b></dt><dd>ICU 2.6. Use getActualMinimum(UCalendarDateFields field) instead. </dd></dl>

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

<p>Override <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> Returns a unique class ID POLYMORPHICALLY. </p>
<p>Pure virtual override. This method is to implement a simple version of RTTI, since not all C++ compilers support genuine RTTI. Polymorphic <a class="el" href="classCalendar.html#aa231d324e53576d3198a0aedd129f3ad" title="Compares the equality of two Calendar objects.">operator==()</a> and <a class="el" href="classGregorianCalendar.html#a6924d2c9812c8af226ca941b024c56aa" title="Create and return a polymorphic copy of this calendar.">clone()</a> methods call this method.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The class ID for this object. All objects of a given class have the same class ID. Objects of other classes have different class IDs. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002738">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implements <a class="el" href="classCalendar.html#a13e235c4396d92fc3b129d6a07e6076a">Calendar</a>.</p>

</div>
</div>
<a class="anchor" id="a87a5e98e6893195878c88371510c6a70"></a><!-- doxytag: member="GregorianCalendar::getEpochDay" ref="a87a5e98e6893195878c88371510c6a70" args="(UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> GregorianCalendar::getEpochDay </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>Return the day number with respect to the epoch. </p>
<p>January 1, 1970 (Gregorian) is day zero. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>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 day number with respect to the epoch. </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000310">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

</div>
</div>
<a class="anchor" id="a3e038439da10df6dec13fc500f2b54b5"></a><!-- doxytag: member="GregorianCalendar::getGregorianChange" ref="a3e038439da10df6dec13fc500f2b54b5" 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> GregorianCalendar::getGregorianChange </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 the Gregorian <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> change date. </p>
<p>This is the point when the switch from Julian dates to Gregorian dates occurred. Default is 00:00:00 local time, October 15, 1582. Previous to this time and date will be Julian dates.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The Gregorian cutover time for this calendar. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002731">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

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

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

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

<p>Get the calendar type, "gregorian", for use in <a class="el" href="classDateFormatSymbols.html" title="DateFormatSymbols is a public class for encapsulating localizable date-time formatting...">DateFormatSymbols</a>. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>calendar type </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000300">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Implements <a class="el" href="classCalendar.html#a46741d547451faae02591381593d127b">Calendar</a>.</p>

</div>
</div>
<a class="anchor" id="a2f31b54f19ec8588cb1cfe1ade77eb07"></a><!-- doxytag: member="GregorianCalendar::handleComputeFields" ref="a2f31b54f19ec8588cb1cfe1ade77eb07" args="(int32_t julianDay, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void GregorianCalendar::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>The <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> implementation implements a calendar with the specified Julian/Gregorian cutover date. </p>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000314">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Reimplemented from <a class="el" href="classCalendar.html#a195fad36b525b46df8934aca312db35e">Calendar</a>.</p>

</div>
</div>
<a class="anchor" id="a59b86395575bf7784ffe1f2edac5b165"></a><!-- doxytag: member="GregorianCalendar::handleComputeJulianDay" ref="a59b86395575bf7784ffe1f2edac5b165" args="(UCalendarDateFields bestField)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t GregorianCalendar::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="classGregorianCalendar.html#a05a03940641b2455a2875cbc31f386e9" 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#_internal000303">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Reimplemented from <a class="el" href="classCalendar.html#afd953ab4dc160ffc1b586c627c2c6ad9">Calendar</a>.</p>

</div>
</div>
<a class="anchor" id="a87badc27fdb6dc0638bc94864a4961d9"></a><!-- doxytag: member="GregorianCalendar::handleComputeMonthStart" ref="a87badc27fdb6dc0638bc94864a4961d9" args="(int32_t eyear, int32_t month, UBool useMonth) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t GregorianCalendar::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, 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#_internal000302">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Implements <a class="el" href="classCalendar.html#addb140c1bca76059b1a4084433ab67db">Calendar</a>.</p>

</div>
</div>
<a class="anchor" id="a9c8ef3f3ae56e41f52c7fd353348a09f"></a><!-- doxytag: member="GregorianCalendar::handleGetExtendedYear" ref="a9c8ef3f3ae56e41f52c7fd353348a09f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t GregorianCalendar::handleGetExtendedYear </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, 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#_internal000312">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Implements <a class="el" href="classCalendar.html#a465fbc6494f2126892dcd694217697f4">Calendar</a>.</p>

</div>
</div>
<a class="anchor" id="a9068000f1c22c0d27ab752e01cacf082"></a><!-- doxytag: member="GregorianCalendar::handleGetExtendedYearFromWeekFields" ref="a9068000f1c22c0d27ab752e01cacf082" args="(int32_t yearWoy, int32_t woy)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t GregorianCalendar::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 may 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 Gregorian implementation assumes a yearWoy in gregorian format, according to the current era. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the extended year, UCAL_EXTENDED_YEAR </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000313">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Reimplemented from <a class="el" href="classCalendar.html#a116247236ceda5f3d5424767d3c3c561">Calendar</a>.</p>

</div>
</div>
<a class="anchor" id="a6075f0ad5bbe0cecd8283e45e93d482c"></a><!-- doxytag: member="GregorianCalendar::handleGetLimit" ref="a6075f0ad5bbe0cecd8283e45e93d482c" args="(UCalendarDateFields field, ELimitType limitType) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t GregorianCalendar::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, 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#_internal000311">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Implements <a class="el" href="classCalendar.html#afd43a5f74be144b5ac90bc57a2f9cede">Calendar</a>.</p>

</div>
</div>
<a class="anchor" id="a05a03940641b2455a2875cbc31f386e9"></a><!-- doxytag: member="GregorianCalendar::handleGetMonthLength" ref="a05a03940641b2455a2875cbc31f386e9" args="(int32_t extendedYear, int32_t month) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t GregorianCalendar::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#_internal000304">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

<p>Reimplemented from <a class="el" href="classCalendar.html#aaa7b064d37f1ac4b66dc57fef6481cda">Calendar</a>.</p>

</div>
</div>
<a class="anchor" id="a32772c0335d2440b8fcb4cf7569e9f84"></a><!-- doxytag: member="GregorianCalendar::handleGetYearLength" ref="a32772c0335d2440b8fcb4cf7569e9f84" args="(int32_t eyear) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t GregorianCalendar::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#_stable002741">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classCalendar.html#acb983bdeebcfb0441ed46256b0f444cc">Calendar</a>.</p>

</div>
</div>
<a class="anchor" id="a777df4314a0e9266ee3fd20afcdb3218"></a><!-- doxytag: member="GregorianCalendar::haveDefaultCentury" ref="a777df4314a0e9266ee3fd20afcdb3218" args="() 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> GregorianCalendar::haveDefaultCentury </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000316">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 the notion of a default century </dd></dl>

<p>Implements <a class="el" href="classCalendar.html#ae5bb9c44ecea69ad64d813fe41de6efa">Calendar</a>.</p>

</div>
</div>
<a class="anchor" id="aa9dcb25c2fefe715f33fad5e11075cd8"></a><!-- doxytag: member="GregorianCalendar::inDaylightTime" ref="aa9dcb25c2fefe715f33fad5e11075cd8" args="(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> GregorianCalendar::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> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>(Overrides <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>) Return 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. </p>
<p>Recognizes DST_OFFSET, if it is 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>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#_stable002737">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>Implements <a class="el" href="classCalendar.html#a8199d459b6d2171fb62620fab29b8668">Calendar</a>.</p>

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

<p>Return the ERA. </p>
<p>We need a special method for this because the default ERA is AD, but a zero (unset) ERA is BC. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the ERA. </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000301">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

</div>
</div>
<a class="anchor" id="ab72c13d826e10d9292760b083c63f956"></a><!-- doxytag: member="GregorianCalendar::isEquivalentTo" ref="ab72c13d826e10d9292760b083c63f956" 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> GregorianCalendar::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><a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> override.</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#_stable002733">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

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

<p>Return true if the given year is a leap year. </p>
<p>Determination of whether a year is a leap year is actually very complicated. We do something crude and mostly correct here, but for a real determination you need a lot of contextual information. For example, in Sweden, the change from Julian to Gregorian happened in a complex way resulting in missed leap years and double leap years between 1700 and 1753. Another example is that after the start of the Julian calendar in 45 B.C., the leap years did not regularize until 8 A.D. This method ignores these quirks, and pays attention only to the Julian onset date and the Gregorian cutover (which can be changed).</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>year</em>&nbsp;</td><td>The given year. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if the given year is a leap year; false otherwise. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002732">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a2204aacfc59e4e74760e0aceaee38f62"></a><!-- doxytag: member="GregorianCalendar::monthLength" ref="a2204aacfc59e4e74760e0aceaee38f62" args="(int32_t month, int32_t year) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int32_t GregorianCalendar::monthLength </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>year</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 length of the month according to the given year. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>month</em>&nbsp;</td><td>the given month. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>year</em>&nbsp;</td><td>the given year. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the length of the month </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000306">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

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

<p>return the length of the given month. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>month</em>&nbsp;</td><td>the given month. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the length of the given month. </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000305">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

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

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

<p>Reimplemented from <a class="el" href="classCalendar.html#ac3bcbd2497e977c8324cc0b089879c3a">Calendar</a>.</p>

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

<p>After adjustments such as add(MONTH), add(YEAR), we don't want the month to jump around. </p>
<p>E.g., we don't want Jan 31 + 1 month to go to Mar 3, we want it to go to Feb 28. Adjustments which might run into this problem call this method to retain the proper month. </p>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000309">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

</div>
</div>
<a class="anchor" id="a356ca180f51ab33ce27f41fde8c43739"></a><!-- doxytag: member="GregorianCalendar::roll" ref="a356ca180f51ab33ce27f41fde8c43739" args="(UCalendarDateFields field, int32_t amount, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void GregorianCalendar::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>(Overrides <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>) Rolls up or down by the given amount in the specified field. </p>
<p>For more information, see the documentation for <a class="el" href="classCalendar.html#a98e5b80bb733a6e8dec95b8ac0225a68" title="Time Field Rolling function.">Calendar::roll()</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>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#_stable002734">Stable:</a></b></dt><dd>ICU 2.6. </dd></dl>

<p>Reimplemented from <a class="el" href="classCalendar.html#a5d5aa7348953398da594654c3edbb681">Calendar</a>.</p>

</div>
</div>
<a class="anchor" id="a94eb045ce42c58b4f823e55f91bb695e"></a><!-- doxytag: member="GregorianCalendar::roll" ref="a94eb045ce42c58b4f823e55f91bb695e" args="(EDateFields field, int32_t amount, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void GregorianCalendar::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>(Overrides <a class="el" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>) Rolls up or down by the given amount in the specified field. </p>
<p>For more information, see the documentation for <a class="el" href="classCalendar.html#a98e5b80bb733a6e8dec95b8ac0225a68" title="Time Field Rolling function.">Calendar::roll()</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>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#_deprecated000197">Deprecated:</a></b></dt><dd>ICU 2.6. Use <a class="el" href="classGregorianCalendar.html#a356ca180f51ab33ce27f41fde8c43739" title="(Overrides Calendar) Rolls up or down by the given amount in the specified field...">roll(UCalendarDateFields field, int32_t amount, UErrorCode&amp; status)</a> instead. </dd></dl>

<p>Reimplemented from <a class="el" href="classCalendar.html#abff9f8c5e0b0206b9312e64a0ff89666">Calendar</a>.</p>

</div>
</div>
<a class="anchor" id="a5e643d82a8dba031b54c97f057d804f6"></a><!-- doxytag: member="GregorianCalendar::setGregorianChange" ref="a5e643d82a8dba031b54c97f057d804f6" args="(UDate date, UErrorCode &amp;success)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GregorianCalendar::setGregorianChange </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>success</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 <a class="el" href="classGregorianCalendar.html" title="Concrete class which provides the standard calendar used by most of the world.">GregorianCalendar</a> change date. </p>
<p>This is the point when the switch from Julian dates to Gregorian dates occurred. Default is 00:00:00 local time, October 15, 1582. Previous to this time and date will be Julian 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>date</em>&nbsp;</td><td>The given Gregorian cutover date. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>success</em>&nbsp;</td><td>Output param set to success/failure code on exit. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002730">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

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

<p>return the length of the year field. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the length of the year field </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000308">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

</div>
</div>
<a class="anchor" id="a127be84d5a2d75ca5c7e382c59c97235"></a><!-- doxytag: member="GregorianCalendar::yearLength" ref="a127be84d5a2d75ca5c7e382c59c97235" args="(int32_t year) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t GregorianCalendar::yearLength </td>
          <td>(</td>
          <td class="paramtype">int32_t&nbsp;</td>
          <td class="paramname"> <em>year</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>return the length of the given year. </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 given year. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the length of the given year. </dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000307">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

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