| Package | Description |
|---|---|
| java.time |
| Modifier and Type | Method and Description |
|---|---|
abstract Instant |
Clock.instant() |
Instant |
Instant.minusMillis(long millisToSubtract) |
Instant |
Instant.minusSeconds(long secondsToSubtract) |
static Instant |
Instant.now() |
static Instant |
Instant.ofEpochMilli(long epochMilli) |
static Instant |
Instant.ofEpochSecond(long epochSecond) |
static Instant |
Instant.ofEpochSecond(long epochSecond,
long nanoAdjustment) |
static Instant |
Instant.parse(CharSequence text) |
Instant |
Instant.plusMillis(long millisToAdd) |
Instant |
Instant.plusSeconds(long secondsToAdd) |
Instant |
ZonedDateTime.toInstant() |
Instant |
OffsetDateTime.toInstant() |
Instant |
LocalDateTime.toInstant(ZoneOffset offset) |
| Modifier and Type | Method and Description |
|---|---|
int |
Instant.compareTo(Instant other) |
static Clock |
Clock.fixed(Instant fixedInstant,
ZoneId zone) |
static ZonedDateTime |
ZonedDateTime.ofInstant(Instant instant,
ZoneId zone) |
static OffsetDateTime |
OffsetDateTime.ofInstant(Instant instant,
ZoneId zone) |
static LocalDateTime |
LocalDateTime.ofInstant(Instant instant,
ZoneId zone) |
Copyright © 2026. All rights reserved.