Package org.elasticsearch.common.joda
Class Joda.EpochTimePrinter
java.lang.Object
org.elasticsearch.common.joda.Joda.EpochTimePrinter
- All Implemented Interfaces:
org.joda.time.format.DateTimePrinter
- Enclosing class:
- Joda
public static class Joda.EpochTimePrinter
extends Object
implements org.joda.time.format.DateTimePrinter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
void
printTo(Writer out, long instant, org.joda.time.Chronology chrono, int displayOffset, org.joda.time.DateTimeZone displayZone, Locale locale)
We adjust the instant by displayOffset to adjust for the offset that might have been added inDateTimeFormatter.printTo(Appendable, long, Chronology)
when using a time zone.void
void
printTo(StringBuffer buf, long instant, org.joda.time.Chronology chrono, int displayOffset, org.joda.time.DateTimeZone displayZone, Locale locale)
We adjust the instant by displayOffset to adjust for the offset that might have been added inDateTimeFormatter.printTo(Appendable, long, Chronology)
when using a time zone.void
printTo(StringBuffer buf, org.joda.time.ReadablePartial partial, Locale locale)
-
Constructor Details
-
EpochTimePrinter
public EpochTimePrinter(boolean hasMilliSecondPrecision)
-
-
Method Details
-
estimatePrintedLength
public int estimatePrintedLength()- Specified by:
estimatePrintedLength
in interfaceorg.joda.time.format.DateTimePrinter
-
printTo
public void printTo(StringBuffer buf, long instant, org.joda.time.Chronology chrono, int displayOffset, org.joda.time.DateTimeZone displayZone, Locale locale)We adjust the instant by displayOffset to adjust for the offset that might have been added inDateTimeFormatter.printTo(Appendable, long, Chronology)
when using a time zone.- Specified by:
printTo
in interfaceorg.joda.time.format.DateTimePrinter
-
printTo
public void printTo(Writer out, long instant, org.joda.time.Chronology chrono, int displayOffset, org.joda.time.DateTimeZone displayZone, Locale locale) throws IOExceptionWe adjust the instant by displayOffset to adjust for the offset that might have been added inDateTimeFormatter.printTo(Appendable, long, Chronology)
when using a time zone.- Specified by:
printTo
in interfaceorg.joda.time.format.DateTimePrinter
- Throws:
IOException
-
printTo
- Specified by:
printTo
in interfaceorg.joda.time.format.DateTimePrinter
-
printTo
public void printTo(Writer out, org.joda.time.ReadablePartial partial, Locale locale) throws IOException- Specified by:
printTo
in interfaceorg.joda.time.format.DateTimePrinter
- Throws:
IOException
-