public class DateTimeUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.time.OffsetDateTime |
EPOCH |
static java.time.LocalDate |
EPOCH_DAY |
Modifier and Type | Method and Description |
---|---|
static java.time.LocalDate |
dateFromDays(int daysFromEpoch) |
static int |
daysFromDate(java.time.LocalDate date) |
static int |
daysFromInstant(java.time.Instant instant) |
static long |
microsFromInstant(java.time.Instant instant) |
static long |
microsFromTime(java.time.LocalTime time) |
static long |
microsFromTimestamp(java.time.LocalDateTime dateTime) |
static long |
microsFromTimestamptz(java.time.OffsetDateTime dateTime) |
static java.time.LocalTime |
timeFromMicros(long microFromMidnight) |
static java.time.LocalDateTime |
timestampFromMicros(long microsFromEpoch) |
static java.time.OffsetDateTime |
timestamptzFromMicros(long microsFromEpoch) |
public static final java.time.OffsetDateTime EPOCH
public static final java.time.LocalDate EPOCH_DAY
public static java.time.LocalDate dateFromDays(int daysFromEpoch)
public static int daysFromDate(java.time.LocalDate date)
public static int daysFromInstant(java.time.Instant instant)
public static java.time.LocalTime timeFromMicros(long microFromMidnight)
public static long microsFromTime(java.time.LocalTime time)
public static java.time.LocalDateTime timestampFromMicros(long microsFromEpoch)
public static long microsFromInstant(java.time.Instant instant)
public static long microsFromTimestamp(java.time.LocalDateTime dateTime)
public static java.time.OffsetDateTime timestamptzFromMicros(long microsFromEpoch)
public static long microsFromTimestamptz(java.time.OffsetDateTime dateTime)