Package generalDatabase
Class UTCTimestamp
java.lang.Object
java.util.Date
java.sql.Timestamp
generalDatabase.UTCTimestamp
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Date>
Override standard Timestamp class and stop it making UTC corrections as it writes to database
- Author:
- dg50
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.sql.Timestamp
after, before, compareTo, compareTo, equals, equals, from, getNanos, hashCode, setNanos, setTime, toInstant, toString, valueOf, valueOf
Methods inherited from class java.util.Date
after, before, clone, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTimezoneOffset, getYear, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setYear, toGMTString, toLocaleString, UTC
-
Constructor Details
-
UTCTimestamp
public UTCTimestamp(long time)
-
-
Method Details
-
getTime
public long getTime() -
toLocalDateTime
- Overrides:
toLocalDateTime
in classTimestamp
-