Package biz.onixs.util
Class Timestamp
- java.lang.Object
-
- biz.onixs.util.Timestamp
-
public class Timestamp extends Object
UTC timestamp.This class is not thread-safe.
-
-
Field Summary
Fields Modifier and Type Field Description static intTIMESTAMP_LENGTH_NO_MSstatic intTIMESTAMP_LENGTH_WITH_MS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcalendarToUtcTimestampBytes(Calendar calendar, byte[] bytes, int offset, boolean withMs)StringconvertToUtcTimestamp(long currentTimeMillis, boolean withMs)byte[]convertToUtcTimestampBytes(long currentTimeMillis, boolean withMs)static voiddateTimeToUtcTimestampBytes(byte[] bytes, int offset, int year, int month, int day, int hour, int minute, int second, int millis, boolean withMs)static voiddateTimeToUtcTimestampBytes(LocalDateTime dateTime, byte[] bytes, int offset, boolean withMs)StringgetUtcTimestamp(boolean withMs)voidgetUtcTimestamp(ValuePtr valuePtr, boolean withMs)byte[]getUtcTimestampBytes(boolean withMs)
-
-
-
Field Detail
-
TIMESTAMP_LENGTH_NO_MS
public static final int TIMESTAMP_LENGTH_NO_MS
- See Also:
- Constant Field Values
-
TIMESTAMP_LENGTH_WITH_MS
public static final int TIMESTAMP_LENGTH_WITH_MS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Timestamp
public Timestamp(TimeZone timeZone)
-
Timestamp
public Timestamp()
-
-
Method Detail
-
calendarToUtcTimestampBytes
public static void calendarToUtcTimestampBytes(Calendar calendar, byte[] bytes, int offset, boolean withMs)
-
dateTimeToUtcTimestampBytes
public static void dateTimeToUtcTimestampBytes(LocalDateTime dateTime, byte[] bytes, int offset, boolean withMs)
-
dateTimeToUtcTimestampBytes
public static void dateTimeToUtcTimestampBytes(byte[] bytes, int offset, int year, int month, int day, int hour, int minute, int second, int millis, boolean withMs)
-
getUtcTimestamp
public void getUtcTimestamp(ValuePtr valuePtr, boolean withMs)
-
getUtcTimestampBytes
public byte[] getUtcTimestampBytes(boolean withMs)
-
convertToUtcTimestampBytes
public byte[] convertToUtcTimestampBytes(long currentTimeMillis, boolean withMs)
-
getUtcTimestamp
public String getUtcTimestamp(boolean withMs)
-
convertToUtcTimestamp
public String convertToUtcTimestamp(long currentTimeMillis, boolean withMs)
-
-