List of usage examples for java.time Duration plusNanos
public Duration plusNanos(long nanosToAdd)
From source file:Main.java
public static void main(String[] args) { Duration duration = Duration.between(LocalTime.MIDNIGHT, LocalTime.NOON); duration = duration.plusNanos(1000); System.out.println(duration.getNano()); }