Instant

An Instant is a single, exact point in time (or on the timeline, you'll see the Javadoc say). This class offers arithmetic methods, much like Period and Duration. Parsing is also an option, with the string being an ISO-8601 instant format such as 1977-02-16T08:15:30Z.

Get Java 9: Building Robust Modular Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.