Package org.elasticsearch.common.joda
Class DateMathParser
- java.lang.Object
-
- org.elasticsearch.common.joda.DateMathParser
-
public class DateMathParser extends java.lang.Object
A parser for date/time formatted text with optional date math. The format of the datetime is configurable, and unix timestamps can also be used. Datemath is appended to a datetime with the following syntax:||[+-/](\d+)?[yMwdhHms]
.
-
-
Constructor Summary
Constructors Constructor Description DateMathParser(FormatDateTimeFormatter dateTimeFormatter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
parse(java.lang.String text, java.util.function.LongSupplier now)
long
parse(java.lang.String text, java.util.function.LongSupplier now, boolean roundUp, org.joda.time.DateTimeZone timeZone)
-
-
-
Constructor Detail
-
DateMathParser
public DateMathParser(FormatDateTimeFormatter dateTimeFormatter)
-
-