public class LocalGregorianCalendar extends BaseCalendar
| Modifier and Type | Class and Description |
|---|---|
static class |
LocalGregorianCalendar.Date |
| Modifier and Type | Method and Description |
|---|---|
LocalGregorianCalendar.Date |
getCalendarDate() |
LocalGregorianCalendar.Date |
getCalendarDate(long millis)
Calculates calendar fields from the specified number of
milliseconds since the Epoch, January 1, 1970 00:00:00 UTC
(Gregorian).
|
LocalGregorianCalendar.Date |
getCalendarDate(long millis,
CalendarDate date) |
LocalGregorianCalendar.Date |
getCalendarDate(long millis,
java.util.TimeZone zone) |
void |
getCalendarDateFromFixedDate(CalendarDate date,
long fixedDate)
Calculates calendar fields and store them in the specified
CalendarDate. |
java.lang.String |
getName()
Returns the name of this calendar system.
|
boolean |
isLeapYear(Era era,
int year) |
boolean |
isLeapYear(int gregorianYear)
Returns whether the specified Gregorian year is a leap year.
|
LocalGregorianCalendar.Date |
newCalendarDate()
Constructs a
CalendarDate that is specific to this
calendar system. |
LocalGregorianCalendar.Date |
newCalendarDate(java.util.TimeZone zone) |
boolean |
normalize(CalendarDate date)
Normalizes calendar fields in the specified
date. |
boolean |
validate(CalendarDate date)
Checks whether the calendar fields specified by
date
represents a valid date and time in this calendar system. |
getDayOfWeek, getDayOfWeekFromFixedDate, getDayOfYear, getFixedDate, getFixedDate, getMonthLength, getYearFromFixedDate, getYearLength, getYearLengthInMonths, isLeapYeargetDayOfWeekDateOnOrBefore, getEra, getEras, getNthDayOfWeek, getTime, getTimeOfDay, getTimeOfDayValue, getWeekLength, setEra, setEras, setTimeOfDay, validateTimeforName, getGregorianCalendarpublic java.lang.String getName()
CalendarSystemgetName in class CalendarSystempublic LocalGregorianCalendar.Date getCalendarDate()
getCalendarDate in class AbstractCalendarpublic LocalGregorianCalendar.Date getCalendarDate(long millis)
CalendarSystemgetCalendarDate in class AbstractCalendarmillis - the offset value in milliseconds from January 1,
1970 00:00:00 UTC (Gregorian).CalendarDate instance that contains the
calculated calendar field values.public LocalGregorianCalendar.Date getCalendarDate(long millis, java.util.TimeZone zone)
getCalendarDate in class AbstractCalendarpublic LocalGregorianCalendar.Date getCalendarDate(long millis, CalendarDate date)
getCalendarDate in class AbstractCalendarpublic LocalGregorianCalendar.Date newCalendarDate()
CalendarSystemCalendarDate that is specific to this
calendar system. All calendar fields have their initial
values. The default time zone is
set to the instance.newCalendarDate in class CalendarSystemCalendarDate instance that contains the initial
calendar field values.public LocalGregorianCalendar.Date newCalendarDate(java.util.TimeZone zone)
newCalendarDate in class CalendarSystempublic boolean validate(CalendarDate date)
CalendarSystemdate
represents a valid date and time in this calendar system. If the
given date is valid, date is marked as normalized.validate in class BaseCalendardate - the CalendarDate to be validatedtrue if all the calendar fields are consistent,
otherwise, false is returned.public boolean normalize(CalendarDate date)
CalendarSystemdate. Also all undefined fields are set to correct values. The actual
normalization process is calendar system dependent.normalize in class BaseCalendardate - the calendar date to be validatedtrue if all fields have been normalized;
false otherwise.public boolean isLeapYear(int gregorianYear)
isLeapYear(Era, int)public boolean isLeapYear(Era era, int year)
public void getCalendarDateFromFixedDate(CalendarDate date, long fixedDate)
BaseCalendarCalendarDate.getCalendarDateFromFixedDate in class BaseCalendardate - a CalendarDate to stored the
calculated calendar fields.fixedDate - a fixed date to calculate calendar fieldsAbstractCalendar.html#fixed_date