OffsetTime.withMinute

Returns a copy of this {@code OffsetTime} with the minute-of-hour altered. !(p) The offset does not affect the calculation and will be the same _in the result. !(p) This instance is immutable and unaffected by this method call.

@param minute the minute-of-hour to set _in the result, from 0 to 59 @return an {@code OffsetTime} based on this time with the requested minute, not null @throws DateTimeException if the minute value is invalid

class OffsetTime
withMinute
(
int minute
)

Meta