Instant
suggest changeRepresents 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
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents