Returns a copy of this {@code LocalDateTime} with the day-of-year altered.
!(p)
If the resulting date-time is invalid, an exception is thrown.
!(p)
This instance is immutable and unaffected by this method call.
@param dayOfYear the day-of-year to set _in the result, from 1 to 365-366
@return a {@code LocalDateTime} based on this date with the requested day, not null
@throws DateTimeException if the day-of-year value is invalid,
or if the day-of-year is invalid for the year
Returns a copy of this {@code LocalDateTime} with the day-of-year altered. !(p) If the resulting date-time is invalid, an exception is thrown. !(p) This instance is immutable and unaffected by this method call.
@param dayOfYear the day-of-year to set _in the result, from 1 to 365-366 @return a {@code LocalDateTime} based on this date with the requested day, not null @throws DateTimeException if the day-of-year value is invalid, or if the day-of-year is invalid for the year