<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.util.GregorianCalendar
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.util.html">This Package</a>  <a href="java.util.EventObject.html#_top_">Previous</a>  <a href="java.util.Hashtable.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.util.GregorianCalendar
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----<a href="java.util.Calendar.html#_top_">java.util.Calendar</a>
           |
           +----java.util.GregorianCalendar
</pre>
<hr>
<dl>
  <dt> public class <b>GregorianCalendar</b>
  <dt> extends <a href="java.util.Calendar.html#_top_">Calendar</a>
</dl>
<code>GregorianCalendar</code> is a concrete subclass of
 <a href="java.util.Calendar.html"><code>Calendar</code></a>
 and 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 instituted (October 15,
 1582 in some countries, later in others). This cutover date may be changed
 by the caller.
 <p>
 Prior to the institution of the Gregorian calendar, New Year's Day was
 March 25. To avoid confusion, this calendar 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>
 <strong>Example:</strong>
 <blockquote>
 <pre>
 // get the supported ids for GMT-08:00 (Pacific Standard Time)
 String[] ids = TimeZone.getAvailableIDs(-8 * 60 * 60 * 1000);
 // if no ids were returned, something is wrong. get out.
 if (ids.length == 0)
     System.exit(0);
  // begin output
 System.out.println("Current Time");
 // create a Pacific Standard Time time zone
 SimpleTimeZone pdt = new SimpleTimeZone(-8 * 60 * 60 * 1000, ids[0]);
 // set up rules for daylight savings time
 pdt.setStartRule(Calendar.APRIL, 1, Calendar.SUNDAY, 2 * 60 * 60 * 1000);
 pdt.setEndRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 2 * 60 * 60 * 1000);
 // create a GregorianCalendar with the Pacific Daylight time zone
 // and the current date and time
 Calendar calendar = new GregorianCalendar(pdt);
 Date trialTime = new Date();
 calendar.setTime(trialTime);
 // print out a bunch of interesting things
 System.out.println("ERA: " + calendar.get(Calendar.ERA));
 System.out.println("YEAR: " + calendar.get(Calendar.YEAR));
 System.out.println("MONTH: " + calendar.get(Calendar.MONTH));
 System.out.println("WEEK_OF_YEAR: " + calendar.get(Calendar.WEEK_OF_YEAR));
 System.out.println("WEEK_OF_MONTH: " + calendar.get(Calendar.WEEK_OF_MONTH));
 System.out.println("DATE: " + calendar.get(Calendar.DATE));
 System.out.println("DAY_OF_MONTH: " + calendar.get(Calendar.DAY_OF_MONTH));
 System.out.println("DAY_OF_YEAR: " + calendar.get(Calendar.DAY_OF_YEAR));
 System.out.println("DAY_OF_WEEK: " + calendar.get(Calendar.DAY_OF_WEEK));
 System.out.println("DAY_OF_WEEK_IN_MONTH: "
                    + calendar.get(Calendar.DAY_OF_WEEK_IN_MONTH));
 System.out.println("AM_PM: " + calendar.get(Calendar.AM_PM));
 System.out.println("HOUR: " + calendar.get(Calendar.HOUR));
 System.out.println("HOUR_OF_DAY: " + calendar.get(Calendar.HOUR_OF_DAY));
 System.out.println("MINUTE: " + calendar.get(Calendar.MINUTE));
 System.out.println("SECOND: " + calendar.get(Calendar.SECOND));
 System.out.println("MILLISECOND: " + calendar.get(Calendar.MILLISECOND));
 System.out.println("ZONE_OFFSET: "
                    + (calendar.get(Calendar.ZONE_OFFSET)/(60*60*1000)));
 System.out.println("DST_OFFSET: "
                    + (calendar.get(Calendar.DST_OFFSET)/(60*60*1000)));
 System.out.println("Current Time, with hour reset to 3");
 calendar.clear(Calendar.HOUR_OF_DAY); // so doesn't override
 calendar.set(Calendar.HOUR, 3);
 System.out.println("ERA: " + calendar.get(Calendar.ERA));
 System.out.println("YEAR: " + calendar.get(Calendar.YEAR));
 System.out.println("MONTH: " + calendar.get(Calendar.MONTH));
 System.out.println("WEEK_OF_YEAR: " + calendar.get(Calendar.WEEK_OF_YEAR));
 System.out.println("WEEK_OF_MONTH: " + calendar.get(Calendar.WEEK_OF_MONTH));
 System.out.println("DATE: " + calendar.get(Calendar.DATE));
 System.out.println("DAY_OF_MONTH: " + calendar.get(Calendar.DAY_OF_MONTH));
 System.out.println("DAY_OF_YEAR: " + calendar.get(Calendar.DAY_OF_YEAR));
 System.out.println("DAY_OF_WEEK: " + calendar.get(Calendar.DAY_OF_WEEK));
 System.out.println("DAY_OF_WEEK_IN_MONTH: "
                    + calendar.get(Calendar.DAY_OF_WEEK_IN_MONTH));
 System.out.println("AM_PM: " + calendar.get(Calendar.AM_PM));
 System.out.println("HOUR: " + calendar.get(Calendar.HOUR));
 System.out.println("HOUR_OF_DAY: " + calendar.get(Calendar.HOUR_OF_DAY));
 System.out.println("MINUTE: " + calendar.get(Calendar.MINUTE));
 System.out.println("SECOND: " + calendar.get(Calendar.SECOND));
 System.out.println("MILLISECOND: " + calendar.get(Calendar.MILLISECOND));
 System.out.println("ZONE_OFFSET: "
        + (calendar.get(Calendar.ZONE_OFFSET)/(60*60*1000))); // in hours
 System.out.println("DST_OFFSET: "
        + (calendar.get(Calendar.DST_OFFSET)/(60*60*1000))); // in hours
 </pre>
 </blockquote>
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.util.Calendar.html#_top_">Calendar</a>, <a href="java.util.TimeZone.html#_top_">TimeZone</a>
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/variable-index.gif" width=207 height=38 alt="Variable Index">
</h2>
<dl>
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#AD"><b>AD</b></a>
  <dd>  Useful constant for GregorianCalendar.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#BC"><b>BC</b></a>
  <dd>  Useful constant for GregorianCalendar.
</dl>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#GregorianCalendar()"><b>GregorianCalendar</b></a>()
  <dd>  Constructs a default GregorianCalendar using the current time
 in the default time zone with the default locale.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#GregorianCalendar(int, int, int)"><b>GregorianCalendar</b></a>(int, int, int)
  <dd>  Constructs a GregorianCalendar with the given date set
 in the default time zone with the default locale.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#GregorianCalendar(int, int, int, int, int)"><b>GregorianCalendar</b></a>(int, int, int, int, int)
  <dd>  Constructs a GregorianCalendar with the given date
 and time set for the default time zone with the default locale.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#GregorianCalendar(int, int, int, int, int, int)"><b>GregorianCalendar</b></a>(int, int, int, int, int, int)
  <dd>  Constructs a GregorianCalendar with the given date
 and time set for the default time zone with the default locale.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#GregorianCalendar(java.util.Locale)"><b>GregorianCalendar</b></a>(Locale)
  <dd>  Constructs a GregorianCalendar based on the current time
 in the default time zone with the given locale.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#GregorianCalendar(java.util.TimeZone)"><b>GregorianCalendar</b></a>(TimeZone)
  <dd>  Constructs a GregorianCalendar based on the current time
 in the given time zone with the default locale.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#GregorianCalendar(java.util.TimeZone, java.util.Locale)"><b>GregorianCalendar</b></a>(TimeZone, Locale)
  <dd>  Constructs a GregorianCalendar based on the current time
 in the given time zone with the given locale.
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#add(int, int)"><b>add</b></a>(int, int)
  <dd>  Overrides Calendar
 Date Arithmetic function.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#after(java.lang.Object)"><b>after</b></a>(Object)
  <dd>  Compares the time field records.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#before(java.lang.Object)"><b>before</b></a>(Object)
  <dd>  Compares the time field records.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#computeFields()"><b>computeFields</b></a>()
  <dd>  Overrides Calendar
 Converts UTC as milliseconds to time field values.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#computeTime()"><b>computeTime</b></a>()
  <dd>  Overrides Calendar
 Converts time field values to UTC as milliseconds.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#equals(java.lang.Object)"><b>equals</b></a>(Object)
  <dd>  Compares this calendar to the specified object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getGreatestMinimum(int)"><b>getGreatestMinimum</b></a>(int)
  <dd>  Returns highest minimum value for the given field if varies.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getGregorianChange()"><b>getGregorianChange</b></a>()
  <dd>  Gets the Gregorian Calendar change date.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getLeastMaximum(int)"><b>getLeastMaximum</b></a>(int)
  <dd>  Returns lowest maximum value for the given field if varies.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getMaximum(int)"><b>getMaximum</b></a>(int)
  <dd>  Returns maximum value for the given field.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getMinimum(int)"><b>getMinimum</b></a>(int)
  <dd>  Returns minimum value for the given field.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#hashCode()"><b>hashCode</b></a>()
  <dd>  Override hashCode.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#isLeapYear(int)"><b>isLeapYear</b></a>(int)
  <dd>  Determines if the given year is a leap year.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#roll(int, boolean)"><b>roll</b></a>(int, boolean)
  <dd>  Overrides Calendar
 Time Field Rolling function.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setGregorianChange(java.util.Date)"><b>setGregorianChange</b></a>(Date)
  <dd>  Sets the GregorianCalendar change date.
</dl>
<a name="variables"></a>
<h2>
  <img src="images/variables.gif" width=153 height=38 alt="Variables">
</h2>
<a name="BC"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>BC</b>
<pre>
 public static final int BC
</pre>
<dl>
  <dd> Useful constant for GregorianCalendar.<p>
</dl>
<a name="AD"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>AD</b>
<pre>
 public static final int AD
</pre>
<dl>
  <dd> Useful constant for GregorianCalendar.<p>
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="GregorianCalendar"></a>
<a name="GregorianCalendar()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>GregorianCalendar</b>
<pre>
 public GregorianCalendar()
</pre>
<dl>
  <dd> Constructs a default GregorianCalendar using the current time
 in the default time zone with the default locale.
<p>
</dl>
<a name="GregorianCalendar(java.util.TimeZone)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>GregorianCalendar</b>
<pre>
 public GregorianCalendar(<a href="java.util.TimeZone.html#_top_">TimeZone</a> zone)
</pre>
<dl>
  <dd> Constructs a GregorianCalendar based on the current time
 in the given time zone with the default locale.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> zone - the given time zone.
  </dl></dd>
</dl>
<a name="GregorianCalendar(java.util.Locale)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>GregorianCalendar</b>
<pre>
 public GregorianCalendar(<a href="java.util.Locale.html#_top_">Locale</a> aLocale)
</pre>
<dl>
  <dd> Constructs a GregorianCalendar based on the current time
 in the default time zone with the given locale.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> aLocale - the given locale.
  </dl></dd>
</dl>
<a name="GregorianCalendar(java.util.TimeZone, java.util.Locale)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>GregorianCalendar</b>
<pre>
 public GregorianCalendar(<a href="java.util.TimeZone.html#_top_">TimeZone</a> zone,
                          <a href="java.util.Locale.html#_top_">Locale</a> aLocale)
</pre>
<dl>
  <dd> Constructs a GregorianCalendar based on the current time
 in the given time zone with the given locale.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> zone - the given time zone.
    <dd> aLocale - the given locale.
  </dl></dd>
</dl>
<a name="GregorianCalendar(int, int, int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>GregorianCalendar</b>
<pre>
 public GregorianCalendar(int year,
                          int month,
                          int date)
</pre>
<dl>
  <dd> Constructs a GregorianCalendar with the given date set
 in the default time zone with the default locale.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> year - the value used to set the YEAR time field in the calendar.
    <dd> month - the value used to set the MONTH time field in the calendar.
 Month value is 0-based. e.g., 0 for January.
    <dd> date - the value used to set the DATE time field in the calendar.
  </dl></dd>
</dl>
<a name="GregorianCalendar(int, int, int, int, int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>GregorianCalendar</b>
<pre>
 public GregorianCalendar(int year,
                          int month,
                          int date,
                          int hour,
                          int minute)
</pre>
<dl>
  <dd> Constructs a GregorianCalendar with the given date
 and time set for the default time zone with the default locale.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> year - the value used to set the YEAR time field in the calendar.
    <dd> month - the value used to set the MONTH time field in the calendar.
 Month value is 0-based. e.g., 0 for January.
    <dd> date - the value used to set the DATE time field in the calendar.
    <dd> hour - the value used to set the HOUR_OF_DAY time field
 in the calendar.
    <dd> minute - the value used to set the MINUTE time field
 in the calendar.
  </dl></dd>
</dl>
<a name="GregorianCalendar(int, int, int, int, int, int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>GregorianCalendar</b>
<pre>
 public GregorianCalendar(int year,
                          int month,
                          int date,
                          int hour,
                          int minute,
                          int second)
</pre>
<dl>
  <dd> Constructs a GregorianCalendar with the given date
 and time set for the default time zone with the default locale.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> year - the value used to set the YEAR time field in the calendar.
    <dd> month - the value used to set the MONTH time field in the calendar.
 Month value is 0-based. e.g., 0 for January.
    <dd> date - the value used to set the DATE time field in the calendar.
    <dd> hour - the value used to set the HOUR_OF_DAY time field
 in the calendar.
    <dd> minute - the value used to set the MINUTE time field
 in the calendar.
    <dd> second - the value used to set the SECOND time field
 in the calendar.
  </dl></dd>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="equals(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="equals"><b>equals</b></a>
<pre>
 public boolean equals(<a href="java.lang.Object.html#_top_">Object</a> obj)
</pre>
<dl>
  <dd> Compares this calendar to the specified object.
 The result is <code>true</code> if and only if the argument is
 not <code>null</code> and is a <code>Calendar</code> object that
 represents the same calendar as this object.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> obj - the object to compare with.
    <dt> <b>Returns:</b>
    <dd> <code>true</code> if the objects are the same;
 <code>false</code> otherwise.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Calendar.html#equals(java.lang.Object)">equals</a> in class <a href="java.util.Calendar.html#_top_">Calendar</a>
  </dl></dd>
</dl>
<a name="before(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="before"><b>before</b></a>
<pre>
 public boolean before(<a href="java.lang.Object.html#_top_">Object</a> when)
</pre>
<dl>
  <dd> Compares the time field records.
 Equivalent to comparing result of conversion to UTC.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> when - the Calendar to be compared with this Calendar.
    <dt> <b>Returns:</b>
    <dd> true if the current time of this Calendar is before
 the time of Calendar when; false otherwise.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Calendar.html#before(java.lang.Object)">before</a> in class <a href="java.util.Calendar.html#_top_">Calendar</a>
  </dl></dd>
</dl>
<a name="after(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="after"><b>after</b></a>
<pre>
 public boolean after(<a href="java.lang.Object.html#_top_">Object</a> when)
</pre>
<dl>
  <dd> Compares the time field records.
 Equivalent to comparing result of conversion to UTC.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> when - the Calendar to be compared with this Calendar.
    <dt> <b>Returns:</b>
    <dd> true if the current time of this Calendar is after
 the time of Calendar when; false otherwise.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Calendar.html#after(java.lang.Object)">after</a> in class <a href="java.util.Calendar.html#_top_">Calendar</a>
  </dl></dd>
</dl>
<a name="setGregorianChange(java.util.Date)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setGregorianChange"><b>setGregorianChange</b></a>
<pre>
 public void setGregorianChange(<a href="java.util.Date.html#_top_">Date</a> date)
</pre>
<dl>
  <dd> Sets the GregorianCalendar change date. 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>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> date - the given Gregorian cutover date.
  </dl></dd>
</dl>
<a name="getGregorianChange()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getGregorianChange"><b>getGregorianChange</b></a>
<pre>
 public final <a href="java.util.Date.html#_top_">Date</a> getGregorianChange()
</pre>
<dl>
  <dd> Gets the Gregorian Calendar change date.  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>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the Gregorian cutover time for this calendar.
  </dl></dd>
</dl>
<a name="isLeapYear(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isLeapYear"><b>isLeapYear</b></a>
<pre>
 public boolean isLeapYear(int year)
</pre>
<dl>
  <dd> Determines if the given year is a leap year. Returns true if the
 given year is a leap year.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> year - the given year.
    <dt> <b>Returns:</b>
    <dd> true if the given year is a leap year; false otherwise.
  </dl></dd>
</dl>
<a name="computeFields()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="computeFields"><b>computeFields</b></a>
<pre>
 protected void computeFields()
</pre>
<dl>
  <dd> Overrides Calendar
 Converts UTC as milliseconds to time field values.
 The time is <em>not</em>
 recomputed first; to recompute the time, then the fields, call the
 <code>complete</code> method.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Calendar.html#computeFields()">computeFields</a> in class <a href="java.util.Calendar.html#_top_">Calendar</a>
    <dt> <b>See Also:</b>
    <dd> <a href="java.util.Calendar.html#complete">complete</a>
  </dl></dd>
</dl>
<a name="computeTime()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="computeTime"><b>computeTime</b></a>
<pre>
 protected void computeTime()
</pre>
<dl>
  <dd> Overrides Calendar
 Converts time field values to UTC as milliseconds.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if any fields are invalid.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Calendar.html#computeTime()">computeTime</a> in class <a href="java.util.Calendar.html#_top_">Calendar</a>
  </dl></dd>
</dl>
<a name="hashCode()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="hashCode"><b>hashCode</b></a>
<pre>
 public synchronized int hashCode()
</pre>
<dl>
  <dd> Override hashCode.
 Generates the hash code for the GregorianCalendar object
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#hashCode()">hashCode</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<a name="add(int, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="add"><b>add</b></a>
<pre>
 public void add(int field,
                 int amount)
</pre>
<dl>
  <dd> Overrides Calendar
 Date Arithmetic function.
 Adds the specified (signed) amount of time to the given time field,
 based on the calendar's rules.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> field - the time field.
    <dd> amount - the amount of date or time to be added to the field.
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if an unknown field is given.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Calendar.html#add(int, int)">add</a> in class <a href="java.util.Calendar.html#_top_">Calendar</a>
  </dl></dd>
</dl>
<a name="roll(int, boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="roll"><b>roll</b></a>
<pre>
 public void roll(int field,
                  boolean up)
</pre>
<dl>
  <dd> Overrides Calendar
 Time Field Rolling function.
 Rolls (up/down) a single unit of time on the given time field.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> field - the time field.
    <dd> up - Indicates if rolling up or rolling down the field value.
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if an unknown field value is given.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Calendar.html#roll(int, boolean)">roll</a> in class <a href="java.util.Calendar.html#_top_">Calendar</a>
  </dl></dd>
</dl>
<a name="getMinimum(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getMinimum"><b>getMinimum</b></a>
<pre>
 public int getMinimum(int field)
</pre>
<dl>
  <dd> Returns minimum value for the given field.
 e.g. for Gregorian DAY_OF_MONTH, 1
 Please see Calendar.getMinimum for descriptions on parameters and
 the return value.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Calendar.html#getMinimum(int)">getMinimum</a> in class <a href="java.util.Calendar.html#_top_">Calendar</a>
  </dl></dd>
</dl>
<a name="getMaximum(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getMaximum"><b>getMaximum</b></a>
<pre>
 public int getMaximum(int field)
</pre>
<dl>
  <dd> Returns maximum value for the given field.
 e.g. for Gregorian DAY_OF_MONTH, 31
 Please see Calendar.getMaximum for descriptions on parameters and
 the return value.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Calendar.html#getMaximum(int)">getMaximum</a> in class <a href="java.util.Calendar.html#_top_">Calendar</a>
  </dl></dd>
</dl>
<a name="getGreatestMinimum(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getGreatestMinimum"><b>getGreatestMinimum</b></a>
<pre>
 public int getGreatestMinimum(int field)
</pre>
<dl>
  <dd> Returns highest minimum value for the given field if varies.
 Otherwise same as getMinimum(). For Gregorian, no difference.
 Please see Calendar.getGreatestMinimum for descriptions on parameters
 and the return value.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Calendar.html#getGreatestMinimum(int)">getGreatestMinimum</a> in class <a href="java.util.Calendar.html#_top_">Calendar</a>
  </dl></dd>
</dl>
<a name="getLeastMaximum(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getLeastMaximum"><b>getLeastMaximum</b></a>
<pre>
 public int getLeastMaximum(int field)
</pre>
<dl>
  <dd> Returns lowest maximum value for the given field if varies.
 Otherwise same as getMaximum(). For Gregorian DAY_OF_MONTH, 28
 Please see Calendar.getLeastMaximum for descriptions on parameters and
 the return value.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Calendar.html#getLeastMaximum(int)">getLeastMaximum</a> in class <a href="java.util.Calendar.html#_top_">Calendar</a>
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.util.html">This Package</a>  <a href="java.util.EventObject.html#_top_">Previous</a>  <a href="java.util.Hashtable.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
