public static long toMicros ( Instant instant ) { return TimeUnit . SECONDS . toMicros ( instant . getEpochSecond ( ) ) + TimeUnit . NANOSECONDS . toMicros ( instant . getNano ( ) ) ; }
This method returns the timestamp associated with the supplied instant in microseconds .