| Package | Description | 
|---|---|
| java.nio.file.attribute | Interfaces and classes providing access to file and file system attributes. | 
| java.sql | Provides the API for accessing and processing data stored in a 
data source (usually a relational database) using the 
JavaTM programming language. | 
| java.time | 
 The main API for dates, times, instants, and durations. | 
| java.time.chrono | 
 Generic API for calendar systems other than the default ISO. | 
| java.time.zone | 
 Support for time-zones and their rules. | 
| java.util | Contains the collections framework, legacy collection classes, event model,
date and time facilities, internationalization, and miscellaneous utility
classes (a string tokenizer, a random-number generator, and a bit array). | 
| Modifier and Type | Method and Description | 
|---|---|
| Instant | FileTime. toInstant()Converts this  FileTimeobject to anInstant. | 
| Modifier and Type | Method and Description | 
|---|---|
| static FileTime | FileTime. from(Instant instant)Returns a  FileTimerepresenting the same point of time value
 on the time-line as the providedInstantobject. | 
| Modifier and Type | Method and Description | 
|---|---|
| Instant | Date. toInstant()This method always throws an UnsupportedOperationException and should
 not be used because SQL  Datevalues do not have a time
 component. | 
| Instant | Timestamp. toInstant()Converts this  Timestampobject to anInstant. | 
| Instant | Time. toInstant()This method always throws an UnsupportedOperationException and should
 not be used because SQL  Timevalues do not have a date
 component. | 
| Modifier and Type | Method and Description | 
|---|---|
| static Timestamp | Timestamp. from(Instant instant)Obtains an instance of  Timestampfrom anInstantobject. | 
| Modifier and Type | Field and Description | 
|---|---|
| static Instant | Instant. EPOCHConstant for the 1970-01-01T00:00:00Z epoch instant. | 
| static Instant | Instant. MAXThe maximum supported  Instant, '1000000000-12-31T23:59:59.999999999Z'. | 
| static Instant | Instant. MINThe minimum supported  Instant, '-1000000000-01-01T00:00Z'. | 
| Modifier and Type | Method and Description | 
|---|---|
| static Instant | Instant. from(TemporalAccessor temporal)Obtains an instance of  Instantfrom a temporal object. | 
| abstract Instant | Clock. instant()Gets the current instant of the clock. | 
| Instant | Instant. minus(long amountToSubtract,
     TemporalUnit unit)Returns a copy of this instant with the specified amount subtracted. | 
| Instant | Instant. minus(TemporalAmount amountToSubtract)Returns a copy of this instant with the specified amount subtracted. | 
| Instant | Instant. minusMillis(long millisToSubtract)Returns a copy of this instant with the specified duration in milliseconds subtracted. | 
| Instant | Instant. minusNanos(long nanosToSubtract)Returns a copy of this instant with the specified duration in nanoseconds subtracted. | 
| Instant | Instant. minusSeconds(long secondsToSubtract)Returns a copy of this instant with the specified duration in seconds subtracted. | 
| static Instant | Instant. now()Obtains the current instant from the system clock. | 
| static Instant | Instant. now(Clock clock)Obtains the current instant from the specified clock. | 
| static Instant | Instant. ofEpochMilli(long epochMilli)Obtains an instance of  Instantusing milliseconds from the
 epoch of 1970-01-01T00:00:00Z. | 
| static Instant | Instant. ofEpochSecond(long epochSecond)Obtains an instance of  Instantusing seconds from the
 epoch of 1970-01-01T00:00:00Z. | 
| static Instant | Instant. ofEpochSecond(long epochSecond,
             long nanoAdjustment)Obtains an instance of  Instantusing seconds from the
 epoch of 1970-01-01T00:00:00Z and nanosecond fraction of second. | 
| static Instant | Instant. parse(CharSequence text)Obtains an instance of  Instantfrom a text string such as2007-12-03T10:15:30.00Z. | 
| Instant | Instant. plus(long amountToAdd,
    TemporalUnit unit)Returns a copy of this instant with the specified amount added. | 
| Instant | Instant. plus(TemporalAmount amountToAdd)Returns a copy of this instant with the specified amount added. | 
| Instant | Instant. plusMillis(long millisToAdd)Returns a copy of this instant with the specified duration in milliseconds added. | 
| Instant | Instant. plusNanos(long nanosToAdd)Returns a copy of this instant with the specified duration in nanoseconds added. | 
| Instant | Instant. plusSeconds(long secondsToAdd)Returns a copy of this instant with the specified duration in seconds added. | 
| Instant | OffsetDateTime. toInstant()Converts this date-time to an  Instant. | 
| Instant | Instant. truncatedTo(TemporalUnit unit)Returns a copy of this  Instanttruncated to the specified unit. | 
| Instant | Instant. with(TemporalAdjuster adjuster)Returns an adjusted copy of this instant. | 
| Instant | Instant. with(TemporalField field,
    long newValue)Returns a copy of this instant with the specified field set to a new value. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | Instant. compareTo(Instant otherInstant)Compares this instant to the specified instant. | 
| static Clock | Clock. fixed(Instant fixedInstant,
     ZoneId zone)Obtains a clock that always returns the same instant. | 
| boolean | Instant. isAfter(Instant otherInstant)Checks if this instant is after the specified instant. | 
| boolean | Instant. isBefore(Instant otherInstant)Checks if this instant is before the specified instant. | 
| static OffsetTime | OffsetTime. ofInstant(Instant instant,
         ZoneId zone)Obtains an instance of  OffsetTimefrom anInstantand zone ID. | 
| static LocalDateTime | LocalDateTime. ofInstant(Instant instant,
         ZoneId zone)Obtains an instance of  LocalDateTimefrom anInstantand zone ID. | 
| static ZonedDateTime | ZonedDateTime. ofInstant(Instant instant,
         ZoneId zone)Obtains an instance of  ZonedDateTimefrom anInstant. | 
| static OffsetDateTime | OffsetDateTime. ofInstant(Instant instant,
         ZoneId zone)Obtains an instance of  OffsetDateTimefrom anInstantand zone ID. | 
| Modifier and Type | Method and Description | 
|---|---|
| default Instant | ChronoZonedDateTime. toInstant()Converts this date-time to an  Instant. | 
| default Instant | ChronoLocalDateTime. toInstant(ZoneOffset offset)Converts this date-time to an  Instant. | 
| Modifier and Type | Method and Description | 
|---|---|
| ChronoZonedDateTime<JapaneseDate> | JapaneseChronology. zonedDateTime(Instant instant,
             ZoneId zone) | 
| default ChronoZonedDateTime<? extends ChronoLocalDate> | Chronology. zonedDateTime(Instant instant,
             ZoneId zone)Obtains a  ChronoZonedDateTimein this chronology from anInstant. | 
| ChronoZonedDateTime<ThaiBuddhistDate> | ThaiBuddhistChronology. zonedDateTime(Instant instant,
             ZoneId zone) | 
| ZonedDateTime | IsoChronology. zonedDateTime(Instant instant,
             ZoneId zone)Obtains an ISO zoned date-time in this chronology from an  Instant. | 
| ChronoZonedDateTime<HijrahDate> | HijrahChronology. zonedDateTime(Instant instant,
             ZoneId zone) | 
| ChronoZonedDateTime<MinguoDate> | MinguoChronology. zonedDateTime(Instant instant,
             ZoneId zone) | 
| Modifier and Type | Method and Description | 
|---|---|
| Instant | ZoneOffsetTransition. getInstant()Gets the transition instant. | 
| Modifier and Type | Method and Description | 
|---|---|
| Duration | ZoneRules. getDaylightSavings(Instant instant)Gets the amount of daylight savings in use for the specified instant in this zone. | 
| ZoneOffset | ZoneRules. getOffset(Instant instant)Gets the offset applicable at the specified instant in these rules. | 
| ZoneOffset | ZoneRules. getStandardOffset(Instant instant)Gets the standard offset for the specified instant in this zone. | 
| boolean | ZoneRules. isDaylightSavings(Instant instant)Checks if the specified instant is in daylight savings. | 
| ZoneOffsetTransition | ZoneRules. nextTransition(Instant instant)Gets the next transition after the specified instant. | 
| ZoneOffsetTransition | ZoneRules. previousTransition(Instant instant)Gets the previous transition before the specified instant. | 
| Modifier and Type | Method and Description | 
|---|---|
| Instant | Date. toInstant()Converts this  Dateobject to anInstant. | 
| Instant | Calendar. toInstant()Converts this object to an  Instant. | 
| Modifier and Type | Method and Description | 
|---|---|
| static Date | Date. from(Instant instant)Obtains an instance of  Datefrom anInstantobject. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2015, Oracle and/or its affiliates.  All rights reserved.