Wednesday, February 11, 2009

Interesting Time Stamp

Hey, another interesting UNIX timestamp is upon us (thanks to a note from Simon on the dreaded Facebook).  It will soon be 1234567890 seconds since the UNIX epoch of 1 Jan 1970 0:00 UT, and on Friday the thirteenth no less!

>>> time.ctime(1234567890)
'Fri Feb 13 18:31:30 2009'

Remeber when the timestamp was 1000000000?

>>> time.ctime(1000000000)
'Sat Sep  8 21:46:40 2001'

(The times I've shown here are Eastern Standard), i.e., 

>>> time.ctime(0)
'Wed Dec 31 19:00:00 1969'

and of course these are from the Python interpreter.

As always, we live in interesting times!

P.S.  And I can't talk about time stamps without reminding us of UNIX's equivalent of Y2K, when the timestamp reaches the maximum value of a 32-bit signed integer (i.e., a 31-bit number):

>>> time.ctime(0x7fffffff)
'Mon Jan 18 22:14:07 2038'

Mark your calendar!