Package org.elasticsearch.common.joda
Class Joda.EpochTimePrinter
org.elasticsearch.common.joda.Joda.EpochTimePrinter
- All Implemented Interfaces:
org.joda.time.format.DateTimePrinter
- Enclosing class:
- Joda
public static class Joda.EpochTimePrinter
extends
implements org.joda.time.format.DateTimePrinter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
void
out, long instant, org.joda.time.Chronology chrono, int displayOffset, org.joda.time.DateTimeZone displayZone, 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
out, org.joda.time.ReadablePartial partial, locale)
void
buf, long instant, org.joda.time.Chronology chrono, int displayOffset, org.joda.time.DateTimeZone displayZone, 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
buf, org.joda.time.ReadablePartial partial, locale)
Methods inherited from class java.lang.
, , , , , , , , , ,
-
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( buf, long instant, org.joda.time.Chronology chrono, int displayOffset, org.joda.time.DateTimeZone displayZone, 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( out, long instant, org.joda.time.Chronology chrono, int displayOffset, org.joda.time.DateTimeZone displayZone, locale) throwsWe 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:
-
printTo
public void printTo( buf, org.joda.time.ReadablePartial partial, locale)- Specified by:
printTo
in interfaceorg.joda.time.format.DateTimePrinter
-
printTo
public void printTo( out, org.joda.time.ReadablePartial partial, locale) throws- Specified by:
printTo
in interfaceorg.joda.time.format.DateTimePrinter
- Throws:
-