public class DateMathParser
extends java.lang.Object
||[+-/](\d+)?[yMwdhHms].| Constructor and Description |
|---|
DateMathParser(FormatDateTimeFormatter dateTimeFormatter) |
| Modifier and Type | Method and Description |
|---|---|
long |
parseDateTime(java.lang.String value,
org.joda.time.DateTimeZone timeZone,
boolean roundUpIfNoTime) |
long |
parseMath(java.lang.String mathString,
long time,
boolean roundUp,
org.joda.time.DateTimeZone timeZone) |
public DateMathParser(FormatDateTimeFormatter dateTimeFormatter)
public long parseMath(java.lang.String mathString,
long time,
boolean roundUp,
org.joda.time.DateTimeZone timeZone)
throws ParseException
ParseExceptionpublic long parseDateTime(java.lang.String value,
org.joda.time.DateTimeZone timeZone,
boolean roundUpIfNoTime)