public final class InstantUtil extends Object
Instant values.| Modifier and Type | Method and Description |
|---|---|
static long |
epochMicrosFromInstant(Instant instant)
Gets an epoch micros value from an
Instant. |
static Instant |
instantFromEpochMicro(Long epochMicros)
Gets an
Instant from an epoch micro value. |
static Instant |
instantFromEpochMilli(Long epochMillis)
Gets an
Instant from an epoch millis long value. |
public static Instant instantFromEpochMicro(Long epochMicros)
Instant from an epoch micro value.epochMicros - the epoch micros valueInstantpublic static Instant instantFromEpochMilli(Long epochMillis)
Instant from an epoch millis long value. Returns null if
the arg is null.epochMillis - long epoch millis valueInstantCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.