Uses of Class
javax.time.calendar.OffsetTime
Packages that use OffsetTime
Package
Description
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
-
Uses of OffsetTime in javax.time.calendar
Subclasses with type arguments of type OffsetTime in javax.time.calendarModifier and TypeClassDescription(package private) static final classRule implementation.Classes in javax.time.calendar that implement interfaces with type arguments of type OffsetTimeModifier and TypeClassDescriptionfinal classA time with a zone offset from UTC in the ISO-8601 calendar system, such as10:15:30+01:00.Fields in javax.time.calendar with type parameters of type OffsetTimeModifier and TypeFieldDescriptionprivate static final CalendricalRule<OffsetTime> OffsetTime.Rule.INSTANCEMethods in javax.time.calendar that return OffsetTimeModifier and TypeMethodDescriptionLocalTime.atOffset(ZoneOffset offset) Returns an offset time formed from this time and the specified offset.protected OffsetTimeOffsetTime.Rule.derive(Calendrical calendrical) OffsetTime.minus(PeriodProvider periodProvider) Returns a copy of thisOffsetTimewith the specified period subtracted.Returns a copy of thisOffsetTimewith the specified duration 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 OffsetTimeOffsetTime.of(int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond, ZoneOffset offset) Obtains an instance ofOffsetTimefrom an hour, minute, second and nanosecond.static OffsetTimeOffsetTime.of(int hourOfDay, int minuteOfHour, int secondOfMinute, ZoneOffset offset) Obtains an instance ofOffsetTimefrom an hour, minute and second.static OffsetTimeOffsetTime.of(int hourOfDay, int minuteOfHour, ZoneOffset offset) Obtains an instance ofOffsetTimefrom an hour and minute.static OffsetTimeOffsetTime.of(TimeProvider timeProvider, ZoneOffset offset) Obtains an instance ofOffsetTimefrom a time provider.Clock.offsetTime()Gets the current offset time with maximum resolution of up to nanoseconds.Clock.offsetTimeToMinute()Gets the current offset time with a resolution of minutes.Clock.offsetTimeToSecond()Gets the current offset time with a resolution of seconds.static OffsetTimeOffsetTime.ofInstant(InstantProvider instantProvider, ZoneOffset offset) Obtains an instance ofOffsetTimefrom anInstantProvider.static OffsetTimeObtains an instance ofOffsetTimefrom a text string such as10:15:30+01:00.static OffsetTimeOffsetTime.parse(String text, DateTimeFormatter formatter) Obtains an instance ofOffsetTimefrom a text string using a specific formatter.OffsetTime.plus(PeriodProvider periodProvider) Returns a copy of thisOffsetTimewith the specified period added.Returns a copy of thisOffsetTimewith the specified duration 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.ZonedDateTime.toOffsetTime()Converts thisZonedDateTimeto aOffsetTime.OffsetTime.with(TimeAdjuster adjuster) Returns a copy of thisOffsetTimewith the time altered using the adjuster.OffsetTime.withHourOfDay(int hourOfDay) Returns a copy of thisOffsetTimewith the hour-of-day value altered.OffsetTime.withMinuteOfHour(int minuteOfHour) Returns a copy of thisOffsetTimewith the minute-of-hour value altered.OffsetTime.withNanoOfSecond(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.withSecondOfMinute(int secondOfMinute) Returns a copy of thisOffsetTimewith the second-of-minute value altered.OffsetTime.withTime(TimeProvider timeProvider) Returns a copy of thisOffsetTimewith the time altered and the offset retained.Methods in javax.time.calendar that return types with arguments of type OffsetTimeModifier and TypeMethodDescriptionstatic CalendricalRule<OffsetTime> OffsetTime.rule()Gets the rule forOffsetTime.Methods in javax.time.calendar with parameters of type OffsetTimeModifier and TypeMethodDescriptionLocalDate.atTime(OffsetTime offsetTime) Returns a local date-time formed from this date at the specified offset time.OffsetDate.atTime(OffsetTime time) Returns an offset date-time formed from this date at the specified time.intOffsetTime.compareTo(OffsetTime other) Compares thisOffsetTimeto another time based on the UTC equivalent times then local time.booleanOffsetTime.equalInstant(OffsetTime other) Checks if the instant of thisOffsetTimeis equal to that of the specified time applying both times to a common date.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.static OffsetDateTimeOffsetDateTime.of(DateProvider dateProvider, OffsetTime offsetTime) Obtains an instance ofOffsetDateTimefrom aDateProviderandOffsetTime.