Deprecated
Utility class for old date/time API no longer required
| Modifier and Type | Field and Description |
|---|---|
| public static final int | DAYS_PER_WEEK
Number of days in one week. |
| private static final String | |
| private static final String | |
| private static final String | |
| public static final int | MAX_DAYS_PER_MONTH
Maximum number of days per month. |
| public static final int | MAX_DAYS_PER_YEAR
Maximum number of days per year. |
| public static final int | MAX_WEEKS_PER_YEAR
Maximum number of weeks per year. |
| public static final long | MILLIS_PER_DAY
Number of milliseconds in one day. |
| public static final long | MILLIS_PER_HOUR
Number of milliseconds in one hour. |
| public static final long | MILLIS_PER_MINUTE
Number of milliseconds in one minute. |
| public static final long | MILLIS_PER_SECOND
Number of milliseconds in one second. |
| public static final long | MILLIS_PER_WEEK
Number of milliseconds in one week. |
| public static final int | PRECISION_DAY
Constant indicating precision to the day. |
| public static final int | PRECISION_SECOND
Constant indicating precision to the second. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int | Returns: the absolute day of month for the specified offseta date instance representing a day of the month date, final int a day of month offset monthDay)Returns the absolute month day for the month specified by the supplied date. |
| public static int | Returns: the absolute week of the year for the specified offseta date instance representing a week of the year date, final int a week number offset weekNo)Returns the absolute week number for the year specified by the supplied date. |
| public static int | Returns: the absolute day of month for the specified offseta date instance representing a day of the year date, final int a day of year offset yearDay)Returns the absolute year day for the year specified by the supplied date. |
| public static Calendar | Returns: ajava.util.Calendara date instance date)
References Deprecated
Date is deprecated or references (maybe indirectly) at least one deprecated element.
Returns an instance of |
| public static long | Returns: the current time in millisec.Returns the |
| public static Date | Returns: an instance ofnet.fortuna.ical4j.model.Datea seed Java date instance date, final Value the type of date instance type)
References Deprecated
Date is deprecated or references (maybe indirectly) at least one deprecated element.
Returns a new date instance of the specified type. |
| public static long | Returns: a round time valuethe time value to round time, final int the rounding precision precision)
Deprecated
It is not all that useful to perform rounding without specifying an
explicit timezone.
|
| public static long |
| DAYS_PER_WEEK | back to summary |
|---|---|
| public static final int DAYS_PER_WEEK Number of days in one week. | |
| INVALID_MONTH_DAY_MESSAGE | back to summary |
|---|---|
| private static final String INVALID_MONTH_DAY_MESSAGE | |
| INVALID_WEEK_MESSAGE | back to summary |
|---|---|
| private static final String INVALID_WEEK_MESSAGE | |
| INVALID_YEAR_DAY_MESSAGE | back to summary |
|---|---|
| private static final String INVALID_YEAR_DAY_MESSAGE | |
| MAX_DAYS_PER_MONTH | back to summary |
|---|---|
| public static final int MAX_DAYS_PER_MONTH Maximum number of days per month. | |
| MAX_DAYS_PER_YEAR | back to summary |
|---|---|
| public static final int MAX_DAYS_PER_YEAR Maximum number of days per year. | |
| MAX_WEEKS_PER_YEAR | back to summary |
|---|---|
| public static final int MAX_WEEKS_PER_YEAR Maximum number of weeks per year. | |
| MILLIS_PER_DAY | back to summary |
|---|---|
| public static final long MILLIS_PER_DAY Number of milliseconds in one day. | |
| MILLIS_PER_HOUR | back to summary |
|---|---|
| public static final long MILLIS_PER_HOUR Number of milliseconds in one hour. | |
| MILLIS_PER_MINUTE | back to summary |
|---|---|
| public static final long MILLIS_PER_MINUTE Number of milliseconds in one minute. | |
| MILLIS_PER_SECOND | back to summary |
|---|---|
| public static final long MILLIS_PER_SECOND Number of milliseconds in one second. | |
| MILLIS_PER_WEEK | back to summary |
|---|---|
| public static final long MILLIS_PER_WEEK Number of milliseconds in one week. | |
| PRECISION_DAY | back to summary |
|---|---|
| public static final int PRECISION_DAY Constant indicating precision to the day. | |
| PRECISION_SECOND | back to summary |
|---|---|
| public static final int PRECISION_SECOND Constant indicating precision to the second. | |
| Dates | back to summary |
|---|---|
| private Dates() Constructor made private to prevent instantiation. | |
| getAbsMonthDay | back to summary |
|---|---|
| public static int getAbsMonthDay(final Date date, final int monthDay) Returns the absolute month day for the month specified by the
supplied date. Note that a value of zero (0) is invalid for the
monthDay parameter and an
| |
| getAbsWeekNo | back to summary |
|---|---|
| public static int getAbsWeekNo(final Date date, final int weekNo) Returns the absolute week number for the year specified by the
supplied date. Note that a value of zero (0) is invalid for the
weekNo parameter and an
| |
| getAbsYearDay | back to summary |
|---|---|
| public static int getAbsYearDay(final Date date, final int yearDay) Returns the absolute year day for the year specified by the
supplied date. Note that a value of zero (0) is invalid for the
yearDay parameter and an
| |
| getCalendarInstance | back to summary |
|---|---|
| public static Calendar getCalendarInstance(final Date date)
References Deprecated
See corresponding docs for further information. Returns an instance of | |
| getCurrentTimeRounded | back to summary |
|---|---|
| public static long getCurrentTimeRounded() Returns the By doing a rough rounding here, we avoid an expensive java.util.Calendar based rounding later on.
| |
| getInstance | back to summary |
|---|---|
| public static Date getInstance(final Date date, final Value type)
References Deprecated
See corresponding docs for further information. Returns a new date instance of the specified type. If no type is specified a DateTime instance is returned. | |
| round | back to summary |
|---|---|
| public static long round(final long time, final int precision)
Deprecated It is not all that useful to perform rounding without specifying an explicit timezone.
| |
| round | back to summary |
|---|---|
| public static long round(final long time, final int precision, final TimeZone tz) Rounds a time value to remove any precision smaller than specified.
| |