Package org.elasticsearch.common.joda
Class FormatDateTimeFormatter
- java.lang.Object
-
- org.elasticsearch.common.joda.FormatDateTimeFormatter
-
public class FormatDateTimeFormatter extends java.lang.Object
A simple wrapper aroundDateTimeFormatter
that retains the format that was used to create it.
-
-
Constructor Summary
Constructors Constructor Description FormatDateTimeFormatter(java.lang.String format, org.joda.time.format.DateTimeFormatter parser, java.util.Locale locale)
FormatDateTimeFormatter(java.lang.String format, org.joda.time.format.DateTimeFormatter parser, org.joda.time.format.DateTimeFormatter printer, java.util.Locale locale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format()
java.util.Locale
locale()
org.joda.time.format.DateTimeFormatter
parser()
org.joda.time.format.DateTimeFormatter
printer()
DateMathParser
toDateMathParser()
-
-
-
Constructor Detail
-
FormatDateTimeFormatter
public FormatDateTimeFormatter(java.lang.String format, org.joda.time.format.DateTimeFormatter parser, java.util.Locale locale)
-
FormatDateTimeFormatter
public FormatDateTimeFormatter(java.lang.String format, org.joda.time.format.DateTimeFormatter parser, org.joda.time.format.DateTimeFormatter printer, java.util.Locale locale)
-
-
Method Detail
-
format
public java.lang.String format()
-
parser
public org.joda.time.format.DateTimeFormatter parser()
-
printer
public org.joda.time.format.DateTimeFormatter printer()
-
locale
public java.util.Locale locale()
-
toDateMathParser
public DateMathParser toDateMathParser()
-
-