Java Reference
In-Depth Information
MILLISECOND 0999
The GregorianCalendar class supports several constructors:
public GregorianCalendar()
Creates a GregorianCalendar object that represents the current
time in the default time zone with the default locale.
public GregorianCalendar(int year, int month, int date, int hrs, int
min, int sec)
Creates a GregorianCalendar object that represents the given
date in the default time zone with the default locale.
public GregorianCalendar(int year, int month, int date, int hrs, int
min)
Equivalent to GregorianCalendar(year,month, date,hrs, min,0)
that is, the beginning of the specified minute.
public GregorianCalendar(int year, int month, int date)
Equivalent to GregorianCalendar(year,month, date,0, 0,0) that
is, midnight on the given date (which is considered to be the
start of the day).
public GregorianCalendar(Locale locale)
Creates a GregorianCalendar object that represents the current
time in the default time zone with the given locale .
public GregorianCalendar(TimeZone timeZone)
 
Search WWH ::




Custom Search