> On Jul 30, 2014, at 2:23 PM, Chuck Soper <[email protected]> wrote:
> 
> Your date string does not have a time zone. These internet date strings
> are always in UTC. Your string has a GMT offset.

OK, then my terminology was inaccurate. I am trying to get the GMT offset. 
(And it’s not true that date/time strings are always in UTC. ISO8601 is, yes. 
But older formats like RFC822 often use time-zone names.)

> 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.

As I keep saying, I want to avoid if possible a solution that involves manually 
scraping the string. I have done it before, and it sucks, especially if you 
have to support large numbers of different date/time formats and variants 
thereof. (The date parser in Apple’s RSS/Atom engine ended up with something 
like 20 different format strings.)

> The following code will parse your time date string.

I already know how to parse the string, thanks.

—Jens
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to