Linux time man page specifies that the clock time structure contains nanoseconds since epoch. Is this exposed in Java in any api ? In other words , why is there no JDK api like System.currentNanos() that returns nanos since Epoch ?
Note : I know System.nanoTime() returns nanos , but its NOT with reference to Epoch time , and cannot be used across VMs for time comparison.
Edit : I am not asking how to format a date value - I am asking how to query the system for nanotime SINCE epoch ?