public class JulianCalendar extends BaseCalendar
| Modifier and Type | Method and Description |
|---|---|
com.tencent.kona.sun.util.calendar.JulianCalendar.Date |
getCalendarDate() |
com.tencent.kona.sun.util.calendar.JulianCalendar.Date |
getCalendarDate(long millis)
Calculates calendar fields from the specified number of
milliseconds since the Epoch, January 1, 1970 00:00:00 UTC
(Gregorian).
|
com.tencent.kona.sun.util.calendar.JulianCalendar.Date |
getCalendarDate(long millis,
CalendarDate date) |
com.tencent.kona.sun.util.calendar.JulianCalendar.Date |
getCalendarDate(long millis,
java.util.TimeZone zone) |
void |
getCalendarDateFromFixedDate(CalendarDate date,
long fixedDate)
Calculates calendar fields and store them in the specified
CalendarDate. |
int |
getDayOfWeek(CalendarDate date)
Returns the day of week of the given Gregorian date.
|
long |
getFixedDate(int jyear,
int month,
int dayOfMonth,
BaseCalendar.Date cache) |
java.lang.String |
getName()
Returns the name of this calendar system.
|
int |
getYearFromFixedDate(long fixedDate)
Returns the normalized Julian year number of the given fixed date.
|
com.tencent.kona.sun.util.calendar.JulianCalendar.Date |
newCalendarDate()
Constructs a
CalendarDate that is specific to this
calendar system. |
com.tencent.kona.sun.util.calendar.JulianCalendar.Date |
newCalendarDate(java.util.TimeZone zone) |
getDayOfWeekFromFixedDate, getDayOfYear, getFixedDate, getMonthLength, getYearLength, getYearLengthInMonths, isLeapYear, normalize, validategetDayOfWeekDateOnOrBefore, getEra, getEras, getNthDayOfWeek, getTime, getTimeOfDay, getTimeOfDayValue, getWeekLength, setEra, setEras, setTimeOfDay, validateTimeforName, getGregorianCalendarpublic java.lang.String getName()
CalendarSystemgetName in class CalendarSystempublic com.tencent.kona.sun.util.calendar.JulianCalendar.Date getCalendarDate()
getCalendarDate in class AbstractCalendarpublic com.tencent.kona.sun.util.calendar.JulianCalendar.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 com.tencent.kona.sun.util.calendar.JulianCalendar.Date getCalendarDate(long millis,
CalendarDate date)
getCalendarDate in class AbstractCalendarpublic com.tencent.kona.sun.util.calendar.JulianCalendar.Date getCalendarDate(long millis,
java.util.TimeZone zone)
getCalendarDate in class AbstractCalendarpublic com.tencent.kona.sun.util.calendar.JulianCalendar.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 com.tencent.kona.sun.util.calendar.JulianCalendar.Date newCalendarDate(java.util.TimeZone zone)
newCalendarDate in class CalendarSystempublic long getFixedDate(int jyear,
int month,
int dayOfMonth,
BaseCalendar.Date cache)
getFixedDate in class BaseCalendarjyear - normalized Julian yearpublic 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_datepublic int getYearFromFixedDate(long fixedDate)
getYearFromFixedDate in class BaseCalendarpublic int getDayOfWeek(CalendarDate date)
BaseCalendargetDayOfWeek in class BaseCalendar