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.
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. |
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
Calendar
protected Calendar()
- This private array is used to communicate with the native code
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.