I don't see an API which will do this. Can I ask you why do you need to know? DST changes from place to place and from year to year, it's not inconceivable that a location which never had DST before suddenly decides as of year XXXX that it will start doing so. I would expect the current APIs which tell you if a certain date has DST is about the best you can really do. If you like, every location potentially has DST, only if you give a certain date, or time, can you say if DST applies to that particular date or time. Observing DST is not really a property of the location.
On 24-Jun-2011, at 6:20 PM, Appa Rao Mulpuri wrote: > Is there any way to get particular time Zone supports Day Light saving(DST) > or not. For example, if you take Asia/Kolkata, no DST in any year and for > America/Chicago, DST is YES. > > I saw following APIs in NSTimeZone, but it is considering the Date and > returns that date is in DST or not. > > – isDaylightSavingTime > – isDaylightSavingTimeForDate: > > Apparao > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/rols%40rols.org > > This email sent to r...@rols.org _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com