Name
java.util.Calendar
Synopsis
This abstract class is a scaled-down version
of the J2SE Calendar
class. Subclasses can use the
functionality provided to calculate and compare dates.
Calendar
defines a number of constants for
time-related items such as the days of the week and the months of the
year. Other constants, such as DAY_OF_MONTH
and
HOUR_OF_DAY
, are used with the various
get
and set
methods to indicate
which fields are desired. The getInstance()
methods are used to create an instance of the
Calendar
; note that the constructor is not public.
public abstract classCalendar
{ // constants public static final intYEAR
; public static final intMONTH
; public static final intDATE
; public static final intDAY_OF_MONTH
; public static final intDAY_OF_WEEK
; public static final intAM_PM
; public static final intHOUR
; public static final intHOUR_OF_DAY
; public static final intMINUTE
; public static final intSECOND
; public static final intMILLISECOND
; public static final intSUNDAY
; public static final intMONDAY
; public static final intTUESDAY
; public static final intWEDNESDAY
; public static final intTHURSDAY
; public static final intFRIDAY
; public static final intSATURDAY
; public static final intJANUARY
; public static final intFEBRUARY
; public static final intMARCH
; public static final intAPRIL
; public static final intMAY
; public static final intJUNE
; public static final intJULY
; public static final intAUGUST
; public static final intSEPTEMBER
; public static final int ...
Get Wireless Java now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.