Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

hwo to obtain the DST start and end times

835713Jan 31 2011 — edited Feb 3 2011
Hi all -

Is there a way in java to obtain the day light saving start and end times for a certain year for US?

I know that US DST changed in the year 2007 so, I am wondering if I can get correct DST start and end times for certain period before 2007 and after 2007.

I read online that JDK preserves historical DST rules so I am hoping this is possible but do not know how.

Thanks,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 3 2011
Added on Jan 31 2011
50 comments
1,424 views