Re: strptime cannot parse date older than 1938
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