LocalTime.withNano

Returns a copy of this {@code LocalTime} with the nano-of-second altered. !(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 a {@code LocalTime} based on this time with the requested nanosecond, not null @throws DateTimeException if the nanos value is invalid

class LocalTime
withNano

Meta