java.lang.Object | ||||
↳ | sun.util.calendar.CalendarSystem | |||
↳ | sun.util.calendar.AbstractCalendar | |||
↳ | sun.util.calendar.BaseCalendar | |||
↳ | sun.util.calendar.LocalGregorianCalendar |
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
LocalGregorianCalendar.Date |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Calculates calendar fields from the specified number of
milliseconds since the Epoch, January 1, 1970 00:00:00 UTC
(Gregorian).
| |||||||||||
Calculates calendar fields and store them in the specified
CalendarDate . | |||||||||||
Returns the name of this calendar system.
| |||||||||||
Returns whether the specified Gregorian year is a leap year.
| |||||||||||
Constructs a
CalendarDate that is specific to this
calendar system. | |||||||||||
Normalizes calendar fields in the specified
date . | |||||||||||
Checks whether the calendar fields specified by
date
represents a valid date and time in this calendar system. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Calculates calendar fields from the specified number of milliseconds since the Epoch, January 1, 1970 00:00:00 UTC (Gregorian). This method doesn't check overflow or underflow when adjusting the millisecond value (representing UTC) with the time zone offsets (i.e., the GMT offset and amount of daylight saving).
millis | the offset value in milliseconds from January 1, 1970 00:00:00 UTC (Gregorian). |
---|
CalendarDate
instance that contains the
calculated calendar field values.
Calculates calendar fields and store them in the specified
CalendarDate
.
date | a CalendarDate to stored the
calculated calendar fields. |
---|---|
fixedDate | a fixed date to calculate calendar fields |
Returns whether the specified Gregorian year is a leap year.
Constructs a CalendarDate
that is specific to this
calendar system. All calendar fields have their initial
values. The default time zone
is
set to the instance.
CalendarDate
instance that contains the initial
calendar field values.
Normalizes calendar fields in the specified
date
. Also all undefined
fields are set to correct values. The actual
normalization process is calendar system dependent.
date | the calendar date to be validated |
---|
true
if all fields have been normalized;
false
otherwise.Checks whether the calendar fields specified by date
represents a valid date and time in this calendar system. If the
given date is valid, date
is marked as normalized.
date | the CalendarDate to be validated |
---|
true
if all the calendar fields are consistent,
otherwise, false
is returned.