Java Date Time Java Java API
java.time.Instant
public int getNano()
Returns the corresponding number of nanoseconds from the start of the second of this Instant object.
package com.logicbig.example.instant;import java.time.Instant;public class GetNanoExample { public static void main(String... args) { Instant i = Instant.now(); System.out.println(i); int n = i.getNano(); System.out.println(n); }}
2025-10-29T10:29:11.081Z81000000