public static long epochNanos ( ) { final Instant now = Instant . now ( ) ; final long seconds = now . getEpochSecond ( ) ; final long nanosFromSecond = now . getNano ( ) ; return ( seconds * 1_000_000_000 ) + nanosFromSecond ; }
The number of nanoseconds since the 1 Jan 1970 UTC .