Uses of Class
org.threeten.bp.Instant
-
Packages that use Instant Package Description org.threeten.bp The main API for dates, times, instants, and durations.org.threeten.bp.chrono Support for calendar systems other than the default ISO.org.threeten.bp.zone Support for time-zones and their rules. -
-
Uses of Instant in org.threeten.bp
Fields in org.threeten.bp declared as Instant Modifier and Type Field Description static InstantInstant. EPOCHConstant for the 1970-01-01T00:00:00Z epoch instant.static InstantInstant. MAXThe maximum supportedInstant, '1000000000-12-31T23:59:59.999999999Z'.static InstantInstant. MINThe minimum supportedInstant, '-1000000000-01-01T00:00Z'.Fields in org.threeten.bp with type parameters of type Instant Modifier and Type Field Description static TemporalQuery<Instant>Instant. FROMSimulate JDK 8 method reference Instant::from.Methods in org.threeten.bp that return Instant Modifier and Type Method Description static InstantInstant. from(TemporalAccessor temporal)Obtains an instance ofInstantfrom a temporal object.abstract InstantClock. instant()Gets the current instant of the clock.InstantInstant. minus(long amountToSubtract, TemporalUnit unit)Returns an object of the same type as this object with the specified period subtracted.InstantInstant. minus(TemporalAmount amount)Returns an object of the same type as this object with an amount subtracted.InstantInstant. minusMillis(long millisToSubtract)Returns a copy of this instant with the specified duration in milliseconds subtracted.InstantInstant. minusNanos(long nanosToSubtract)Returns a copy of this instant with the specified duration in nanoseconds subtracted.InstantInstant. minusSeconds(long secondsToSubtract)Returns a copy of this instant with the specified duration in seconds subtracted.static InstantInstant. now()Obtains the current instant from the system clock.static InstantInstant. now(Clock clock)Obtains the current instant from the specified clock.static InstantInstant. ofEpochMilli(long epochMilli)Obtains an instance ofInstantusing milliseconds from the epoch of 1970-01-01T00:00:00Z.static InstantInstant. ofEpochSecond(long epochSecond)Obtains an instance ofInstantusing seconds from the epoch of 1970-01-01T00:00:00Z.static InstantInstant. ofEpochSecond(long epochSecond, long nanoAdjustment)Obtains an instance ofInstantusing seconds from the epoch of 1970-01-01T00:00:00Z and nanosecond fraction of second.static InstantInstant. parse(CharSequence text)Obtains an instance ofInstantfrom a text string such as2007-12-23T10:15:30.000Z.InstantInstant. plus(long amountToAdd, TemporalUnit unit)Returns an object of the same type as this object with the specified period added.InstantInstant. plus(TemporalAmount amount)Returns an object of the same type as this object with an amount added.InstantInstant. plusMillis(long millisToAdd)Returns a copy of this instant with the specified duration in milliseconds added.InstantInstant. plusNanos(long nanosToAdd)Returns a copy of this instant with the specified duration in nanoseconds added.InstantInstant. plusSeconds(long secondsToAdd)Returns a copy of this instant with the specified duration in seconds added.static InstantDateTimeUtils. toInstant(Timestamp sqlTimestamp)Converts ajava.sql.Timestampto anInstant.static InstantDateTimeUtils. toInstant(Calendar calendar)Converts aCalendarto anInstant.static InstantDateTimeUtils. toInstant(Date utilDate)Converts ajava.util.Dateto anInstant.InstantOffsetDateTime. toInstant()Converts this date-time to anInstant.InstantInstant. truncatedTo(TemporalUnit unit)Returns a copy of thisInstanttruncated to the specified unit.InstantInstant. with(TemporalAdjuster adjuster)Returns an adjusted copy of this instant.InstantInstant. with(TemporalField field, long newValue)Returns a copy of this instant with the specified field set to a new value.Methods in org.threeten.bp with parameters of type Instant Modifier and Type Method Description intInstant. compareTo(Instant otherInstant)Compares this instant to the specified instant.static ClockClock. fixed(Instant fixedInstant, ZoneId zone)Obtains a clock that always returns the same instant.booleanInstant. isAfter(Instant otherInstant)Checks if this instant is after the specified instant.booleanInstant. isBefore(Instant otherInstant)Checks if this instant is before the specified instant.static LocalDateTimeLocalDateTime. ofInstant(Instant instant, ZoneId zone)Obtains an instance ofLocalDateTimefrom anInstantand zone ID.static OffsetDateTimeOffsetDateTime. ofInstant(Instant instant, ZoneId zone)Obtains an instance ofOffsetDateTimefrom anInstantand zone ID.static OffsetTimeOffsetTime. ofInstant(Instant instant, ZoneId zone)Obtains an instance ofOffsetTimefrom anInstantand zone ID.static ZonedDateTimeZonedDateTime. ofInstant(Instant instant, ZoneId zone)Obtains an instance ofZonedDateTimefrom anInstant.static DateDateTimeUtils. toDate(Instant instant)Converts anInstantto ajava.util.Date.static TimestampDateTimeUtils. toSqlTimestamp(Instant instant)Converts anInstantto ajava.sql.Timestamp. -
Uses of Instant in org.threeten.bp.chrono
Methods in org.threeten.bp.chrono that return Instant Modifier and Type Method Description InstantChronoLocalDateTime. toInstant(ZoneOffset offset)Converts this date-time to anInstant.InstantChronoZonedDateTime. toInstant()Converts this date-time to anInstant.Methods in org.threeten.bp.chrono with parameters of type Instant Modifier and Type Method Description ChronoZonedDateTime<?>Chronology. zonedDateTime(Instant instant, ZoneId zone)Obtains a zoned date-time in this chronology from anInstant.ChronoZonedDateTime<HijrahDate>HijrahChronology. zonedDateTime(Instant instant, ZoneId zone)ZonedDateTimeIsoChronology. zonedDateTime(Instant instant, ZoneId zone)Obtains an ISO zoned date-time from an instant.ChronoZonedDateTime<JapaneseDate>JapaneseChronology. zonedDateTime(Instant instant, ZoneId zone)ChronoZonedDateTime<MinguoDate>MinguoChronology. zonedDateTime(Instant instant, ZoneId zone)ChronoZonedDateTime<ThaiBuddhistDate>ThaiBuddhistChronology. zonedDateTime(Instant instant, ZoneId zone) -
Uses of Instant in org.threeten.bp.zone
Methods in org.threeten.bp.zone that return Instant Modifier and Type Method Description InstantZoneOffsetTransition. getInstant()Gets the transition instant.Methods in org.threeten.bp.zone with parameters of type Instant Modifier and Type Method Description abstract DurationZoneRules. getDaylightSavings(Instant instant)Gets the amount of daylight savings in use for the specified instant in this zone.abstract ZoneOffsetZoneRules. getOffset(Instant instant)Gets the offset applicable at the specified instant in these rules.abstract ZoneOffsetZoneRules. getStandardOffset(Instant instant)Gets the standard offset for the specified instant in this zone.abstract booleanZoneRules. isDaylightSavings(Instant instant)Checks if the specified instant is in daylight savings.abstract ZoneOffsetTransitionZoneRules. nextTransition(Instant instant)Gets the next transition after the specified instant.abstract ZoneOffsetTransitionZoneRules. previousTransition(Instant instant)Gets the previous transition before the specified instant.
-