Uses of Class
org.threeten.bp.OffsetTime
Packages that use OffsetTime
-
Uses of OffsetTime in org.threeten.bp
Fields in org.threeten.bp declared as OffsetTimeModifier and TypeFieldDescriptionstatic final OffsetTimeOffsetTime.MAXThe maximum supportedOffsetTime, '23:59:59.999999999-18:00'.static final OffsetTimeOffsetTime.MINThe minimum supportedOffsetTime, '00:00:00+18:00'.Fields in org.threeten.bp with type parameters of type OffsetTimeModifier and TypeFieldDescriptionstatic final TemporalQuery<OffsetTime>OffsetTime.FROMSimulate JDK 8 method reference OffsetTime::from.Methods in org.threeten.bp that return OffsetTimeModifier and TypeMethodDescriptionLocalTime.atOffset(ZoneOffset offset) Combines this time with an offset to create anOffsetTime.static OffsetTimeOffsetTime.from(TemporalAccessor temporal) Obtains an instance ofOffsetTimefrom a temporal object.OffsetTime.minus(long amountToSubtract, TemporalUnit unit) Returns a copy of this time with the specified period subtracted.OffsetTime.minus(TemporalAmount amount) Returns a copy of this time with the specified period subtracted.OffsetTime.minusHours(long hours) Returns a copy of thisOffsetTimewith the specified period in hours subtracted.OffsetTime.minusMinutes(long minutes) Returns a copy of thisOffsetTimewith the specified period in minutes subtracted.OffsetTime.minusNanos(long nanos) Returns a copy of thisOffsetTimewith the specified period in nanoseconds subtracted.OffsetTime.minusSeconds(long seconds) Returns a copy of thisOffsetTimewith the specified period in seconds subtracted.static OffsetTimeOffsetTime.now()Obtains the current time from the system clock in the default time-zone.static OffsetTimeObtains the current time from the specified clock.static OffsetTimeObtains the current time from the system clock in the specified time-zone.static OffsetTimeOffsetTime.of(int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset) Obtains an instance ofOffsetTimefrom an hour, minute, second and nanosecond.static OffsetTimeOffsetTime.of(LocalTime time, ZoneOffset offset) Obtains an instance ofOffsetTimefrom a local time and an offset.static OffsetTimeObtains an instance ofOffsetTimefrom anInstantand zone ID.static OffsetTimeOffsetTime.parse(CharSequence text) Obtains an instance ofOffsetTimefrom a text string such as10:15:30+01:00.static OffsetTimeOffsetTime.parse(CharSequence text, DateTimeFormatter formatter) Obtains an instance ofOffsetTimefrom a text string using a specific formatter.OffsetTime.plus(long amountToAdd, TemporalUnit unit) Returns a copy of this time with the specified period added.OffsetTime.plus(TemporalAmount amount) Returns a copy of this date with the specified period added.OffsetTime.plusHours(long hours) Returns a copy of thisOffsetTimewith the specified period in hours added.OffsetTime.plusMinutes(long minutes) Returns a copy of thisOffsetTimewith the specified period in minutes added.OffsetTime.plusNanos(long nanos) Returns a copy of thisOffsetTimewith the specified period in nanoseconds added.OffsetTime.plusSeconds(long seconds) Returns a copy of thisOffsetTimewith the specified period in seconds added.OffsetDateTime.toOffsetTime()Converts this date-time to anOffsetTime.OffsetTime.truncatedTo(TemporalUnit unit) Returns a copy of thisOffsetTimewith the time truncated.OffsetTime.with(TemporalAdjuster adjuster) Returns an adjusted copy of this time.OffsetTime.with(TemporalField field, long newValue) Returns a copy of this time with the specified field set to a new value.OffsetTime.withHour(int hour) Returns a copy of thisOffsetTimewith the hour-of-day value altered.OffsetTime.withMinute(int minute) Returns a copy of thisOffsetTimewith the minute-of-hour value altered.OffsetTime.withNano(int nanoOfSecond) Returns a copy of thisOffsetTimewith the nano-of-second value altered.OffsetTime.withOffsetSameInstant(ZoneOffset offset) Returns a copy of thisOffsetTimewith the specified offset ensuring that the result is at the same instant on an implied day.OffsetTime.withOffsetSameLocal(ZoneOffset offset) Returns a copy of thisOffsetTimewith the specified offset ensuring that the result has the same local time.OffsetTime.withSecond(int second) Returns a copy of thisOffsetTimewith the second-of-minute value altered.Methods in org.threeten.bp with parameters of type OffsetTimeModifier and TypeMethodDescriptionLocalDate.atTime(OffsetTime time) Combines this date with an offset time to create anOffsetDateTime.intOffsetTime.compareTo(OffsetTime other) Compares thisOffsetTimeto another time.booleanOffsetTime.isAfter(OffsetTime other) Checks if the instant of thisOffsetTimeis after that of the specified time applying both times to a common date.booleanOffsetTime.isBefore(OffsetTime other) Checks if the instant of thisOffsetTimeis before that of the specified time applying both times to a common date.booleanOffsetTime.isEqual(OffsetTime other) Checks if the instant of thisOffsetTimeis equal to that of the specified time applying both times to a common date.