Back to Top

Friday, February 13, 2009

Cool epoch counter

As probably many of you geeks already know, today the epoch counter (AKA unix timestamp) will reach the value 1234567890, which is cool I guess because it is in the order the keys are on your keyboard. You can find a countdown here. You can use the following perl snippet to find out when the event will occur in your timezone (apparently the timestamp is to be interpreted in UTC/GMT, which I didn't know):

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

From Abstruse Goose:

Update: as seen also on the PostgreSQL stuff blog.

Update: a more detailed article on O'Reilly.com. Found it via use Perl;.

1 comment: