• 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: strptime cannot parse date older than 1938
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strptime cannot parse date older than 1938


  • Subject: Re: strptime cannot parse date older than 1938
  • From: Nick Zitzmann <email@hidden>
  • Date: Fri, 25 Apr 2008 11:20:22 -0600


On Apr 25, 2008, at 1:10 AM, Surf Chen wrote:

But I need to ask a final question:On Mac OSX and with 32 bit compile
option, How to parse "Thu, 24-Apr-38 04:28:16 GMT"  to struct tm or
other structs like that? Do I need to down or write an alternative lib
to parse it?


In addition to what everyone else has said, if you don't mind writing non-portable code, then you can do this with the Foundation framework using the NSDate, NSDateFormatter, and NSCalendar classes. You just can't do this using strptime().

Nick Zitzmann
<http://www.chronosnet.com/>




_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >strptime cannot parse date older than 1938 (From: "Surf Chen" <email@hidden>)
 >Re: strptime cannot parse date older than 1938 (From: Martin Costabel <email@hidden>)
 >Re: strptime cannot parse date older than 1938 (From: "Surf Chen" <email@hidden>)
 >Re: strptime cannot parse date older than 1938 (From: Martin Costabel <email@hidden>)
 >Re: strptime cannot parse date older than 1938 (From: "Surf Chen" <email@hidden>)
 >Re: strptime cannot parse date older than 1938 (From: Terry Lambert <email@hidden>)
 >Re: strptime cannot parse date older than 1938 (From: "Surf Chen" <email@hidden>)

  • Prev by Date: Re: strptime cannot parse date older than 1938
  • Next by Date: Sources Posted: iPhone SDK Beta 4
  • Previous by thread: Re: strptime cannot parse date older than 1938
  • Next by thread: Where is atomicqueue?
  • Index(es):
    • Date
    • Thread