public class DateMathParser extends Object
Constructor and Description |
---|
DateMathParser(FormatDateTimeFormatter dateTimeFormatter,
TimeUnit timeUnit) |
Modifier and Type | Method and Description |
---|---|
static org.joda.time.format.DateTimeFormatter |
getDateTimeFormatterParser(FormatDateTimeFormatter dateTimeFormatter,
org.joda.time.DateTimeZone timeZone)
Get a DateTimeFormatter parser applying timezone if any.
|
long |
parse(String text,
Callable<Long> now) |
long |
parse(String text,
Callable<Long> now,
boolean roundCeil,
org.joda.time.DateTimeZone timeZone) |
static org.joda.time.DateTimeZone |
parseZone(String text) |
public DateMathParser(FormatDateTimeFormatter dateTimeFormatter, TimeUnit timeUnit)
public long parse(String text, Callable<Long> now, boolean roundCeil, org.joda.time.DateTimeZone timeZone)
public static org.joda.time.format.DateTimeFormatter getDateTimeFormatterParser(FormatDateTimeFormatter dateTimeFormatter, org.joda.time.DateTimeZone timeZone)
public static org.joda.time.DateTimeZone parseZone(String text) throws IOException
IOException
Copyright © 2009–2015. All rights reserved.