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