Package tenapull.data.deserialize
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.Timestampstatic 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
-
Field Details
-
EPOCH_LOCAL_OFFSET
public static final long EPOCH_LOCAL_OFFSETThe timezone offset, needed for the ZERO constant
-
-
Constructor Details
-
EpochTimestamp
public EpochTimestamp()
-