• 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: 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


  • Follow-Ups:
    • Re: NSDate / NSXMLParser
      • From: David Rowland <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>)

  • Prev by Date: Re: Should I learn CoreData for this project?
  • Next by Date: Re: Should I learn CoreData for this project?
  • Previous by thread: Re: NSDate / NSXMLParser
  • Next by thread: Re: NSDate / NSXMLParser
  • Index(es):
    • Date
    • Thread