Monday, February 9, 2009


The next February 13th has a special event, not for everyone, just for people like us (yes, you know, accept it ...) because the UNIX time at 11:31:30pm UTC will read in the terminal in curious form: 1234567890.

Why? Check Wikipedia:
"Unix time, or POSIX time, is a system for describing points in time, defined as the number of seconds elapsed since midnight Coordinated Universal Time (UTC) of January 1st. 1970, not counting lap seconds. It is widely used not only on Unix-like operation systems but also in many other computing systems. It is neither a linear representation of time nor a true representation of UTC (though it is frecuently mistaken of both) as the times it represents are UTC but it has no way of repesenting UTC leap seconds (e.g. 1998-12-31 23:59:60)."

If you want to check it, or see other values for your favorite number, you can use the Perl one-line:

perl -e 'print scalar localtime(1234567890),"\n";'

Note: image from Wikimedia showing when the 1000000000 seconds since epoch was celebrated at a party held by DKUUG in Copenhagen, Denmark 2001-09-09T03:46:4.

No comments:

Post a Comment