Combines this time with a date to create an OffsetDateTime.
Formats this time using the specified formatter.
Gets the value of the specified field from this time as an int.
Gets the hour-of-day field.
Gets the value of the specified field from this time as a long.
Gets the minute-of-hour field.
Gets the nano-of-second field.
Gets the zone offset, such as '+01:00'.
Gets the second-of-minute field.
Checks if the instant of this OffsetTime is after that of the specified time applying both times to a common date.
Checks if the instant of this OffsetTime is before that of the specified time applying both times to a common date.
Checks if the instant of this OffsetTime is equal to that of the specified time applying both times to a common date.
Returns a copy of this time with the specified amount subtracted.
Returns a copy of this time with the specified amount subtracted.
Returns a copy of this OffsetTime with the specified number of hours subtracted.
Returns a copy of this OffsetTime with the specified number of minutes subtracted.
Returns a copy of this OffsetTime with the specified number of nanoseconds subtracted.
Returns a copy of this OffsetTime with the specified number of seconds subtracted.
Returns a copy of this time with the specified amount added.
Returns a copy of this time with the specified amount added.
Returns a copy of this OffsetTime with the specified number of hours added.
Returns a copy of this OffsetTime with the specified number of minutes added.
Returns a copy of this OffsetTime with the specified number of nanoseconds added.
Returns a copy of this OffsetTime with the specified number of seconds added.
Queries this time using the specified query.
Gets the range of valid values for the specified field.
Converts this OffsetTime to the number of seconds since the epoch of 1970-01-01T00:00:00Z.
Gets the LocalTime part of this date-time.
Static
fromObtains an instance of OffsetTime from a temporal object.
Static
nowObtains the current date-time from the system clock in the default time-zone.
Static
ofObtains an instance of OffsetTime from an hour, minute, second and nanosecond.
Obtains an instance of OffsetTime from a local time and an offset.
Static
ofObtains an instance of OffsetTime from an Instant and zone ID.
Static
parseObtains an instance of OffsetTime from a text string such as 10:15:30+01:00.
Optional
formatter: DateTimeFormatterStatic
truncatedReturns a copy of this OffsetTime with the time truncated.
Static
untilCalculates the amount of time until another time in terms of the specified unit.
Static
withReturns a copy of this time with the specified field set to a new value.
Static
withReturns a copy of this OffsetTime with the hour-of-day altered.
Static
withReturns a copy of this OffsetTime with the minute-of-hour altered.
Static
withReturns a copy of this OffsetTime with the nano-of-second altered.
Static
withReturns a copy of this OffsetTime with the specified offset ensuring that the result is at the same instant on an implied day.
Static
withReturns a copy of this OffsetTime with the specified offset ensuring that the result has the same local time.
Static
withReturns a copy of this OffsetTime with the second-of-minute altered.
A time with an offset from UTC/Greenwich in the ISO-8601 calendar system, such as 10:15:30+01:00.
See java.time.OffsetTime for full documentation