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
Fields in javax.time.calendar with type parameters of type OffsetTimeModifier and TypeFieldDescriptionprivate static final CalendricalRule
<OffsetTime> OffsetTime.Rule.INSTANCE
Methods 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 OffsetTime
OffsetTime.Rule.derive
(Calendrical calendrical) OffsetTime.minus
(PeriodProvider periodProvider) Returns a copy of thisOffsetTime
with the specified period subtracted.Returns a copy of thisOffsetTime
with the specified duration subtracted.OffsetTime.minusHours
(long hours) Returns a copy of thisOffsetTime
with the specified period in hours subtracted.OffsetTime.minusMinutes
(long minutes) Returns a copy of thisOffsetTime
with the specified period in minutes subtracted.OffsetTime.minusNanos
(long nanos) Returns a copy of thisOffsetTime
with the specified period in nanoseconds subtracted.OffsetTime.minusSeconds
(long seconds) Returns a copy of thisOffsetTime
with the specified period in seconds subtracted.static OffsetTime
OffsetTime.now()
Obtains the current time from the system clock in the default time-zone.static OffsetTime
Obtains the current time from the specified clock.static OffsetTime
OffsetTime.of
(int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond, ZoneOffset offset) Obtains an instance ofOffsetTime
from an hour, minute, second and nanosecond.static OffsetTime
OffsetTime.of
(int hourOfDay, int minuteOfHour, int secondOfMinute, ZoneOffset offset) Obtains an instance ofOffsetTime
from an hour, minute and second.static OffsetTime
OffsetTime.of
(int hourOfDay, int minuteOfHour, ZoneOffset offset) Obtains an instance ofOffsetTime
from an hour and minute.static OffsetTime
OffsetTime.of
(TimeProvider timeProvider, ZoneOffset offset) Obtains an instance ofOffsetTime
from 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 OffsetTime
OffsetTime.ofInstant
(InstantProvider instantProvider, ZoneOffset offset) Obtains an instance ofOffsetTime
from anInstantProvider
.static OffsetTime
Obtains an instance ofOffsetTime
from a text string such as10:15:30+01:00
.static OffsetTime
OffsetTime.parse
(String text, DateTimeFormatter formatter) Obtains an instance ofOffsetTime
from a text string using a specific formatter.OffsetTime.plus
(PeriodProvider periodProvider) Returns a copy of thisOffsetTime
with the specified period added.Returns a copy of thisOffsetTime
with the specified duration added.OffsetTime.plusHours
(long hours) Returns a copy of thisOffsetTime
with the specified period in hours added.OffsetTime.plusMinutes
(long minutes) Returns a copy of thisOffsetTime
with the specified period in minutes added.OffsetTime.plusNanos
(long nanos) Returns a copy of thisOffsetTime
with the specified period in nanoseconds added.OffsetTime.plusSeconds
(long seconds) Returns a copy of thisOffsetTime
with the specified period in seconds added.OffsetDateTime.toOffsetTime()
Converts this date-time to anOffsetTime
.ZonedDateTime.toOffsetTime()
Converts thisZonedDateTime
to aOffsetTime
.OffsetTime.with
(TimeAdjuster adjuster) Returns a copy of thisOffsetTime
with the time altered using the adjuster.OffsetTime.withHourOfDay
(int hourOfDay) Returns a copy of thisOffsetTime
with the hour-of-day value altered.OffsetTime.withMinuteOfHour
(int minuteOfHour) Returns a copy of thisOffsetTime
with the minute-of-hour value altered.OffsetTime.withNanoOfSecond
(int nanoOfSecond) Returns a copy of thisOffsetTime
with the nano-of-second value altered.OffsetTime.withOffsetSameInstant
(ZoneOffset offset) Returns a copy of thisOffsetTime
with the specified offset ensuring that the result is at the same instant on an implied day.OffsetTime.withOffsetSameLocal
(ZoneOffset offset) Returns a copy of thisOffsetTime
with the specified offset ensuring that the result has the same local time.OffsetTime.withSecondOfMinute
(int secondOfMinute) Returns a copy of thisOffsetTime
with the second-of-minute value altered.OffsetTime.withTime
(TimeProvider timeProvider) Returns a copy of thisOffsetTime
with 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.int
OffsetTime.compareTo
(OffsetTime other) Compares thisOffsetTime
to another time based on the UTC equivalent times then local time.boolean
OffsetTime.equalInstant
(OffsetTime other) Checks if the instant of thisOffsetTime
is equal to that of the specified time applying both times to a common date.boolean
OffsetTime.isAfter
(OffsetTime other) Checks if the instant of thisOffsetTime
is after that of the specified time applying both times to a common date.boolean
OffsetTime.isBefore
(OffsetTime other) Checks if the instant of thisOffsetTime
is before that of the specified time applying both times to a common date.static OffsetDateTime
OffsetDateTime.of
(DateProvider dateProvider, OffsetTime offsetTime) Obtains an instance ofOffsetDateTime
from aDateProvider
andOffsetTime
.