Returns a copy of this {@code OffsetDateTime} with the month-of-year altered.
!(p)
The time and offset do not affect the calculation and will be the same _in the result.
If the day-of-month is invalid for the year, it will be changed to the last valid day of the month.
!(p)
This instance is immutable and unaffected by this method call.
@param month the month-of-year to set _in the result, from 1 (January) to 12 (December)
@return an {@code OffsetDateTime} based on this date-time with the requested month, not null
@throws DateTimeException if the month-of-year value is invalid
Returns a copy of this {@code OffsetDateTime} with the month-of-year altered. !(p) The time and offset do not affect the calculation and will be the same _in the result. If the day-of-month is invalid for the year, it will be changed to the last valid day of the month. !(p) This instance is immutable and unaffected by this method call.
@param month the month-of-year to set _in the result, from 1 (January) to 12 (December) @return an {@code OffsetDateTime} based on this date-time with the requested month, not null @throws DateTimeException if the month-of-year value is invalid