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

    Constructors
    Constructor
    Description
    EpochTimePrinter​(boolean hasMilliSecondPrecision)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    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 in DateTimeFormatter.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 in DateTimeFormatter.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 interface org.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 in DateTimeFormatter.printTo(Appendable, long, Chronology) when using a time zone.
      Specified by:
      printTo in interface org.joda.time.format.DateTimePrinter
    • printTo

      public void printTo( out, long instant, org.joda.time.Chronology chrono, int displayOffset, org.joda.time.DateTimeZone displayZone,  locale) throws
      We adjust the instant by displayOffset to adjust for the offset that might have been added in DateTimeFormatter.printTo(Appendable, long, Chronology) when using a time zone.
      Specified by:
      printTo in interface org.joda.time.format.DateTimePrinter
      Throws:
    • printTo

      public void printTo( buf, org.joda.time.ReadablePartial partial,  locale)
      Specified by:
      printTo in interface org.joda.time.format.DateTimePrinter
    • printTo

      public void printTo( out, org.joda.time.ReadablePartial partial,  locale) throws
      Specified by:
      printTo in interface org.joda.time.format.DateTimePrinter
      Throws: