Re: How to get the time zone of a parsed date/time string?
Re: How to get the time zone of a parsed date/time string?
- Subject: Re: How to get the time zone of a parsed date/time string?
- From: Kyle Sluder <email@hidden>
- Date: Wed, 30 Jul 2014 16:34:16 -0500
On Wed, Jul 30, 2014, at 04:23 PM, Chuck Soper wrote:
>
> Your date string does not have a time zone. These internet date strings
> are always in UTC. Your string has a GMT offset. You could parse "-0700"
> to determine the GMT offset. It starts with a '+' or '-' followed by 2
> digits for hours, then 2 digits for minutes. I realize that this is not
> the answer you're looking for, but your string doesn't contain a time
> zone.
This is a very good point. Multiple time zones have the same GMT offset,
and they all have potentially different DST rules.
--Kyle Sluder
_______________________________________________
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