java.util
Class Calendar

java.lang.Object
  |
  +--java.util.Calendar

public class Calendar
extends Object

This is a very much slimmed down version of the J2SE Calendar class for J2ME. It is a pure subset of the original class and all the field offset and returned values are the same so programs that use this class should also be able to run unchanged on J2SE.


Field Summary
static int APRIL
           
static int AUGUST
           
static int DAY_OF_MONTH
           
static int DECEMBER
           
static int FEBRUARY
           
static int FRIDAY
           
static int HOUR
           
static int JANUARY
           
static int JULY
           
static int JUNE
           
static int MARCH
           
static int MAY
           
static int MILLISECOND
           
static int MINUTE
           
static int MONDAY
           
static int MONTH
           
static int NOVEMBER
           
static int OCTOBER
           
static int SATURDAY
           
static int SECOND
           
static int SEPTEMBER
           
static int SUNDAY
           
static int THURSDAY
           
static int TUESDAY
           
static int WEDNESDAY
           
static int YEAR
           
 
Constructor Summary
protected Calendar()
          This private array is used to communicate with the native code
 
Method Summary
 int get(int field)
          Gets the value for a given time field.
static Calendar getInstance()
          Gets a calendar using the default time zone and locale.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

YEAR

public static final int YEAR

MONTH

public static final int MONTH

DAY_OF_MONTH

public static final int DAY_OF_MONTH

HOUR

public static final int HOUR

MINUTE

public static final int MINUTE

SECOND

public static final int SECOND

MILLISECOND

public static final int MILLISECOND

SUNDAY

public static final int SUNDAY

MONDAY

public static final int MONDAY

TUESDAY

public static final int TUESDAY

WEDNESDAY

public static final int WEDNESDAY

THURSDAY

public static final int THURSDAY

FRIDAY

public static final int FRIDAY

SATURDAY

public static final int SATURDAY

JANUARY

public static final int JANUARY

FEBRUARY

public static final int FEBRUARY

MARCH

public static final int MARCH

APRIL

public static final int APRIL

MAY

public static final int MAY

JUNE

public static final int JUNE

JULY

public static final int JULY

AUGUST

public static final int AUGUST

SEPTEMBER

public static final int SEPTEMBER

OCTOBER

public static final int OCTOBER

NOVEMBER

public static final int NOVEMBER

DECEMBER

public static final int DECEMBER
Constructor Detail

Calendar

protected Calendar()
This private array is used to communicate with the native code
Method Detail

getInstance

public static Calendar getInstance()
Gets a calendar using the default time zone and locale.
Returns:
a Calendar.

get

public final int get(int field)
Gets the value for a given time field.
Parameters:
field - the given time field.
Returns:
the value for the given time field.