format(DateTimeFormatter formatter) | Formats this time using the specified formatter. |
of(LocalTime time, ZoneOffset offset) | Obtains an instance of OffsetTime from a local time and an offset. |
range(TemporalField field) | Gets the range of valid values for the specified field. |
toLocalTime() | Gets the LocalTime part of this date-time. |
adjustInto(Temporal temporal) | Adjust the specified temporal object to have the same offset and time as this object. |
atDate(LocalDate date) | Combine this time with a date to create an OffsetDateTime. |
compareTo(OffsetTime other) | Compare this OffsetTime to another time. |
equals(Object obj) | Check if this time is equal to another time. |
format(DateTimeFormatter formatter) | Formats this time using the specified formatter. |
from(TemporalAccessor temporal) | Obtains an instance of OffsetTime from a temporal object. |
get(TemporalField field) | Gets the value of the specified field from this time as an int. |
getHour() | Gets the hour-of-day field. |
getLong(TemporalField field) | Gets the value of the specified field from this time as a long. |
getMinute() | Gets the minute-of-hour field. |
getNano() | Gets the nano-of-second field. |
getOffset() | Gets the zone offset, such as '+01:00'. |
getSecond() | Gets the second-in-minute field. |
hashCode() | A hash code for this time. |
isAfter(OffsetTime other) | Check if the instant of this OffsetTime is after that of the specified time applying both times to a common date. |
isBefore(OffsetTime other) | Check if the instant of this OffsetTime is before that of the specified time, applying both times to a common date. |
isEqual(OffsetTime other) | Check if the instant of this OffsetTime is equal to that of the specified time, applying both times to a common date. |
isSupported(TemporalField field) | Check if the specified field is supported. |
isSupported(TemporalUnit unit) | Check if the specified unit is supported. |
minus(long amountToSubtract, TemporalUnit unit) | Return a copy of this time with the specified amount subtracted. |
minus(TemporalAmount amountToSubtract) | Return a copy of this time with the specified amount subtracted. |
minusHours(long hours) | Return a copy of this OffsetTime with the specified number of hours subtracted. |
minusMinutes(long minutes) | Return a copy of this OffsetTime with the specified number of minutes subtracted. |
minusNanos(long nanos) | Return a copy of this OffsetTime with the specified number of nanoseconds subtracted. |
minusSeconds(long seconds) | Return a copy of this OffsetTime with the specified number of seconds subtracted. |
now() | Obtains the current time from the system clock in the default time-zone. |
now(Clock clock) | Obtains the current time from the specified clock. |
now(ZoneId zone) | Obtains the current time from the system clock in the specified time-zone. |
of(int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset) | Obtains an instance of OffsetTime from an hour, minute, second and nanosecond. |
of(LocalTime time, ZoneOffset offset) | Obtains an instance of OffsetTime from a local time and an offset. |
ofInstant(Instant instant, ZoneId zone) | Obtains an instance of OffsetTime from an Instant and zone ID. |
parse(CharSequence text) | Obtains an instance of OffsetTime from a text string such as 10:15:30+01:00. |
parse(CharSequence text, DateTimeFormatter formatter) | Obtains an instance of OffsetTime from a text string using a specific formatter. |
plus(long amountToAdd, TemporalUnit unit) | Return a copy of this time with the specified amount added. |
plus(TemporalAmount amountToAdd) | Return a copy of this time with the specified amount added. |
plusHours(long hours) | Return a copy of this OffsetTime with the specified number of hours added. |
plusMinutes(long minutes) | Return a copy of this OffsetTime with the specified number of minutes added. |
plusNanos(long nanos) | Return a copy of this OffsetTime with the specified number of nanoseconds added. |
plusSeconds(long seconds) | Return a copy of this OffsetTime with the specified number of seconds added. |
query(TemporalQuery<R> query) | Queries this time using the specified query. |
range(TemporalField field) | Gets the range of valid values for the specified field. |
toLocalTime() | Gets the LocalTime part of this date-time. |
toString() | Outputs this time as a string, such as 10:15:30+01:00. |
truncatedTo(TemporalUnit unit) | Return a copy of this OffsetTime with the time truncated. |
until(Temporal endExclusive, TemporalUnit unit) | Calculates the amount of time until another time in terms of the specified unit. |
with(TemporalAdjuster adjuster) | Return an adjusted copy of this time. |
with(TemporalField field, long newValue) | Return a copy of this time with the specified field set to a new value. |
withHour(int hour) | Return a copy of this OffsetTime with the hour-of-day altered. |
withMinute(int minute) | Return a copy of this OffsetTime with the minute-of-hour altered. |
withNano(int nanoOfSecond) | Return a copy of this OffsetTime with the nano-of-second altered. |
withOffsetSameInstant(ZoneOffset offset) | Return a copy of this OffsetTime with the specified offset ensuring that the result is at the same instant on an implied day. |
withOffsetSameLocal(ZoneOffset offset) | Return a copy of this OffsetTime with the specified offset ensuring that the result is the same local time. |
withSecond(int second) | Return a copy of this OffsetTime with the second-minute altered. |