Returns a copy of this {@code OffsetDateTime} with the hour-of-day altered.
!(p)
The date and offset do not affect the calculation and will be the same _in the result.
!(p)
This instance is immutable and unaffected by this method call.
@param hour the hour-of-day to set _in the result, from 0 to 23
@return an {@code OffsetDateTime} based on this date-time with the requested hour, not null
@throws DateTimeException if the hour value is invalid
Returns a copy of this {@code OffsetDateTime} with the hour-of-day altered. !(p) The date and offset do not affect the calculation and will be the same _in the result. !(p) This instance is immutable and unaffected by this method call.
@param hour the hour-of-day to set _in the result, from 0 to 23 @return an {@code OffsetDateTime} based on this date-time with the requested hour, not null @throws DateTimeException if the hour value is invalid