public final class DateHelper extends Object
Modifier and Type | Method and Description |
---|---|
static org.joda.time.DateTime |
plusDuration(org.joda.time.DateTime origin,
String duration)
Returns a new datetime plus the specified duration.
|
public static org.joda.time.DateTime plusDuration(org.joda.time.DateTime origin, String duration)
origin
- the initial datetimeduration
- can be expressed with a noun: hour, day, month, quarter, year or expression: 2d, 3h, 5w, 2M, 3y
or a number of ms: 1234IllegalArgumentException
- if the duration cannot be parsedCopyright © 2018 Nuxeo. All rights reserved.