Website Home
HOME
Java Date Introduction
Java Date Time Introduction
Java Date Time Methods
Java Date Time
Java Instants/Durations
Java Date Time Zone
Java Year Month Day
Java Local Date Time
Java Offset Date Time
Java Zoned Date Time
Java Clock Period
Java Chrono Field Unit
Java Date Time Adjuster
Java Date Time Query
Java Non ISO Calendar
Java Date Format/Parse
Java Date Time Format
Java Custom Date Format
Java Locale Specific Formats
Java Dates and Times Parsing
Java Legacy Date
Java Legacy Date Calendar
Java Date Time Interoperability
java.time Package Reference
Clock
DayOfWeek
Duration
Instant
LocalDate
LocalDateTime
LocalTime
Month
MonthDay
OffsetDateTime
OffsetTime
Period
Year
YearMonth
ZonedDateTime
ZoneId
ZoneOffset
java.util Package
Calendar
Date
GregorianCalendar
SimpleTimeZone
TimeZone
Java Date Time - Instant Example
« Previous
Next »
Field
Instant MAX
Instant MIN
Instant EPOCH
Method
Instant adjustInto(Temporal temporal)
Instant atOffset(ZoneOffset offset)
Instant atZone(ZoneId zone)
Instant compareTo(Instant otherInstant)
Instant equals(Object otherInstant)
Instant from(TemporalAccessor temporal)
Instant getEpochSecond()
Instant getLong(TemporalField field)
Instant getNano()
Instant get(TemporalField field)
Instant hashCode()
Instant isAfter(Instant otherInstant)
Instant isBefore(Instant otherInstant)
Instant isSupported(TemporalField field)
Instant isSupported(TemporalUnit unit)
Instant minusMillis(long millisToSubtract)
Instant minusNanos(long nanosToSubtract)
Instant minusSeconds(long secondsToSubtract)
Instant minus(long amountToSubtract, TemporalUnit unit)
Instant minus(TemporalAmount amountToSubtract)
Instant now()
Instant now(Clock clock)
Instant ofEpochMilli(long epochMilli)
Instant ofEpochSecond(long epochSecond)
Instant ofEpochSecond(long epochSecond, long nanoAdjustment)
Instant parse(CharSequence text)
Instant plusMillis(long millisToAdd)
Instant plusNanos(long nanosToAdd)
Instant plusSeconds(long secondsToAdd)
Instant plus(long amountToAdd, TemporalUnit unit)
Instant plus(TemporalAmount amountToAdd)
Instant query(TemporalQuery query)
Instant range(TemporalField field)
Instant toEpochMilli()
Instant toString()
Instant truncatedTo(TemporalUnit unit)
Instant until(Temporal endExclusive, TemporalUnit unit)
Instant with(TemporalAdjuster adjuster)
Instant with(TemporalField field, long newValue)
Next »
« Previous