| Modifier and Type | Method and Description |
|---|---|
DateTime.Unit |
DateTime.getPrecision()
Return the smallest non-null time unit encapsulated by this DateTime.
|
static DateTime.Unit |
DateTime.Unit.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DateTime.Unit[] |
DateTime.Unit.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
DateTime |
DateTime.truncate(DateTime.Unit aPrecision)
Truncate this DateTime to the given precision.
|
boolean |
DateTime.unitsAllAbsent(DateTime.Unit... aUnits)
Return true only if all of the given units are absent from this DateTime.
|
boolean |
DateTime.unitsAllPresent(DateTime.Unit... aUnits)
Return true only if all of the given units are present in this DateTime.
|
Copyright © 2014. All Rights Reserved.