Java - Time (LocalDate)

> Procedural Languages > Java > Java - Date / Time

Table of Contents

1 - About

Java.time package supplants the old java.util.Date/Calendar classes.

Example:

// Build an instant, generally what we want
Instant.parse("2016-05-02T14:53:27Z")

Let op: java/util/concurrent/TimeUnit. A TimeUnit does not maintain time information (just for thread concurrency) TimeUnit.SECONDS.sleep(100);

Advertising