| Modifier and Type | Method and Description |
|---|---|
static CalendarUnit |
CalendarUnit.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CalendarUnit[] |
CalendarUnit.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.add(CalendarUnit calUnit,
int qty)
Add +/- a block of time to a date in it's OutputTimeZone.
|
DateTime |
DateTime.shift(CalendarUnit calUnit,
int qty)
Add increments of any calendar time unit from a nanosecond to a century.
|
DateTime |
DateTime.truncate(CalendarUnit unit)
Truncate DateTime down to its nearest time unit as a time.
|
Copyright © 2014. All Rights Reserved.