title: Convert Instant to microseconds from Epoch time
body: <p>In <code>Instant</code> there are methods:</p>
  
  <ul>
  <li><a href="https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html#toEpochMilli--" rel="noreferrer"><code>toEpochMilli</code></a> which <em>converts this instant to the number of milliseconds from the epoch of 1970-01-01T00:00:00Z</em></li>
  <li><a href="https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html#getEpochSecond--" rel="noreferrer"><code>getEpochSecond</code></a> which <em>gets the number of seconds from the Java epoch of 1970-01-01T00:00:00Z</em>.</li>
  </ul>
  
  <p>Both of these methods lose precision, e.g. in <code>toEpochMilli</code> JavaDoc I see:</p>
  
  <blockquote>
    <p>If this instant has greater than millisecond precision, then the conversion
     drop any excess precision information as though the amount in nanoseconds
     was subject to integer division by one million.</p>
  </blockquote>
  
  <p>I don't see corresponding methods to obtain more precise timestamp. <strong>How can I get number of micros or nanos from epoch in Java 8?</strong></p>