public class TimestampWrapper extends Object
| Constructor and Description |
|---|
TimestampWrapper(OffsetDateTime offsetDateTime,
int scale)
Create a new instance from
OffsetDateTime and its scale. |
| Modifier and Type | Method and Description |
|---|---|
long |
getEpoch()
Get epoch in seconds
|
int |
getFraction()
Get fractional part of a second
|
int |
getTimeZoneIndex()
Get timezone index, 1440 means UTC.
|
int |
getTimezoneOffsetSeconds()
Get timezone offset in seconds
|
BigInteger |
toBinary(boolean includeTimezone)
Convert the timestamp to a binary representation.
|
public TimestampWrapper(OffsetDateTime offsetDateTime, int scale)
OffsetDateTime and its scale.public BigInteger toBinary(boolean includeTimezone)
SFTimestamp.toBinary(int, boolean).public long getEpoch()
public int getFraction()
public int getTimezoneOffsetSeconds()
public int getTimeZoneIndex()
SFTimestamp.toBinary(int, boolean)Copyright © 2023. All rights reserved.