Period, Duration and Instant in Java

Period, Duration and Instant are three different classes introduced since Java 8 to help us deal better with time. Period measures the time with days granularity. In other words, there are no hours, minutes, nor seconds. Example: There are also methods ofDays, ofMonths and so on. It’s noteworthy to mention that you cannot convert automatically… read more »