Sophie

Sophie

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

libicu-doc-3.6-5.16.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>ICU 3.6: GregorianCalendar Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li id="current"><a href="classes.html"><span>Data&nbsp;Structures</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
    <li>
      <form action="search.php" method="get">
        <table cellspacing="0" cellpadding="0" border="0">
          <tr>
            <td><label>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</label></td>
            <td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
          </tr>
        </table>
      </form>
    </li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
  </ul></div>
<h1>GregorianCalendar Class Reference</h1><!-- doxytag: class="GregorianCalendar" --><!-- doxytag: inherits="Calendar" -->Concrete class which provides the standard calendar used by most of the world.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="gregocal_8h-source.html">gregocal.h</a>&gt;</code>
<p>
<p>Inheritance diagram for GregorianCalendar:
<p><center><img src="classGregorianCalendar.png" usemap="#GregorianCalendar_map" border="0" alt=""></center>
<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>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bc6b1904713c7433eba0707cfa610629a8e0352fb01c773b862ee83ab28e80b7"></a><!-- doxytag: member="GregorianCalendar::BC" ref="bc6b1904713c7433eba0707cfa610629a8e0352fb01c773b862ee83ab28e80b7" args="" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>BC</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bc6b1904713c7433eba0707cfa6106293e3914194531cdc672b43678b666d2a1"></a><!-- doxytag: member="GregorianCalendar::AD" ref="bc6b1904713c7433eba0707cfa6106293e3914194531cdc672b43678b666d2a1" args="" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>AD</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#bc6b1904713c7433eba0707cfa610629">EEras</a> { <b>BC</b>, 
<b>AD</b>
 }</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constants for <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> and <a class="el" href="classTimeZone.html">TimeZone</a>.  <a href="classGregorianCalendar.html#bc6b1904713c7433eba0707cfa610629">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#eb0ee474939950684512606afb67aa0a">GregorianCalendar</a> (<a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;success)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a default <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> using the current time in the default time zone with the default locale.  <a href="#eb0ee474939950684512606afb67aa0a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#f4688f4a1e15e2ec8b3c541cb0d66718">GregorianCalendar</a> (<a class="el" href="classTimeZone.html">TimeZone</a> *zoneToAdopt, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;success)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> based on the current time in the given time zone with the default locale.  <a href="#f4688f4a1e15e2ec8b3c541cb0d66718"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#d721940046ca2b19990377c438923f3c">GregorianCalendar</a> (const <a class="el" href="classTimeZone.html">TimeZone</a> &amp;zone, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;success)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> based on the current time in the given time zone with the default locale.  <a href="#d721940046ca2b19990377c438923f3c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#886215ff71800d8547156ec020adbe5d">GregorianCalendar</a> (const <a class="el" href="classLocale.html">Locale</a> &amp;aLocale, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;success)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> based on the current time in the default time zone with the given locale.  <a href="#886215ff71800d8547156ec020adbe5d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#ad7abb5059dbb8a701081eb2241e8bcb">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#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;success)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> based on the current time in the given time zone with the given locale.  <a href="#ad7abb5059dbb8a701081eb2241e8bcb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#fa1d6188274ec4f4ae9f1f9b1a8634b5">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#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;success)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> based on the current time in the given time zone with the given locale.  <a href="#fa1d6188274ec4f4ae9f1f9b1a8634b5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#b285bbcaf5f33c9f77f6c7c961b27716">GregorianCalendar</a> (<a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> year, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> month, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> date, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;success)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> with the given AD date set in the default time zone with the default locale.  <a href="#b285bbcaf5f33c9f77f6c7c961b27716"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#50ef26a48a673cd9eb9ed02b848b8c97">GregorianCalendar</a> (<a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> year, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> month, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> date, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> hour, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> minute, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;success)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> with the given AD date and time set for the default time zone with the default locale.  <a href="#50ef26a48a673cd9eb9ed02b848b8c97"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#a3a697286e030cbd5b909409316d9c5d">GregorianCalendar</a> (<a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> year, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> month, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> date, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> hour, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> minute, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> second, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;success)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> with the given AD date and time set for the default time zone with the default locale.  <a href="#a3a697286e030cbd5b909409316d9c5d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#967de76d57bde76f2185446acc86a3e3">~GregorianCalendar</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor.  <a href="#967de76d57bde76f2185446acc86a3e3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#ac431af1e1a864e2467262c30f8d4093">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="#ac431af1e1a864e2467262c30f8d4093"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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#649b8612af4629006cf81df306c4f234">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="#649b8612af4629006cf81df306c4f234"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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#3962b2dd5eb57148a1ead1b4a63efb0c">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="#3962b2dd5eb57148a1ead1b4a63efb0c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#b20126e8c4a402505f7121b6b76dddbd">setGregorianChange</a> (<a class="el" href="utypes_8h.html#e96c34189656815fe8f67e288f9bf8bf">UDate</a> date, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;success)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> change date.  <a href="#b20126e8c4a402505f7121b6b76dddbd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="utypes_8h.html#e96c34189656815fe8f67e288f9bf8bf">UDate</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#f4d0ea303833422032a78d4bcbe38050">getGregorianChange</a> (void) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the Gregorian <a class="el" href="classCalendar.html">Calendar</a> change date.  <a href="#f4d0ea303833422032a78d4bcbe38050"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#c614e8f72d7481d52362d4260deb9030">isLeapYear</a> (<a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> 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="#c614e8f72d7481d52362d4260deb9030"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#aeb58b43d9cd8457566ebd90a4b073a2">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">Calendar</a> object is equivalent to this one.  <a href="#aeb58b43d9cd8457566ebd90a4b073a2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#5b89ec6d3220993b51e814fc6f94bcf3">roll</a> (<a class="el" href="classCalendar.html#4e04530c68fa752ef694645f572e1ca1">EDateFields</a> field, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> amount, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">(Overrides <a class="el" href="classCalendar.html">Calendar</a>) Rolls up or down by the given amount in the specified field.  <a href="#5b89ec6d3220993b51e814fc6f94bcf3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#3dc2ff9fcec44c3296c26f40c66a89f0">roll</a> (<a class="el" href="ucal_8h.html#85bfa8d4630527b55232da61ffec5959">UCalendarDateFields</a> field, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> amount, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">(Overrides <a class="el" href="classCalendar.html">Calendar</a>) Rolls up or down by the given amount in the specified field.  <a href="#3dc2ff9fcec44c3296c26f40c66a89f0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#c574e9cf3e0b6c98746f8e430793aae8">getActualMinimum</a> (<a class="el" href="classCalendar.html#4e04530c68fa752ef694645f572e1ca1">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="#c574e9cf3e0b6c98746f8e430793aae8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#8cb9e06f471e90a7a1b54d5242a8a777">getActualMinimum</a> (<a class="el" href="classCalendar.html#4e04530c68fa752ef694645f572e1ca1">EDateFields</a> field, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">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="#8cb9e06f471e90a7a1b54d5242a8a777"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#4bbaf5d28e58378021fafd3b6cdda727">getActualMinimum</a> (<a class="el" href="ucal_8h.html#85bfa8d4630527b55232da61ffec5959">UCalendarDateFields</a> field, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">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="#4bbaf5d28e58378021fafd3b6cdda727"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#913f27a170c9dffa52f8c2b6c6d76f3f">getActualMaximum</a> (<a class="el" href="classCalendar.html#4e04530c68fa752ef694645f572e1ca1">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="#913f27a170c9dffa52f8c2b6c6d76f3f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#03fb44794d6cc0db8c5655729d4b9b10">getActualMaximum</a> (<a class="el" href="ucal_8h.html#85bfa8d4630527b55232da61ffec5959">UCalendarDateFields</a> field, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">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="#03fb44794d6cc0db8c5655729d4b9b10"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#50c5162aa4d31e81c5d65d2402917b9f">inDaylightTime</a> (<a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;status) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">(Overrides <a class="el" href="classCalendar.html">Calendar</a>) Return true if the current date for this <a class="el" href="classCalendar.html">Calendar</a> is in Daylight Savings Time.  <a href="#50c5162aa4d31e81c5d65d2402917b9f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="utypes_8h.html#452dc3c7d14eb1a1837ae1aa0b2d6724">UClassID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#34ca7e77130bbef06f5579b819113e03">getDynamicClassID</a> (void) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Override <a class="el" href="classCalendar.html">Calendar</a> Returns a unique class ID POLYMORPHICALLY.  <a href="#34ca7e77130bbef06f5579b819113e03"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#5f6b132383e34b8f8a79d90d829279c7">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">DateFormatSymbols</a>.  <a href="#5f6b132383e34b8f8a79d90d829279c7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#0623343cd2dfcef6127a4be0cc3cd703">haveDefaultCentury</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="utypes_8h.html#e96c34189656815fe8f67e288f9bf8bf">UDate</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#c4bf31a645f4a11d3370c7dc843b85a8">defaultCenturyStart</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#9624be1e198432158c7ec1a41bcb596e">defaultCenturyStartYear</a> () const </td></tr>

<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="utypes_8h.html#452dc3c7d14eb1a1837ae1aa0b2d6724">UClassID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#bfec9ec2fe657d3d4706bc890da65c93">getStaticClassID</a> (void)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the class ID for this class.  <a href="#bfec9ec2fe657d3d4706bc890da65c93"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#b10387dc926f05f702153ce6d1274d99">internalGetEra</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the ERA.  <a href="#b10387dc926f05f702153ce6d1274d99"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#fe74fb18434f400028f41391440a6328">handleComputeMonthStart</a> (<a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> eyear, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> month, <a class="el" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">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="#fe74fb18434f400028f41391440a6328"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#96512a72f8f5d3563d17d1cb89608de9">handleComputeJulianDay</a> (<a class="el" href="ucal_8h.html#85bfa8d4630527b55232da61ffec5959">UCalendarDateFields</a> bestField)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Subclasses may override this.  <a href="#96512a72f8f5d3563d17d1cb89608de9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#1fb70af0ce77c64cfd62e225fd9c75c7">handleGetMonthLength</a> (<a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> extendedYear, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> 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="#1fb70af0ce77c64cfd62e225fd9c75c7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#d80b85402ee5c991ed11c7dca3e3deb5">handleGetYearLength</a> (<a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> 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="#d80b85402ee5c991ed11c7dca3e3deb5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#eb1cfb31080b597e58d4e03e65729626">monthLength</a> (<a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> month) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return the length of the given month.  <a href="#eb1cfb31080b597e58d4e03e65729626"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#cfdbec8cdf200b944569925f5af08131">monthLength</a> (<a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> month, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> 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="#cfdbec8cdf200b944569925f5af08131"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#3e0410ad2b95d11676f2ed312f6774db">yearLength</a> (<a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> year) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return the length of the given year.  <a href="#3e0410ad2b95d11676f2ed312f6774db"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#e868a5c2191552ba36e1710f16957255">yearLength</a> (void) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return the length of the year field.  <a href="#e868a5c2191552ba36e1710f16957255"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#70651d5667e314307c8227ad0284c02b">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="#70651d5667e314307c8227ad0284c02b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="utypes_8h.html#e96c34189656815fe8f67e288f9bf8bf">UDate</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#a88809e8a74b883e55c2130c89a51608">getEpochDay</a> (<a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">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="#a88809e8a74b883e55c2130c89a51608"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#6bfc07f05bec08f97dde9015069dcac6">handleGetLimit</a> (<a class="el" href="ucal_8h.html#85bfa8d4630527b55232da61ffec5959">UCalendarDateFields</a> field, <a class="el" href="classCalendar.html#5b8a83d03864d358edc757449baaef60">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="#6bfc07f05bec08f97dde9015069dcac6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#f1e7c51a86c78dbcac7d5e6f16bfda2e">handleGetExtendedYear</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the extended year defined by the current fields.  <a href="#f1e7c51a86c78dbcac7d5e6f16bfda2e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#01d449ef4b37c96d53124fcdf2a1298b">handleGetExtendedYearFromWeekFields</a> (<a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> yearWoy, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> 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="#01d449ef4b37c96d53124fcdf2a1298b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGregorianCalendar.html#55b84834e1dbd7ae8f12de8792c2889c">handleComputeFields</a> (<a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> julianDay, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">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="#55b84834e1dbd7ae8f12de8792c2889c"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Concrete class which provides the standard calendar used by most of the world. 
<p>
The standard (Gregorian) calendar has 2 eras, BC and AD. <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>
Prior to the institution of the Gregorian <a class="el" href="classCalendar.html">Calendar</a>, New Year's Day was March 25. To avoid confusion, this <a class="el" href="classCalendar.html">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>
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#b7f573dca4a7ccf734e3ba8aff223cae">getMinimalDaysInFirstWeek()</a></code> days from that year. It thus depends on the values of <code><a class="el" href="classCalendar.html#b7f573dca4a7ccf734e3ba8aff223cae">getMinimalDaysInFirstWeek()</a></code>, <code><a class="el" href="classCalendar.html#284649fc88e1ae76bd5fdc2bb8138348">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>
For example, January 1, 1998 was a Thursday. If <code><a class="el" href="classCalendar.html#284649fc88e1ae76bd5fdc2bb8138348">getFirstDayOfWeek()</a></code> is <code>MONDAY</code> and <code><a class="el" href="classCalendar.html#b7f573dca4a7ccf734e3ba8aff223cae">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#284649fc88e1ae76bd5fdc2bb8138348">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>
Example for using <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a>: <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#863c11989634c998849cc946d04dfabe">UErrorCode</a> success = <a class="code" href="utypes_8h.html#863c11989634c998849cc946d04dfabe3734e0f4726e8f9f03ad0372fe1d7c4d">U_ZERO_ERROR</a>;
     <span class="keyword">const</span> <a class="code" href="classStringEnumeration.html">StringEnumeration</a> *ids = <a class="code" href="classTimeZone.html#c0cd984db0f0fa9f2b06e0edce159db5">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#94a4a2b921a8b1f640b8ea4c9c2e7660">count</a>(success) == 0) {
         <span class="keywordflow">return</span>;
     }

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

     <span class="comment">// create a Pacific Standard Time time zone</span>
     <a class="code" href="classSimpleTimeZone.html">SimpleTimeZone</a>* pdt = <span class="keyword">new</span> <a class="code" href="classSimpleTimeZone.html">SimpleTimeZone</a>(-8 * 60 * 60 * 1000, ids-&gt;<a class="code" href="classStringEnumeration.html#0175731a6e3c6ec6d8419c6f05e9daee">unext</a>(<a class="code" href="utypes_8h.html#73db6a27182fb6f49fadbdad318845ce">NULL</a>, success)));

     <span class="comment">// set up rules for daylight savings time</span>
     pdt-&gt;<a class="code" href="classSimpleTimeZone.html#b3702b6e8fc81ee0b273c1e2b9fa1c85">setStartRule</a>(Calendar::APRIL, 1, Calendar::SUNDAY, 2 * 60 * 60 * 1000);
     pdt-&gt;<a class="code" href="classSimpleTimeZone.html#f66f5b79e79742160e1640a5a4b90a3d">setEndRule</a>(Calendar::OCTOBER, -1, Calendar::SUNDAY, 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">Calendar</a>* calendar = <span class="keyword">new</span> <a class="code" href="classGregorianCalendar.html">GregorianCalendar</a>( pdt, success );

     <span class="comment">// print out a bunch of interesting things</span>
     cout &lt;&lt; <span class="stringliteral">"ERA: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::ERA, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"YEAR: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::YEAR, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"MONTH: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::MONTH, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"WEEK_OF_YEAR: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::WEEK_OF_YEAR, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"WEEK_OF_MONTH: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::WEEK_OF_MONTH, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"DATE: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::DATE, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"DAY_OF_MONTH: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::DAY_OF_MONTH, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"DAY_OF_YEAR: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::DAY_OF_YEAR, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"DAY_OF_WEEK: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::DAY_OF_WEEK, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"DAY_OF_WEEK_IN_MONTH: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::DAY_OF_WEEK_IN_MONTH, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"AM_PM: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::AM_PM, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"HOUR: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::HOUR, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"HOUR_OF_DAY: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::HOUR_OF_DAY, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"MINUTE: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::MINUTE, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"SECOND: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::SECOND, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"MILLISECOND: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::MILLISECOND, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"ZONE_OFFSET: "</span> &lt;&lt; (calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::ZONE_OFFSET, success )/(60*60*1000)) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"DST_OFFSET: "</span> &lt;&lt; (calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::DST_OFFSET, success )/(60*60*1000)) &lt;&lt; endl;

     cout &lt;&lt; <span class="stringliteral">"Current Time, with hour reset to 3"</span> &lt;&lt; endl;
     calendar-&gt;<a class="code" href="classCalendar.html#6b9d76dac901e90a8e2f30450997d17d">clear</a>(Calendar::HOUR_OF_DAY); <span class="comment">// so doesn't override</span>
     calendar-&gt;<a class="code" href="classCalendar.html#dba5482faff869007cca6131ae5525d7">set</a>(Calendar::HOUR, 3);
     cout &lt;&lt; <span class="stringliteral">"ERA: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::ERA, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"YEAR: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::YEAR, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"MONTH: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::MONTH, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"WEEK_OF_YEAR: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::WEEK_OF_YEAR, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"WEEK_OF_MONTH: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::WEEK_OF_MONTH, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"DATE: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::DATE, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"DAY_OF_MONTH: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::DAY_OF_MONTH, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"DAY_OF_YEAR: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::DAY_OF_YEAR, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"DAY_OF_WEEK: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::DAY_OF_WEEK, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"DAY_OF_WEEK_IN_MONTH: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::DAY_OF_WEEK_IN_MONTH, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"AM_PM: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::AM_PM, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"HOUR: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::HOUR, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"HOUR_OF_DAY: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::HOUR_OF_DAY, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"MINUTE: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::MINUTE, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"SECOND: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::SECOND, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"MILLISECOND: "</span> &lt;&lt; calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::MILLISECOND, success ) &lt;&lt; endl;
     cout &lt;&lt; <span class="stringliteral">"ZONE_OFFSET: "</span> &lt;&lt; (calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::ZONE_OFFSET, success )/(60*60*1000)) &lt;&lt; endl; <span class="comment">// in hours</span>
     cout &lt;&lt; <span class="stringliteral">"DST_OFFSET: "</span> &lt;&lt; (calendar-&gt;<a class="code" href="classCalendar.html#9a1d9e3bd2628e1285b72285e765845f">get</a>( Calendar::DST_OFFSET, 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#488895ec2af6692af4afe1ddb1908155">U_FAILURE</a>(success)) {
         cout &lt;&lt; <span class="stringliteral">"An error occured. success="</span> &lt;&lt; <a class="code" href="utypes_8h.html#bc4fffb476a2d2c2068dcd8b956dc7b3">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 compact><dt><b><a class="el" href="stable.html#_stable002238">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>

<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>.<hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="bc6b1904713c7433eba0707cfa610629"></a><!-- doxytag: member="GregorianCalendar::EEras" ref="bc6b1904713c7433eba0707cfa610629" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classGregorianCalendar.html#bc6b1904713c7433eba0707cfa610629">GregorianCalendar::EEras</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constants for <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> and <a class="el" href="classTimeZone.html">TimeZone</a>. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable002239">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>.
</div>
</div><p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="eb0ee474939950684512606afb67aa0a"></a><!-- doxytag: member="GregorianCalendar::GregorianCalendar" ref="eb0ee474939950684512606afb67aa0a" 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#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>success</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructs a default <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> using the current time in the default time zone with the default locale. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>success</em>&nbsp;</td><td>Indicates the status of <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> object construction. Returns U_ZERO_ERROR if constructed successfully. </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002240">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="f4688f4a1e15e2ec8b3c541cb0d66718"></a><!-- doxytag: member="GregorianCalendar::GregorianCalendar" ref="f4688f4a1e15e2ec8b3c541cb0d66718" 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#863c11989634c998849cc946d04dfabe">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 width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructs a <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> based on the current time in the given time zone with the default locale. 
<p>
Clients are no longer responsible for deleting the given time zone object after it's adopted.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>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">GregorianCalendar</a> object construction. Returns U_ZERO_ERROR if constructed successfully. </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002241">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="d721940046ca2b19990377c438923f3c"></a><!-- doxytag: member="GregorianCalendar::GregorianCalendar" ref="d721940046ca2b19990377c438923f3c" 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#863c11989634c998849cc946d04dfabe">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 width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructs a <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> based on the current time in the given time zone with the default locale. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>zone</em>&nbsp;</td><td>The given timezone. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>success</em>&nbsp;</td><td>Indicates the status of <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> object construction. Returns U_ZERO_ERROR if constructed successfully. </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002242">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="886215ff71800d8547156ec020adbe5d"></a><!-- doxytag: member="GregorianCalendar::GregorianCalendar" ref="886215ff71800d8547156ec020adbe5d" 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#863c11989634c998849cc946d04dfabe">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 width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructs a <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> based on the current time in the default time zone with the given locale. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>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">GregorianCalendar</a> object construction. Returns U_ZERO_ERROR if constructed successfully. </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002243">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="ad7abb5059dbb8a701081eb2241e8bcb"></a><!-- doxytag: member="GregorianCalendar::GregorianCalendar" ref="ad7abb5059dbb8a701081eb2241e8bcb" 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#863c11989634c998849cc946d04dfabe">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 width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructs a <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> based on the current time in the given time zone with the given locale. 
<p>
Clients are no longer responsible for deleting the given time zone object after it's adopted.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>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">GregorianCalendar</a> object construction. Returns U_ZERO_ERROR if constructed successfully. </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002244">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="fa1d6188274ec4f4ae9f1f9b1a8634b5"></a><!-- doxytag: member="GregorianCalendar::GregorianCalendar" ref="fa1d6188274ec4f4ae9f1f9b1a8634b5" 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#863c11989634c998849cc946d04dfabe">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 width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructs a <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> based on the current time in the given time zone with the given locale. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>zone</em>&nbsp;</td><td>The given timezone. </td></tr>
    <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">GregorianCalendar</a> object construction. Returns U_ZERO_ERROR if constructed successfully. </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002245">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="b285bbcaf5f33c9f77f6c7c961b27716"></a><!-- doxytag: member="GregorianCalendar::GregorianCalendar" ref="b285bbcaf5f33c9f77f6c7c961b27716" 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"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>year</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>date</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>success</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructs a <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> with the given AD date set in the default time zone with the default locale. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>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">GregorianCalendar</a> object construction. Returns U_ZERO_ERROR if constructed successfully. </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002246">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="50ef26a48a673cd9eb9ed02b848b8c97"></a><!-- doxytag: member="GregorianCalendar::GregorianCalendar" ref="50ef26a48a673cd9eb9ed02b848b8c97" 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"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>year</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>date</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>hour</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>minute</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>success</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructs a <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> with the given AD date and time set for the default time zone with the default locale. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>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">GregorianCalendar</a> object construction. Returns U_ZERO_ERROR if constructed successfully. </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002247">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="a3a697286e030cbd5b909409316d9c5d"></a><!-- doxytag: member="GregorianCalendar::GregorianCalendar" ref="a3a697286e030cbd5b909409316d9c5d" 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"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>year</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>date</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>hour</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>minute</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>second</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>success</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructs a <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> with the given AD date and time set for the default time zone with the default locale. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>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">GregorianCalendar</a> object construction. Returns U_ZERO_ERROR if constructed successfully. </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002248">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

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

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

</div>
</div><p>
<a class="anchor" name="ac431af1e1a864e2467262c30f8d4093"></a><!-- doxytag: member="GregorianCalendar::GregorianCalendar" ref="ac431af1e1a864e2467262c30f8d4093" 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 width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="3962b2dd5eb57148a1ead1b4a63efb0c"></a><!-- doxytag: member="GregorianCalendar::clone" ref="3962b2dd5eb57148a1ead1b4a63efb0c" 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 width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

<p>
Implements <a class="el" href="classCalendar.html#9b5b6f74e76fd740e7a75ef12e8b58ea">Calendar</a>.
</div>
</div><p>
<a class="anchor" name="c4bf31a645f4a11d3370c7dc843b85a8"></a><!-- doxytag: member="GregorianCalendar::defaultCenturyStart" ref="c4bf31a645f4a11d3370c7dc843b85a8" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="utypes_8h.html#e96c34189656815fe8f67e288f9bf8bf">UDate</a> GregorianCalendar::defaultCenturyStart           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b><a class="el" href="internal.html#_internal000160">Internal:</a></b></dt><dd>Do not use. This API is for interal use only.  </dd></dl>
<dl compact><dt><b>Returns:</b></dt><dd>the start of the default century </dd></dl>

<p>
Implements <a class="el" href="classCalendar.html#50274187459a2984177d4d4451285de3">Calendar</a>.
</div>
</div><p>
<a class="anchor" name="9624be1e198432158c7ec1a41bcb596e"></a><!-- doxytag: member="GregorianCalendar::defaultCenturyStartYear" ref="9624be1e198432158c7ec1a41bcb596e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> GregorianCalendar::defaultCenturyStartYear           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b><a class="el" href="internal.html#_internal000161">Internal:</a></b></dt><dd>Do not use. This API is for interal use only.  </dd></dl>
<dl compact><dt><b>Returns:</b></dt><dd>the beginning year of the default century </dd></dl>

<p>
Implements <a class="el" href="classCalendar.html#2a0982f88f61e017587aefffc7473e9d">Calendar</a>.
</div>
</div><p>
<a class="anchor" name="03fb44794d6cc0db8c5655729d4b9b10"></a><!-- doxytag: member="GregorianCalendar::getActualMaximum" ref="03fb44794d6cc0db8c5655729d4b9b10" args="(UCalendarDateFields field, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> GregorianCalendar::getActualMaximum           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#85bfa8d4630527b55232da61ffec5959">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#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return the maximum value that this field could have, given the current date. 
<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. <dl compact><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>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the maximum value that this field could have, given the current date. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002259">Stable:</a></b></dt><dd>ICU 2.6 </dd></dl>

<p>
Reimplemented from <a class="el" href="classCalendar.html#63aeb6b7b0a07ac5ceb886839cb5010f">Calendar</a>.
</div>
</div><p>
<a class="anchor" name="913f27a170c9dffa52f8c2b6c6d76f3f"></a><!-- doxytag: member="GregorianCalendar::getActualMaximum" ref="913f27a170c9dffa52f8c2b6c6d76f3f" args="(EDateFields field) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> GregorianCalendar::getActualMaximum           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCalendar.html#4e04530c68fa752ef694645f572e1ca1">EDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return the maximum value that this field could have, given the current date. 
<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. <dl compact><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>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the maximum value that this field could have, given the current date. </dd></dl>
<dl compact><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><p>
<a class="anchor" name="4bbaf5d28e58378021fafd3b6cdda727"></a><!-- doxytag: member="GregorianCalendar::getActualMinimum" ref="4bbaf5d28e58378021fafd3b6cdda727" args="(UCalendarDateFields field, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> GregorianCalendar::getActualMinimum           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#85bfa8d4630527b55232da61ffec5959">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#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return the minimum value that this field could have, given the current date. 
<p>
For the Gregorian calendar, this is the same as <a class="el" href="classCalendar.html#aefde7689614da5d0d5704715b26c208">getMinimum()</a> and <a class="el" href="classCalendar.html#799991b65d850dba2214b4acfc7a2e51">getGreatestMinimum()</a>. <dl compact><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>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the minimum value that this field could have, given the current date. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002258">Stable:</a></b></dt><dd>ICU 3.0 </dd></dl>

<p>
Reimplemented from <a class="el" href="classCalendar.html#2b3537c4b425ff0a68462c45ac3f1863">Calendar</a>.
</div>
</div><p>
<a class="anchor" name="8cb9e06f471e90a7a1b54d5242a8a777"></a><!-- doxytag: member="GregorianCalendar::getActualMinimum" ref="8cb9e06f471e90a7a1b54d5242a8a777" args="(EDateFields field, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> GregorianCalendar::getActualMinimum           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCalendar.html#4e04530c68fa752ef694645f572e1ca1">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#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return the minimum value that this field could have, given the current date. 
<p>
For the Gregorian calendar, this is the same as <a class="el" href="classCalendar.html#aefde7689614da5d0d5704715b26c208">getMinimum()</a> and <a class="el" href="classCalendar.html#799991b65d850dba2214b4acfc7a2e51">getGreatestMinimum()</a>. <dl compact><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>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the minimum value that this field could have, given the current date. </dd></dl>
<dl compact><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>

</div>
</div><p>
<a class="anchor" name="c574e9cf3e0b6c98746f8e430793aae8"></a><!-- doxytag: member="GregorianCalendar::getActualMinimum" ref="c574e9cf3e0b6c98746f8e430793aae8" args="(EDateFields field) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> GregorianCalendar::getActualMinimum           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCalendar.html#4e04530c68fa752ef694645f572e1ca1">EDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return the minimum value that this field could have, given the current date. 
<p>
For the Gregorian calendar, this is the same as <a class="el" href="classCalendar.html#aefde7689614da5d0d5704715b26c208">getMinimum()</a> and <a class="el" href="classCalendar.html#799991b65d850dba2214b4acfc7a2e51">getGreatestMinimum()</a>. <dl compact><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>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the minimum value that this field could have, given the current date. </dd></dl>
<dl compact><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><p>
<a class="anchor" name="34ca7e77130bbef06f5579b819113e03"></a><!-- doxytag: member="GregorianCalendar::getDynamicClassID" ref="34ca7e77130bbef06f5579b819113e03" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="utypes_8h.html#452dc3c7d14eb1a1837ae1aa0b2d6724">UClassID</a> GregorianCalendar::getDynamicClassID           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Override <a class="el" href="classCalendar.html">Calendar</a> Returns a unique class ID POLYMORPHICALLY. 
<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#59b84ad72bb665b8ec612aac31a85b37">operator==()</a> and <a class="el" href="classGregorianCalendar.html#3962b2dd5eb57148a1ead1b4a63efb0c">clone()</a> methods call this method.<p>
<dl compact><dt><b>Returns:</b></dt><dd>The class ID for this object. All objects of a given class have the same class ID. Objects of other classes have different class IDs. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002261">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Implements <a class="el" href="classCalendar.html#8d2a861063c95b5ba55889cfcf0dca97">Calendar</a>.
</div>
</div><p>
<a class="anchor" name="a88809e8a74b883e55c2130c89a51608"></a><!-- doxytag: member="GregorianCalendar::getEpochDay" ref="a88809e8a74b883e55c2130c89a51608" 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#e96c34189656815fe8f67e288f9bf8bf">UDate</a> GregorianCalendar::getEpochDay           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return the day number with respect to the epoch. 
<p>
January 1, 1970 (Gregorian) is day zero. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Fill-in parameter which receives the status of this operation. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the day number with respect to the epoch. </dd></dl>
<dl compact><dt><b><a class="el" href="internal.html#_internal000153">Internal:</a></b></dt><dd>Do not use. This API is for interal use only.  </dd></dl>

</div>
</div><p>
<a class="anchor" name="f4d0ea303833422032a78d4bcbe38050"></a><!-- doxytag: member="GregorianCalendar::getGregorianChange" ref="f4d0ea303833422032a78d4bcbe38050" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="utypes_8h.html#e96c34189656815fe8f67e288f9bf8bf">UDate</a> GregorianCalendar::getGregorianChange           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the Gregorian <a class="el" href="classCalendar.html">Calendar</a> change date. 
<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 compact><dt><b>Returns:</b></dt><dd>The Gregorian cutover time for this calendar. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002254">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

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

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

</div>
</div><p>
<a class="anchor" name="5f6b132383e34b8f8a79d90d829279c7"></a><!-- doxytag: member="GregorianCalendar::getType" ref="5f6b132383e34b8f8a79d90d829279c7" 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 width="100%"> 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">DateFormatSymbols</a>. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>calendar type </dd></dl>
<dl compact><dt><b><a class="el" href="internal.html#_internal000143">Internal:</a></b></dt><dd>Do not use. This API is for interal use only.  </dd></dl>

<p>
Implements <a class="el" href="classCalendar.html#7b07ebb0862d0664948c108f4f07d821">Calendar</a>.
</div>
</div><p>
<a class="anchor" name="55b84834e1dbd7ae8f12de8792c2889c"></a><!-- doxytag: member="GregorianCalendar::handleComputeFields" ref="55b84834e1dbd7ae8f12de8792c2889c" 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"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&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#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [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>
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">GregorianCalendar</a> implementation implements a calendar with the specified Julian/Gregorian cutover date. <dl compact><dt><b><a class="el" href="internal.html#_internal000157">Internal:</a></b></dt><dd>Do not use. This API is for interal use only.  </dd></dl>

<p>
Reimplemented from <a class="el" href="classCalendar.html#b54207bec698963b5b45864e7754ed56">Calendar</a>.
</div>
</div><p>
<a class="anchor" name="96512a72f8f5d3563d17d1cb89608de9"></a><!-- doxytag: member="GregorianCalendar::handleComputeJulianDay" ref="96512a72f8f5d3563d17d1cb89608de9" args="(UCalendarDateFields bestField)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> GregorianCalendar::handleComputeJulianDay           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#85bfa8d4630527b55232da61ffec5959">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>bestField</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Subclasses may override this. 
<p>
This method calls <a class="el" href="classGregorianCalendar.html#1fb70af0ce77c64cfd62e225fd9c75c7">handleGetMonthLength()</a> to obtain the calendar-specific month length. <dl compact><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>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>julian day specified by calendar fields. </dd></dl>
<dl compact><dt><b><a class="el" href="internal.html#_internal000146">Internal:</a></b></dt><dd>Do not use. This API is for interal use only.  </dd></dl>

<p>
Reimplemented from <a class="el" href="classCalendar.html#db4c69e70982f79828ba48f31956cd73">Calendar</a>.
</div>
</div><p>
<a class="anchor" name="fe74fb18434f400028f41391440a6328"></a><!-- doxytag: member="GregorianCalendar::handleComputeMonthStart" ref="fe74fb18434f400028f41391440a6328" args="(int32_t eyear, int32_t month, UBool useMonth) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> GregorianCalendar::handleComputeMonthStart           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>eyear</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">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 width="100%"> 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>
Subclasses should override this method to implement their calendar system. <dl compact><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>
</dl>
<dl compact><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 compact><dt><b><a class="el" href="internal.html#_internal000145">Internal:</a></b></dt><dd>Do not use. This API is for interal use only.  </dd></dl>

<p>
Implements <a class="el" href="classCalendar.html#616cf92f1f673cc866ee5001cf1db4b6">Calendar</a>.
</div>
</div><p>
<a class="anchor" name="f1e7c51a86c78dbcac7d5e6f16bfda2e"></a><!-- doxytag: member="GregorianCalendar::handleGetExtendedYear" ref="f1e7c51a86c78dbcac7d5e6f16bfda2e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> GregorianCalendar::handleGetExtendedYear           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return the extended year defined by the current fields. 
<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. <dl compact><dt><b>Returns:</b></dt><dd>the extended year </dd></dl>
<dl compact><dt><b><a class="el" href="internal.html#_internal000155">Internal:</a></b></dt><dd>Do not use. This API is for interal use only.  </dd></dl>

<p>
Implements <a class="el" href="classCalendar.html#3d96520c36ecbf5c98e6b9f05c823ba4">Calendar</a>.
</div>
</div><p>
<a class="anchor" name="01d449ef4b37c96d53124fcdf2a1298b"></a><!-- doxytag: member="GregorianCalendar::handleGetExtendedYearFromWeekFields" ref="01d449ef4b37c96d53124fcdf2a1298b" args="(int32_t yearWoy, int32_t woy)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> GregorianCalendar::handleGetExtendedYearFromWeekFields           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>yearWoy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>woy</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><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>
The Gregorian implementation assumes a yearWoy in gregorian format, according to the current era. <dl compact><dt><b>Returns:</b></dt><dd>the extended year, UCAL_EXTENDED_YEAR </dd></dl>
<dl compact><dt><b><a class="el" href="internal.html#_internal000156">Internal:</a></b></dt><dd>Do not use. This API is for interal use only.  </dd></dl>

<p>
Reimplemented from <a class="el" href="classCalendar.html#65bfb6b2527e4b92aaca1b4af3a5d41a">Calendar</a>.
</div>
</div><p>
<a class="anchor" name="6bfc07f05bec08f97dde9015069dcac6"></a><!-- doxytag: member="GregorianCalendar::handleGetLimit" ref="6bfc07f05bec08f97dde9015069dcac6" args="(UCalendarDateFields field, ELimitType limitType) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> GregorianCalendar::handleGetLimit           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#85bfa8d4630527b55232da61ffec5959">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#5b8a83d03864d358edc757449baaef60">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 width="100%"> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Subclass API for defining limits of different types. 
<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><p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>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>
</dl>
<dl compact><dt><b><a class="el" href="internal.html#_internal000154">Internal:</a></b></dt><dd>Do not use. This API is for interal use only.  </dd></dl>

</div>
</div><p>
<a class="anchor" name="1fb70af0ce77c64cfd62e225fd9c75c7"></a><!-- doxytag: member="GregorianCalendar::handleGetMonthLength" ref="1fb70af0ce77c64cfd62e225fd9c75c7" args="(int32_t extendedYear, int32_t month) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> GregorianCalendar::handleGetMonthLength           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>extendedYear</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>month</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> 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>
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">Calendar</a>. <dl compact><dt><b><a class="el" href="internal.html#_internal000147">Internal:</a></b></dt><dd>Do not use. This API is for interal use only.  </dd></dl>

<p>
Reimplemented from <a class="el" href="classCalendar.html#495c939394fc383c2a3e3fe54984d720">Calendar</a>.
</div>
</div><p>
<a class="anchor" name="d80b85402ee5c991ed11c7dca3e3deb5"></a><!-- doxytag: member="GregorianCalendar::handleGetYearLength" ref="d80b85402ee5c991ed11c7dca3e3deb5" args="(int32_t eyear) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> GregorianCalendar::handleGetYearLength           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>eyear</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> 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>
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">Calendar</a>. <dl compact><dt><b><a class="el" href="stable.html#_stable002264">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Reimplemented from <a class="el" href="classCalendar.html#d3d7d8dddd621f65e0be90780e072ef2">Calendar</a>.
</div>
</div><p>
<a class="anchor" name="0623343cd2dfcef6127a4be0cc3cd703"></a><!-- doxytag: member="GregorianCalendar::haveDefaultCentury" ref="0623343cd2dfcef6127a4be0cc3cd703" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a> GregorianCalendar::haveDefaultCentury           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b><a class="el" href="internal.html#_internal000159">Internal:</a></b></dt><dd>Do not use. This API is for interal use only.  </dd></dl>
<dl compact><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#2d30e4a0349b3f6103839e2c748b67b6">Calendar</a>.
</div>
</div><p>
<a class="anchor" name="50c5162aa4d31e81c5d65d2402917b9f"></a><!-- doxytag: member="GregorianCalendar::inDaylightTime" ref="50c5162aa4d31e81c5d65d2402917b9f" 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#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a> GregorianCalendar::inDaylightTime           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
(Overrides <a class="el" href="classCalendar.html">Calendar</a>) Return true if the current date for this <a class="el" href="classCalendar.html">Calendar</a> is in Daylight Savings Time. 
<p>
Recognizes DST_OFFSET, if it is set.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Fill-in parameter which receives the status of this operation. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>True if the current date for this <a class="el" href="classCalendar.html">Calendar</a> is in Daylight Savings Time, false, otherwise. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002260">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Implements <a class="el" href="classCalendar.html#69e40ddff31ff03db8e2ae88d4bf38a4">Calendar</a>.
</div>
</div><p>
<a class="anchor" name="b10387dc926f05f702153ce6d1274d99"></a><!-- doxytag: member="GregorianCalendar::internalGetEra" ref="b10387dc926f05f702153ce6d1274d99" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> GregorianCalendar::internalGetEra           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

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

<p>
Returns TRUE if the given <a class="el" href="classCalendar.html">Calendar</a> object is equivalent to this one. 
<p>
<a class="el" href="classCalendar.html">Calendar</a> override.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>other</em>&nbsp;</td><td>the <a class="el" href="classCalendar.html">Calendar</a> to be compared with this <a class="el" href="classCalendar.html">Calendar</a> </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002256">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>

<p>
Reimplemented from <a class="el" href="classCalendar.html#c74cab5328cc6edbca5dc6a13ea4406b">Calendar</a>.
</div>
</div><p>
<a class="anchor" name="c614e8f72d7481d52362d4260deb9030"></a><!-- doxytag: member="GregorianCalendar::isLeapYear" ref="c614e8f72d7481d52362d4260deb9030" 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#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a> GregorianCalendar::isLeapYear           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>year</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return true if the given year is a leap year. 
<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 compact><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>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>True if the given year is a leap year; false otherwise. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002255">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="cfdbec8cdf200b944569925f5af08131"></a><!-- doxytag: member="GregorianCalendar::monthLength" ref="cfdbec8cdf200b944569925f5af08131" args="(int32_t month, int32_t year) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> GregorianCalendar::monthLength           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>year</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> 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 compact><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>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the length of the month </dd></dl>
<dl compact><dt><b><a class="el" href="internal.html#_internal000149">Internal:</a></b></dt><dd>Do not use. This API is for interal use only.  </dd></dl>

</div>
</div><p>
<a class="anchor" name="eb1cfb31080b597e58d4e03e65729626"></a><!-- doxytag: member="GregorianCalendar::monthLength" ref="eb1cfb31080b597e58d4e03e65729626" args="(int32_t month) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> GregorianCalendar::monthLength           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>month</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div><p>
<a class="anchor" name="649b8612af4629006cf81df306c4f234"></a><!-- doxytag: member="GregorianCalendar::operator=" ref="649b8612af4629006cf81df306c4f234" 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 width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div><p>
<a class="anchor" name="70651d5667e314307c8227ad0284c02b"></a><!-- doxytag: member="GregorianCalendar::pinDayOfMonth" ref="70651d5667e314307c8227ad0284c02b" 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 width="100%"><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>
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. <dl compact><dt><b><a class="el" href="internal.html#_internal000152">Internal:</a></b></dt><dd>Do not use. This API is for interal use only.  </dd></dl>

</div>
</div><p>
<a class="anchor" name="3dc2ff9fcec44c3296c26f40c66a89f0"></a><!-- doxytag: member="GregorianCalendar::roll" ref="3dc2ff9fcec44c3296c26f40c66a89f0" 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#85bfa8d4630527b55232da61ffec5959">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="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&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#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
(Overrides <a class="el" href="classCalendar.html">Calendar</a>) Rolls up or down by the given amount in the specified field. 
<p>
For more information, see the documentation for <a class="el" href="classCalendar.html#73a22766da1280e49df0eadf4fd172db">Calendar::roll()</a>.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>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>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002257">Stable:</a></b></dt><dd>ICU 2.6. </dd></dl>

<p>
Reimplemented from <a class="el" href="classCalendar.html#1d27d5b84d58b244f3ad4400921cbf17">Calendar</a>.
</div>
</div><p>
<a class="anchor" name="5b89ec6d3220993b51e814fc6f94bcf3"></a><!-- doxytag: member="GregorianCalendar::roll" ref="5b89ec6d3220993b51e814fc6f94bcf3" 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#4e04530c68fa752ef694645f572e1ca1">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="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&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#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
(Overrides <a class="el" href="classCalendar.html">Calendar</a>) Rolls up or down by the given amount in the specified field. 
<p>
For more information, see the documentation for <a class="el" href="classCalendar.html#73a22766da1280e49df0eadf4fd172db">Calendar::roll()</a>.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>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>
</dl>
<dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000197">Deprecated:</a></b></dt><dd>ICU 2.6. Use <a class="el" href="classGregorianCalendar.html#3dc2ff9fcec44c3296c26f40c66a89f0">roll(UCalendarDateFields field, int32_t amount, UErrorCode&amp; status)</a> instead. </dd></dl>

</div>
</div><p>
<a class="anchor" name="b20126e8c4a402505f7121b6b76dddbd"></a><!-- doxytag: member="GregorianCalendar::setGregorianChange" ref="b20126e8c4a402505f7121b6b76dddbd" 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#e96c34189656815fe8f67e288f9bf8bf">UDate</a>&nbsp;</td>
          <td class="paramname"> <em>date</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>success</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the <a class="el" href="classGregorianCalendar.html">GregorianCalendar</a> change date. 
<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 compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>date</em>&nbsp;</td><td>The given 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>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002253">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="e868a5c2191552ba36e1710f16957255"></a><!-- doxytag: member="GregorianCalendar::yearLength" ref="e868a5c2191552ba36e1710f16957255" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> GregorianCalendar::yearLength           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div><p>
<a class="anchor" name="3e0410ad2b95d11676f2ed312f6774db"></a><!-- doxytag: member="GregorianCalendar::yearLength" ref="3e0410ad2b95d11676f2ed312f6774db" args="(int32_t year) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> GregorianCalendar::yearLength           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>year</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

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