Re: NSDate / NSXMLParser
Re: NSDate / NSXMLParser
- Subject: Re: NSDate / NSXMLParser
- From: Alexander Spohr <email@hidden>
- Date: Wed, 4 Nov 2009 11:48:20 +0100
The parser CAN parse the timezone and adjust the date accordingly.
To parse this date:
20091021T121942+0200
I use this format:
yyyyMMdd'T'HHmmssZZZ
and it works fine.
The only thing you need is to find the right timezone format string.
Yours might be
yyyy'-'MM'-'dd'T'HH':'mm':'ssZ
Not sure if you need to '' the : and -
And I really don’t know if the Z at the end of your date is tr35-6
compatible.
Have a look at
http://unicode.org/reports/tr35/tr35-6.html#Date_Format_Patterns
for your format.
atze
_______________________________________________
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