| Package | Description |
|---|---|
| sun.util.calendar |
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseCalendar.Date |
static class |
LocalGregorianCalendar.Date |
| Modifier and Type | Method and Description |
|---|---|
CalendarDate |
CalendarDate.addDate(int year,
int month,
int dayOfMonth) |
CalendarDate |
CalendarDate.addDayOfMonth(int n) |
CalendarDate |
CalendarDate.addHours(int n) |
CalendarDate |
CalendarDate.addMillis(int n) |
CalendarDate |
CalendarDate.addMinutes(int n) |
CalendarDate |
CalendarDate.addMonth(int n) |
CalendarDate |
CalendarDate.addSeconds(int n) |
CalendarDate |
CalendarDate.addTimeOfDay(int hours,
int minutes,
int seconds,
int millis) |
CalendarDate |
CalendarDate.addYear(int n) |
abstract CalendarDate |
CalendarSystem.getCalendarDate() |
CalendarDate |
AbstractCalendar.getCalendarDate() |
abstract CalendarDate |
CalendarSystem.getCalendarDate(long millis)
Calculates calendar fields from the specified number of
milliseconds since the Epoch, January 1, 1970 00:00:00 UTC
(Gregorian).
|
CalendarDate |
AbstractCalendar.getCalendarDate(long millis) |
abstract CalendarDate |
CalendarSystem.getCalendarDate(long millis,
CalendarDate date) |
CalendarDate |
AbstractCalendar.getCalendarDate(long millis,
CalendarDate date) |
abstract CalendarDate |
CalendarSystem.getCalendarDate(long millis,
java.util.TimeZone zone) |
CalendarDate |
AbstractCalendar.getCalendarDate(long millis,
java.util.TimeZone zone) |
abstract CalendarDate |
CalendarSystem.getNthDayOfWeek(int nth,
int dayOfWeek,
CalendarDate date)
Returns a
CalendarDate of the n-th day of week
which is on, after or before the specified date. |
CalendarDate |
AbstractCalendar.getNthDayOfWeek(int nth,
int dayOfWeek,
CalendarDate date) |
CalendarDate |
Era.getSinceDate() |
abstract CalendarDate |
CalendarSystem.newCalendarDate()
Constructs a
CalendarDate that is specific to this
calendar system. |
abstract CalendarDate |
CalendarSystem.newCalendarDate(java.util.TimeZone zone) |
CalendarDate |
CalendarDate.setDate(int year,
int month,
int dayOfMonth) |
CalendarDate |
CalendarDate.setDayOfMonth(int date) |
CalendarDate |
CalendarDate.setEra(Era era)
Sets the era of the date to the specified era.
|
CalendarDate |
CalendarDate.setHours(int hours) |
CalendarDate |
CalendarDate.setMillis(int millis) |
CalendarDate |
CalendarDate.setMinutes(int minutes) |
CalendarDate |
CalendarDate.setMonth(int month) |
CalendarDate |
CalendarDate.setSeconds(int seconds) |
abstract CalendarDate |
CalendarSystem.setTimeOfDay(CalendarDate date,
int timeOfDay) |
CalendarDate |
AbstractCalendar.setTimeOfDay(CalendarDate cdate,
int fraction) |
CalendarDate |
CalendarDate.setTimeOfDay(int hours,
int minutes,
int seconds,
int millis) |
CalendarDate |
CalendarDate.setYear(int year) |
CalendarDate |
CalendarDate.setZone(java.util.TimeZone zoneinfo) |
| Modifier and Type | Method and Description |
|---|---|
LocalGregorianCalendar.Date |
LocalGregorianCalendar.getCalendarDate(long millis,
CalendarDate date) |
sun.util.calendar.JulianCalendar.Date |
JulianCalendar.getCalendarDate(long millis,
CalendarDate date) |
sun.util.calendar.Gregorian.Date |
Gregorian.getCalendarDate(long millis,
CalendarDate date) |
abstract CalendarDate |
CalendarSystem.getCalendarDate(long millis,
CalendarDate date) |
CalendarDate |
AbstractCalendar.getCalendarDate(long millis,
CalendarDate date) |
void |
LocalGregorianCalendar.getCalendarDateFromFixedDate(CalendarDate date,
long fixedDate) |
void |
JulianCalendar.getCalendarDateFromFixedDate(CalendarDate date,
long fixedDate) |
void |
BaseCalendar.getCalendarDateFromFixedDate(CalendarDate date,
long fixedDate)
Calculates calendar fields and store them in the specified
CalendarDate. |
protected abstract void |
AbstractCalendar.getCalendarDateFromFixedDate(CalendarDate date,
long fixedDate)
Calculates calendar fields from the specified fixed date.
|
int |
JulianCalendar.getDayOfWeek(CalendarDate date) |
int |
BaseCalendar.getDayOfWeek(CalendarDate date)
Returns the day of week of the given Gregorian date.
|
long |
BaseCalendar.getDayOfYear(CalendarDate date) |
long |
BaseCalendar.getFixedDate(CalendarDate date) |
protected abstract long |
AbstractCalendar.getFixedDate(CalendarDate date)
Returns the fixed date calculated with the specified calendar
date.
|
abstract int |
CalendarSystem.getMonthLength(CalendarDate date)
Returns the length in days of the month specified by the calendar
date.
|
int |
BaseCalendar.getMonthLength(CalendarDate date) |
abstract CalendarDate |
CalendarSystem.getNthDayOfWeek(int nth,
int dayOfWeek,
CalendarDate date)
Returns a
CalendarDate of the n-th day of week
which is on, after or before the specified date. |
CalendarDate |
AbstractCalendar.getNthDayOfWeek(int nth,
int dayOfWeek,
CalendarDate date) |
abstract long |
CalendarSystem.getTime(CalendarDate date)
Returns the number of milliseconds since the Epoch, January 1,
1970 00:00:00 UTC (Gregorian), represented by the specified
CalendarDate. |
long |
AbstractCalendar.getTime(CalendarDate date) |
protected long |
AbstractCalendar.getTimeOfDay(CalendarDate date) |
long |
AbstractCalendar.getTimeOfDayValue(CalendarDate date) |
abstract int |
CalendarSystem.getYearLength(CalendarDate date)
Returns the length in days of the specified year by
date. |
int |
BaseCalendar.getYearLength(CalendarDate date)
Returns 366 if the specified date is in a leap year, or 365
otherwise This method does not perform the normalization with
the specified
CalendarDate. |
abstract int |
CalendarSystem.getYearLengthInMonths(CalendarDate date)
Returns the number of months of the specified year.
|
int |
BaseCalendar.getYearLengthInMonths(CalendarDate date) |
protected boolean |
BaseCalendar.isLeapYear(CalendarDate date) |
protected abstract boolean |
AbstractCalendar.isLeapYear(CalendarDate date) |
boolean |
CalendarDate.isSameDate(CalendarDate date)
Returns whether the specified date is the same date of this
CalendarDate. |
boolean |
LocalGregorianCalendar.normalize(CalendarDate date) |
abstract boolean |
CalendarSystem.normalize(CalendarDate date)
Normalizes calendar fields in the specified
date. |
boolean |
BaseCalendar.normalize(CalendarDate date) |
abstract void |
CalendarSystem.setEra(CalendarDate date,
java.lang.String eraName) |
void |
AbstractCalendar.setEra(CalendarDate date,
java.lang.String eraName) |
abstract CalendarDate |
CalendarSystem.setTimeOfDay(CalendarDate date,
int timeOfDay) |
CalendarDate |
AbstractCalendar.setTimeOfDay(CalendarDate cdate,
int fraction) |
boolean |
LocalGregorianCalendar.validate(CalendarDate date) |
abstract boolean |
CalendarSystem.validate(CalendarDate date)
Checks whether the calendar fields specified by
date
represents a valid date and time in this calendar system. |
boolean |
BaseCalendar.validate(CalendarDate date) |
boolean |
AbstractCalendar.validateTime(CalendarDate date) |
Copyright © 2020. All Rights Reserved.