About Question enthuware.ocpjp.v8.2.1748 :
Posted: Wed Dec 28, 2016 12:39 pm
Why is the answer 9:00 & 10:00?
I don't see the Period.ofDays() adding 24 hours instead of 23?
In the US/Eastern timezone it will be 9:00 am in the morning 1 day later, since there is a shift because of DST at 2 AM in the morning on the 1st of november.
So why is plus'ing a Duration.ofDays(1) different from plus'ing a Period.ofDays(1)?
I don't see the Period.ofDays() adding 24 hours instead of 23?
In the US/Eastern timezone it will be 9:00 am in the morning 1 day later, since there is a shift because of DST at 2 AM in the morning on the 1st of november.
So why is plus'ing a Duration.ofDays(1) different from plus'ing a Period.ofDays(1)?