Operations on dates and times

suggest change
LocalDate tomorrow = LocalDate.now().plusDays(1);
LocalDateTime anHourFromNow = LocalDateTime.now().plusHours(1);
Long daysBetween = java.time.temporal.ChronoUnit.DAYS.between(LocalDate.now(), LocalDate.now().plusDays(3)); // 3
Duration duration = Duration.between(Instant.now(), ZonedDateTime.parse("2016-07-27T07:00:00+01:00[Europe/Stockholm]"))

Feedback about page:

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


Dates and Time using java.time:
*Operations on dates and times

Table Of Contents
96XJC
100Dates and Time using java.time
122JNDI
150JMX