| Modifier and Type | Method and Description |
|---|---|
DateTime |
DateTime.changeTimeZone(java.util.TimeZone aFromTimeZone,
java.util.TimeZone aToTimeZone)
Return a DateTime corresponding to a change from one
TimeZone to another. |
static DateTime |
DateTime.forDateOnly(java.lang.Integer aYear,
java.lang.Integer aMonth,
java.lang.Integer aDay)
Factory method returns a DateTime having year-month-day only, with no time portion.
|
static DateTime |
DateTime.forInstant(long aMilliseconds,
java.util.TimeZone aTimeZone)
Constructor taking a millisecond value and a
TimeZone. |
static DateTime |
DateTime.forInstantNanos(long aNanoseconds,
java.util.TimeZone aTimeZone)
Constructor taking a nanosecond value and a
TimeZone. |
static DateTime |
DateTime.forTimeOnly(java.lang.Integer aHour,
java.lang.Integer aMinute,
java.lang.Integer aSecond,
java.lang.Integer aNanoseconds)
Factory method returns a DateTime having hour-minute-second-nanosecond only, with no date portion.
|
DateTime |
DateTime.getEndOfDay()
Return this DateTime with the time portion coerced to '23:59:59.999999999'.
|
DateTime |
DateTime.getEndOfMonth()
Return this DateTime with the time portion coerced to '23:59:59.999999999',
and the day coerced to the end of the month.
|
DateTime |
DateTime.getStartOfDay()
Return this DateTime with the time portion coerced to '00:00:00.000000000'.
|
DateTime |
DateTime.getStartOfMonth()
Return this DateTime with the time portion coerced to '00:00:00.000000000',
and the day coerced to 1.
|
DateTime |
DateTime.minus(java.lang.Integer aNumYears,
java.lang.Integer aNumMonths,
java.lang.Integer aNumDays,
java.lang.Integer aNumHours,
java.lang.Integer aNumMinutes,
java.lang.Integer aNumSeconds,
java.lang.Integer aNumNanoseconds,
DateTime.DayOverflow aDayOverflow)
Create a new DateTime by subtracting an interval to this one.
|
DateTime |
DateTime.minusDays(java.lang.Integer aNumDays)
Return a new DateTime by subtracting an integral number of days from this one.
|
static DateTime |
DateTime.now(java.util.TimeZone aTimeZone)
Return the current date-time.
|
DateTime |
DateTime.plus(java.lang.Integer aNumYears,
java.lang.Integer aNumMonths,
java.lang.Integer aNumDays,
java.lang.Integer aNumHours,
java.lang.Integer aNumMinutes,
java.lang.Integer aNumSeconds,
java.lang.Integer aNumNanoseconds,
DateTime.DayOverflow aDayOverflow)
Create a new DateTime by adding an interval to this one.
|
DateTime |
DateTime.plusDays(java.lang.Integer aNumDays)
Return a new DateTime by adding an integral number of days to this one.
|
static DateTime |
DateTime.today(java.util.TimeZone aTimeZone)
Return the current date.
|
DateTime |
DateTime.truncate(DateTime.Unit aPrecision)
Truncate this DateTime to the given precision.
|
| Modifier and Type | Method and Description |
|---|---|
int |
DateTime.compareTo(DateTime aThat)
Compare this object to another, for ordering purposes.
|
java.lang.Integer |
DateTime.getWeekIndex(DateTime aStartingFromDate)
Return The week index of this DateTime with respect to a given starting DateTime.
|
boolean |
DateTime.gt(DateTime aThat)
'Greater than' comparison.
|
boolean |
DateTime.gteq(DateTime aThat)
'Greater than or equal to' comparison.
|
boolean |
DateTime.isSameDayAs(DateTime aThat)
Return true only if this DateTime has the same year-month-day as the given parameter.
|
boolean |
DateTime.lt(DateTime aThat)
'Less than' comparison.
|
boolean |
DateTime.lteq(DateTime aThat)
'Less than or equal to' comparison.
|
int |
DateTime.numDaysFrom(DateTime aThat)
The whole number of days between this DateTime and the given parameter.
|
long |
DateTime.numSecondsFrom(DateTime aThat)
The number of seconds between this DateTime and the given argument.
|
Copyright © 2014. All Rights Reserved.