• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSDate / NSXMLParser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDate / NSXMLParser


  • Subject: Re: NSDate / NSXMLParser
  • From: David Rowland <email@hidden>
  • Date: Wed, 4 Nov 2009 09:18:45 -0800


On Nov 4, 2009, at 2:48 AM, Alexander Spohr wrote:

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.

I have looked at that unicode doc. I tried many strings that seemed to conform to it, but nothing worked. Ingvar Nedrebo's suggestion did work, so that's that for the present. Off to other problems. _______________________________________________


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


References: 
 >NSDate / NSXMLParser (From: David Rowland <email@hidden>)
 >Re: NSDate / NSXMLParser (From: Nick Zitzmann <email@hidden>)
 >Re: NSDate / NSXMLParser (From: David Rowland <email@hidden>)
 >Re: NSDate / NSXMLParser (From: Nick Zitzmann <email@hidden>)
 >Re: NSDate / NSXMLParser (From: David Rowland <email@hidden>)
 >Re: NSDate / NSXMLParser (From: Nick Zitzmann <email@hidden>)
 >Re: NSDate / NSXMLParser (From: David Rowland <email@hidden>)
 >Re: NSDate / NSXMLParser (From: Alexander Spohr <email@hidden>)

  • Prev by Date: Re: Programming hot key
  • Next by Date: NSNumberFormatter for K, M, G, etc.
  • Previous by thread: Re: NSDate / NSXMLParser
  • Next by thread: Re: NSDate / NSXMLParser
  • Index(es):
    • Date
    • Thread