September 2019
Intermediate to advanced
816 pages
18h 47m
English
These common conversions can be accomplished as in the following examples:
// 2019-02-24T15:27:13.990103700LocalDateTime ldt = LocalDateTime.ofInstant( Instant.now(), ZoneOffset.UTC);// 2019-02-24T17:27:14.013105ZInstant instantLDT = LocalDateTime.now().toInstant(ZoneOffset.UTC);
// 2019-02-24T16:34:36.138393100+01:00[Europe/Paris]ZonedDateTime zdt = Instant.now().atZone(ZoneId.of("Europe/Paris"));// 2019-02-24T16:34:36.150393800ZInstant instantZDT ...