How to get Daylight Saving Time (DST) transition dates?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Steve_Roffler
Posted On:   Thursday, June 23, 2005 06:34 PM

I have a SimpleTimeZone instance, tz. For tz, I want to find the DST transition dates. I need something like

Date tz.getDstStart() and Date tz.getDstEnd().



Given a Date, d, I can find out if this date is in DST using tz.inDaylightTime(d) so the DST transition dates must be known to tz.



Can anyone help me get the DST transition dates?

Re: How to get Daylight Saving Time (DST) transition dates?

Posted By:   Stephen_Smith  
Posted On:   Monday, July 25, 2005 07:08 AM

You can use TimeZone#getOffset(long) and TimeZone#getRawOffset().
About | Sitemap | Contact