Java Date Time Java Java API
java.time.ZonedDateTime
public int getNano()
Returns the nano-of-second field from this ZonedDateTime instance.
package com.logicbig.example.zoneddatetime;import java.time.ZonedDateTime;public class GetNanoExample { public static void main(String... args) { ZonedDateTime d = ZonedDateTime.now(); int nano = d.getNano(); System.out.println(nano); }}
417000000