Class TimestampConverter


  • @Internal
    public class TimestampConverter
    extends java.lang.Object
    Convert between different Timestamp and Instant classes.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.joda.time.Instant microsecondToInstant​(long microsecond)  
      static org.joda.time.Instant toJodaTime​(org.threeten.bp.Instant threetenInstant)  
      static long toSeconds​(org.joda.time.Instant jodaInstant)  
      static org.threeten.bp.Instant toThreetenInstant​(org.joda.time.Instant jodaInstant)  
      • Methods inherited from class java.lang.Object

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

      • TimestampConverter

        public TimestampConverter()
    • Method Detail

      • toThreetenInstant

        public static org.threeten.bp.Instant toThreetenInstant​(org.joda.time.Instant jodaInstant)
      • toJodaTime

        public static org.joda.time.Instant toJodaTime​(org.threeten.bp.Instant threetenInstant)
      • toSeconds

        public static long toSeconds​(org.joda.time.Instant jodaInstant)
      • microsecondToInstant

        public static org.joda.time.Instant microsecondToInstant​(long microsecond)