Java 9 had some improvement in java.time.Clock.systemUTC().instant()
(JDK-8068730).
Instant.now() in Java 8 is different from Instant.now() in Java 11
· One min read
Java 9 had some improvement in java.time.Clock.systemUTC().instant()
(JDK-8068730).
(If you want to get straight to the solution, just click this.)
If you do Functional Programming in Scala, you probably write lots of Algebraic Data Types (ADT). If you're not sure what it is or why we use or what benefits it offers, here is a good blog post written by Charles O'farrell about The Expression Tradeoff which can give you a good idea of why we use ADT. I strongly recommend reading it.