Re: strptime cannot parse date older than 1938
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com User-agent: Thunderbird 2.0.0.12 (Macintosh/20080213) The manpage(man 3 strptime) says: Two-digit year values, including formats %y and %D, are now interpreted as beginning at 1969 per POSIX requirements. Years 69-00 are interpreted in the 20th century (1969-2000), years 01-68 in the 21st century (2001-2068). You mean "strptime cannot parse date later than 2038". The famous Y2038 bug. -- Martin _______________________________________________ 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... Surf Chen wrote: If you compile your program with the compiler flag "-arch x86_64" or "-arch ppc64", you get the correct result. This email sent to site_archiver@lists.apple.com
participants (1)
-
Martin Costabel