Returns a copy of this {@code OffsetDateTime} with the nano-of-second 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 nanoOfSecond the nano-of-second to set _in the result, from 0 to 999,999,999
@return an {@code OffsetDateTime} based on this date-time with the requested nanosecond, not null
@throws DateTimeException if the nano value is invalid
Returns a copy of this {@code OffsetDateTime} with the nano-of-second 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 nanoOfSecond the nano-of-second to set _in the result, from 0 to 999,999,999 @return an {@code OffsetDateTime} based on this date-time with the requested nanosecond, not null @throws DateTimeException if the nano value is invalid