public LocalDateTime withNano (int nanoOfSecond)

Returns a copy of this LocalDateTime with the nano-of-second altered.

This instance is immutable and unaffected by this method call.

Parameters:
nanoOfSecond    the nano-of-second to set in the result, from 0 to 999,999,999

Returns:  a LocalDateTime based on this date-time with the requested nanosecond, not null

Exceptions:
DateTimeException    if the nano value is invalid