Re:0th-world Problems
by aristidb on Sunday August 19, 2012 @02:35PM
(#4404745)
Why worry about y10k when y2k38 is so much more pressing?!
[ Parent
| on HN ]
Re:0th-world Problems
by notaddicted on Sunday August 19, 2012 @02:47PM
(#4404775)
The 2038 problem is someone else's fault, and I mostly use 64bit systems. Every time I implement something that assumes the year will take four digits I have a little moment of 'ugh'. The context for me was using python list slice operations to take apart a timestamp, but I now use datetime.datetime.strptime.
EDIT: I just looked up the source for python 2.7.3 and even in strptime the %Y format specifier assumes that the year has four digits (see line 204-206 http://hg.python.org/cpython/file/70274d53c1dd/Lib/_strptime... ) so I'm not out of the woods yet.