Java in a Nutshell Online Quick Reference for Java 1.1

CLASS java.util.GregorianCalendar

Availability: JDK 1.1

public class GregorianCalendar extends Calendar {
   // Public Constructors
      public GregorianCalendar();
      public GregorianCalendar(TimeZone zone);
      public GregorianCalendar(Locale aLocale);
      public GregorianCalendar(TimeZone zone, Locale aLocale);
      public GregorianCalendar(int year, int month, int date);
      public GregorianCalendar(int year, int month, int date, int hour, int minute);
      public GregorianCalendar(int year, int month, int date, int hour, int minute, int second);
   // Constants
      public static final int AD;
      public static final int BC;
   // Public Instance Methods
      public void add(int field, int amount);  // Defines Calendar.add()
      public boolean after(Object when);  // Defines Calendar.after()
      public boolean before(Object when);  // Defines Calendar.before()
      public Object clone();  // Overrides Calendar.clone()
      public boolean equals(Object obj);  // Defines Calendar.equals()
      public int getGreatestMinimum(int field);  // Defines Calendar.getGreatestMinimum()
      public final Date getGregorianChange();
      public int getLeastMaximum(int field);  // Defines Calendar.getLeastMaximum()
      public int getMaximum(int field);  // Defines Calendar.getMaximum()
      public int getMinimum(int field);  // Defines Calendar.getMinimum()
      public synchronized int hashCode();  // Overrides Object.hashCode()
      public boolean isLeapYear(int year);
      public void roll(int field, boolean up);  // Defines Calendar.roll()
      public void setGregorianChange(Date date);
   // Protected Instance Methods
      protected void computeFields();  // Defines Calendar.computeFields()
      protected void computeTime();  // Defines Calendar.computeTime()
}

Java in a Nutshell Online Quick Reference for Java 1.1
Created by David Flanagan. Copyright © 1997 by O'Reilly & Associates.