| 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.add(Duration dur)
Add a fixed duration of time
|
DateTime |
DateTime.add(long milliseconds)
Add a fixed duration in milliseconds.
|
static DateTime |
DateTime.parse(String str)
Interpret a DateTime from a String using global defaults.
|
static DateTime |
DateTime.parse(String str,
IDateTimeConfig config)
Interpret a DateTime from a String.
|
DateTime |
DateTime.shift(CalendarUnit calUnit,
int qty)
Add increments of any calendar time unit from a nanosecond to a century.
|
DateTime |
DateTime.shift(Shift shift)
Shift this DateTime +/- a Shift offset.
|
DateTime |
DateTime.shift(String iso8601)
Shift this DateTime +/- a Shift offset specified as an ISO 8601 string.
|
DateTime |
DateTime.truncate(CalendarUnit unit)
Truncate DateTime down to its nearest time unit as a time.
|
| Modifier and Type | Method and Description |
|---|---|
int |
DateTime.compareTo(DateTime other)
Compare two DateTime objects to determine ordering.
|
String |
DateTimeFormat.format(DateTime dt) |
static String |
DateTimeFormat.format(String template,
DateTime dt) |
static String |
DateTimeFormat.format(String template,
DateTime dt,
TimeZone tz) |
static String |
DateTimeFormat.format(String template,
DateTime dt,
TimeZone tz,
Locale locale) |
| Constructor and Description |
|---|
Tm(DateTime dt)
Populate year, month, day, hour, min, sec, nano from a DateTime
|
Tm(DateTime dt,
TimeZone tz)
Constructor
|
Copyright © 2014. All Rights Reserved.