Class TimestampFactory
- java.lang.Object
-
- cern.nxcals.api.backport.domain.util.TimestampFactory
-
public class TimestampFactory extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.sql.Timestamp
getCurrentTime()
static java.sql.Timestamp
getTimeOffset(int unit, LoggingTimeInterval timeInterval)
static java.sql.Timestamp
maxEndTime()
static java.sql.Timestamp
parseLocalTimestamp(java.lang.String localTimestampAsISOString)
static java.sql.Timestamp
parseTimestamp(java.lang.String timestampAsISOString, LoggingTimeZone timeZone)
static java.sql.Timestamp
parseUTCTimestamp(java.lang.String uTCTimestampAsISOString)
-
-
-
Method Detail
-
parseUTCTimestamp
public static java.sql.Timestamp parseUTCTimestamp(java.lang.String uTCTimestampAsISOString)
-
parseLocalTimestamp
public static java.sql.Timestamp parseLocalTimestamp(java.lang.String localTimestampAsISOString)
-
parseTimestamp
public static java.sql.Timestamp parseTimestamp(java.lang.String timestampAsISOString, LoggingTimeZone timeZone)
-
getCurrentTime
public static java.sql.Timestamp getCurrentTime()
-
getTimeOffset
public static java.sql.Timestamp getTimeOffset(int unit, LoggingTimeInterval timeInterval)
-
maxEndTime
public static java.sql.Timestamp maxEndTime()
-
-