Re: TimeZone DST support
Re: TimeZone DST support
- Subject: Re: TimeZone DST support
- From: Roland King <email@hidden>
- Date: Fri, 24 Jun 2011 23:22:16 +0800
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 (email@hidden)
>
> 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:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden