In the Joda-Time library, the Period
class represents a period of time including years, months, days, hours, minutes, etc.
However, in Java Time API a Period
class can only include a number of years, months and days.
Why can't I include a time in Java's Period
object, and what is then the best way to express something like "2 days and 1 hour"?
I am aware of the Duration
class, but it doesn't allow to specify "2 days and 1 hour" ; a duration of 49 hours may be different than "2 days and 1 hour" (DST, ...).