Java in a Nutshell Online Quick Reference for Java 1.1

CLASS java.util.Calendar

Availability: JDK 1.1

public abstract class Calendar extends Object implements Serializable, Cloneable {
   // Protected Constructors
      protected Calendar();
      protected Calendar(TimeZone zone, Locale aLocale);
   // Constants
      public static final int AM;
      public static final int AM_PM;
      public static final int APRIL;
      public static final int AUGUST;
      public static final int DATE;
      public static final int DAY_OF_MONTH;
      public static final int DAY_OF_WEEK;
      public static final int DAY_OF_WEEK_IN_MONTH;
      public static final int DAY_OF_YEAR;
      public static final int DECEMBER;
      public static final int DST_OFFSET;
      public static final int ERA;
      public static final int FEBRUARY;
      public static final int FIELD_COUNT;
      public static final int FRIDAY;
      public static final int HOUR;
      public static final int HOUR_OF_DAY;
      public static final int JANUARY;
      public static final int JULY;
      public static final int JUNE;
      public static final int MARCH;
      public static final int MAY;
      public static final int MILLISECOND;
      public static final int MINUTE;
      public static final int MONDAY;
      public static final int MONTH;
      public static final int NOVEMBER;
      public static final int OCTOBER;
      public static final int PM;
      public static final int SATURDAY;
      public static final int SECOND;
      public static final int SEPTEMBER;
      public static final int SUNDAY;
      public static final int THURSDAY;
      public static final int TUESDAY;
      public static final int UNDECIMBER;
      public static final int WEDNESDAY;
      public static final int WEEK_OF_MONTH;
      public static final int WEEK_OF_YEAR;
      public static final int YEAR;
      public static final int ZONE_OFFSET;
   // Protected Instance Variables
      protected boolean areFieldsSet;
      protected int[] fields;
      protected boolean[] isSet;
      protected boolean isTimeSet;
      protected long time;
   // Class Methods
      public static synchronized Locale[] getAvailableLocales();
      public static synchronized Calendar getInstance();
      public static synchronized Calendar getInstance(TimeZone zone);
      public static synchronized Calendar getInstance(Locale aLocale);
      public static synchronized Calendar getInstance(TimeZone zone, Locale aLocale);
   // Public Instance Methods
      public abstract void add(int field, int amount);
      public abstract boolean after(Object when);
      public abstract boolean before(Object when);
      public final void clear();
      public final void clear(int field);
      public Object clone();  // Overrides Object.clone()
      public abstract boolean equals(Object when);  // Overrides Object.equals()
      public final int get(int field);
      public int getFirstDayOfWeek();
      public abstract int getGreatestMinimum(int field);
      public abstract int getLeastMaximum(int field);
      public abstract int getMaximum(int field);
      public int getMinimalDaysInFirstWeek();
      public abstract int getMinimum(int field);
      public final Date getTime();
      public TimeZone getTimeZone();
      public boolean isLenient();
      public final boolean isSet(int field);
      public abstract void roll(int field, boolean up);
      public final void set(int field, int value);
      public final void set(int year, int month, int date);
      public final void set(int year, int month, int date, int hour, int minute);
      public final void set(int year, int month, int date, int hour, int minute, int second);
      public void setFirstDayOfWeek(int value);
      public void setLenient(boolean lenient);
      public void setMinimalDaysInFirstWeek(int value);
      public final void setTime(Date date);
      public void setTimeZone(TimeZone value);
   // Protected Instance Methods
      protected void complete();
      protected abstract void computeFields();
      protected abstract void computeTime();
      protected long getTimeInMillis();
      protected final int internalGet(int field);
      protected void setTimeInMillis(long millis);
}

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