public class Timestamp extends Object
This class is not thread-safe.
Modifier and Type | Field and Description |
---|---|
static int |
TIMESTAMP_LENGTH_NO_MS |
static int |
TIMESTAMP_LENGTH_WITH_MS |
Constructor and Description |
---|
Timestamp() |
Timestamp(TimeZone timeZone) |
Modifier and Type | Method and Description |
---|---|
static void |
calendarToUtcTimestampBytes(Calendar calendar,
byte[] bytes,
int offset,
boolean withMs) |
String |
convertToUtcTimestamp(long currentTimeMillis,
boolean withMs) |
byte[] |
convertToUtcTimestampBytes(long currentTimeMillis,
boolean withMs) |
static void |
dateTimeToUtcTimestampBytes(byte[] bytes,
int offset,
int year,
int month,
int day,
int hour,
int minute,
int second,
int millis,
boolean withMs) |
static void |
dateTimeToUtcTimestampBytes(LocalDateTime dateTime,
byte[] bytes,
int offset,
boolean withMs) |
String |
getUtcTimestamp(boolean withMs) |
void |
getUtcTimestamp(ValuePtr valuePtr,
boolean withMs) |
byte[] |
getUtcTimestampBytes(boolean withMs) |
public static final int TIMESTAMP_LENGTH_NO_MS
public static final int TIMESTAMP_LENGTH_WITH_MS
public Timestamp(TimeZone timeZone)
public Timestamp()
public static void calendarToUtcTimestampBytes(Calendar calendar, byte[] bytes, int offset, boolean withMs)
public static void dateTimeToUtcTimestampBytes(LocalDateTime dateTime, byte[] bytes, int offset, boolean withMs)
public static void dateTimeToUtcTimestampBytes(byte[] bytes, int offset, int year, int month, int day, int hour, int minute, int second, int millis, boolean withMs)
public void getUtcTimestamp(ValuePtr valuePtr, boolean withMs)
public byte[] getUtcTimestampBytes(boolean withMs)
public byte[] convertToUtcTimestampBytes(long currentTimeMillis, boolean withMs)
public String getUtcTimestamp(boolean withMs)
public String convertToUtcTimestamp(long currentTimeMillis, boolean withMs)
Copyright © 2005–2024 Onix Solutions. All rights reserved.