Class EpochTimestamp

java.lang.Object
tenapull.data.deserialize.EpochTimestamp

public class EpochTimestamp
extends java.lang.Object
Includes two inner classes for deserializing and serializing epoch timestamps between a JSON integer (representing seconds) and java.sql.Timestamp
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  EpochTimestamp.Deserializer
    Deserializes a JSON integer representing seconds into a java.sql.Timestamp
    static class  EpochTimestamp.Serializer
    Serializes a java.sql.Timestamp into a JSON integer based on epoch seconds
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static long EPOCH_LOCAL_OFFSET
    The timezone offset, needed for the ZERO constant
  • Constructor Summary

    Constructors 
    Constructor Description
    EpochTimestamp()  
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • EPOCH_LOCAL_OFFSET

      public static final long EPOCH_LOCAL_OFFSET
      The timezone offset, needed for the ZERO constant
  • Constructor Details