Returns a copy of this duration with the specified nano-of-second.
!(p)
This returns a duration with the specified nano-of-second, retaining the
seconds part of this duration.
!(p)
This instance is immutable and unaffected by this method call.
@param nanoOfSecond the nano-of-second to represent, from 0 to 999,999,999
@return a {@code Duration} based on this period with the requested nano-of-second, not null
@throws DateTimeException if the nano-of-second is invalid
Returns a copy of this duration with the specified nano-of-second. !(p) This returns a duration with the specified nano-of-second, retaining the seconds part of this duration. !(p) This instance is immutable and unaffected by this method call.
@param nanoOfSecond the nano-of-second to represent, from 0 to 999,999,999 @return a {@code Duration} based on this period with the requested nano-of-second, not null @throws DateTimeException if the nano-of-second is invalid