Re: strptime cannot parse date older than 1938
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com 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? Nick Zitzmann <http://www.chronosnet.com/> _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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(). This email sent to site_archiver@lists.apple.com
participants (1)
-
Nick Zitzmann