public class ExtendedDateTime extends Object
Constructor and Description |
---|
ExtendedDateTime(org.joda.time.DateTime dateTime) |
ExtendedDateTime(org.joda.time.DateTime dateTime,
int microsOfMillis)
if timestamp = 2019-11-11 11:11:11 123456, then dateTime = 2019-11-11 11:11:11 123
microInMillis = 456
|
Modifier and Type | Method and Description |
---|---|
org.joda.time.DateTime |
getDateTime() |
int |
getMicrosOfMillis() |
int |
getMicrosOfSeconds() |
long |
toEpochMicro() |
Timestamp |
toTimeStamp() |
public ExtendedDateTime(org.joda.time.DateTime dateTime, int microsOfMillis)
dateTime
- microsOfMillis
- public ExtendedDateTime(org.joda.time.DateTime dateTime)
public org.joda.time.DateTime getDateTime()
public int getMicrosOfSeconds()
public int getMicrosOfMillis()
public Timestamp toTimeStamp()
public long toEpochMicro()
Copyright © 2024 PingCAP. All rights reserved.