Instant

suggest change

Represents a moment on the timeline, stored as seconds and nanoseconds from 1970-01-01T00:00:00Z.

Instant now = Instant.now();
Instant epoch1 = Instant.ofEpochMilli(0);
Instant epoch2 = Instant.parse("1970-01-01T00:00:00Z");
java.time.temporal.ChronoUnit.MICROS.between(epoch1, epoch2); // 0

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents