Class Joda.EpochTimePrinter

  • All Implemented Interfaces:
    org.joda.time.format.DateTimePrinter
    Enclosing class:
    Joda

    public static class Joda.EpochTimePrinter
    extends java.lang.Object
    implements org.joda.time.format.DateTimePrinter
    • Constructor Summary

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

      Modifier and Type Method Description
      int estimatePrintedLength()  
      void printTo​(java.io.Writer out, long instant, org.joda.time.Chronology chrono, int displayOffset, org.joda.time.DateTimeZone displayZone, java.util.Locale 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 printTo​(java.io.Writer out, org.joda.time.ReadablePartial partial, java.util.Locale locale)  
      void printTo​(java.lang.StringBuffer buf, long instant, org.joda.time.Chronology chrono, int displayOffset, org.joda.time.DateTimeZone displayZone, java.util.Locale 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 printTo​(java.lang.StringBuffer buf, org.joda.time.ReadablePartial partial, java.util.Locale locale)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EpochTimePrinter

        public EpochTimePrinter​(boolean hasMilliSecondPrecision)
    • Method Detail

      • estimatePrintedLength

        public int estimatePrintedLength()
        Specified by:
        estimatePrintedLength in interface org.joda.time.format.DateTimePrinter
      • printTo

        public void printTo​(java.lang.StringBuffer buf,
                            long instant,
                            org.joda.time.Chronology chrono,
                            int displayOffset,
                            org.joda.time.DateTimeZone displayZone,
                            java.util.Locale 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​(java.io.Writer out,
                            long instant,
                            org.joda.time.Chronology chrono,
                            int displayOffset,
                            org.joda.time.DateTimeZone displayZone,
                            java.util.Locale locale)
                     throws java.io.IOException
        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:
        java.io.IOException
      • printTo

        public void printTo​(java.lang.StringBuffer buf,
                            org.joda.time.ReadablePartial partial,
                            java.util.Locale locale)
        Specified by:
        printTo in interface org.joda.time.format.DateTimePrinter
      • printTo

        public void printTo​(java.io.Writer out,
                            org.joda.time.ReadablePartial partial,
                            java.util.Locale locale)
                     throws java.io.IOException
        Specified by:
        printTo in interface org.joda.time.format.DateTimePrinter
        Throws:
        java.io.IOException