public class DayCalendar
extends java.util.GregorianCalendar
| Modifier and Type | Field and Description |
|---|---|
static long |
EPOCH_UNIX_ERA_DAY
Value to add to the day number returned by this calendar to find the Julian Day number.
|
protected static long |
MILLISECS_PER_DAY
Number of leap seconds per day expect on
1. days when a leap second has been inserted, e.g. 1999 JAN 1.
2.
|
static long |
MILLISECS_PER_HOUR
Number of milliseconds per hour, except when a leap second is inserted.
|
static long |
MILLISECS_PER_MINUTE
All minutes have this many milliseconds except the last minute of the day on a day defined with
a leap second.
|
ALL_STYLES, AM, AM_PM, APRIL, areFieldsSet, AUGUST, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, DECEMBER, DST_OFFSET, ERA, FEBRUARY, FIELD_COUNT, fields, FRIDAY, HOUR, HOUR_OF_DAY, isSet, isTimeSet, JANUARY, JULY, JUNE, LONG, LONG_FORMAT, LONG_STANDALONE, MARCH, MAY, MILLISECOND, MINUTE, MONDAY, MONTH, NARROW_FORMAT, NARROW_STANDALONE, NOVEMBER, OCTOBER, PM, SATURDAY, SECOND, SEPTEMBER, SHORT, SHORT_FORMAT, SHORT_STANDALONE, SUNDAY, THURSDAY, time, TUESDAY, UNDECIMBER, WEDNESDAY, WEEK_OF_MONTH, WEEK_OF_YEAR, YEAR, ZONE_OFFSET| Constructor and Description |
|---|
DayCalendar() |
DayCalendar(int y,
int m,
int d) |
DayCalendar(int y,
int m,
int d,
int h,
int min,
int s) |
DayCalendar(long millisecondTime) |
| Modifier and Type | Method and Description |
|---|---|
long |
diffDayPeriods(java.util.Calendar end)
find the number of days from this date to the given end date.
|
long |
getJulianDay() |
long |
getUnixDay() |
add, clone, computeFields, computeTime, equals, from, getActualMaximum, getActualMinimum, getCalendarType, getGreatestMinimum, getGregorianChange, getLeastMaximum, getMaximum, getMinimum, getTimeZone, getWeeksInWeekYear, getWeekYear, hashCode, isLeapYear, isWeekDateSupported, roll, roll, setGregorianChange, setTimeZone, setWeekDate, toZonedDateTimeafter, before, clear, clear, compareTo, complete, get, getAvailableCalendarTypes, getAvailableLocales, getDisplayName, getDisplayNames, getFirstDayOfWeek, getInstance, getInstance, getInstance, getInstance, getMinimalDaysInFirstWeek, getTime, getTimeInMillis, internalGet, isLenient, isSet, set, set, set, set, setFirstDayOfWeek, setLenient, setMinimalDaysInFirstWeek, setTime, setTimeInMillis, toInstant, toStringpublic static final long MILLISECS_PER_MINUTE
public static final long MILLISECS_PER_HOUR
protected static final long MILLISECS_PER_DAY
public static final long EPOCH_UNIX_ERA_DAY
public DayCalendar()
GregorianCalendar.GregorianCalendar()public DayCalendar(long millisecondTime)
millisecondTime - - time as a binary Unix/Java time value.GregorianCalendarpublic DayCalendar(int y,
int m,
int d)
GregorianCalendar.GregorianCalendar(int, int, int)public DayCalendar(int y,
int m,
int d,
int h,
int min,
int s)
GregorianCalendar.GregorianCalendar(int, int, int, int, int, int)public long getUnixDay()
public long getJulianDay()
public long diffDayPeriods(java.util.Calendar end)
end - - any Calendar representing the moment of time at the end of the interval for calculation.