For those of you who don't know, this Saturday evening is a somewhat interesting milestone in computing history. It is the day that the unix timestamp (i.e. the value that time() returns) rolls over to 1,000,000,000.

This afternoon, a mailing list I'm on received a one-liner from our departed abigail about it. We started chatting about it in the CB and decided that there should be some sort of repository here for nifty scripts (and/or discussions, etc) relating to this event.

So, here are a few that we came up with:

# show the current unix timestamp perl -le 'print time' # prints the rollover moment for your timezone (from ChemBoy) perl -le 'print scalar localtime 1e9' # count up to rollover (from abigail) perl -le 'sleep 1 while print time' # count down to rollover perl -le 'sleep 1 while print 1e9-time' # count in both direction on a vt100 term (modified from one of MrNobo +1024's) clear; perl -le 'sleep 1 while print "\e[1A", 1e9 - time, " ==> ", tim +e'
Oh, and the EFF is having a Music Share-In Festival in SF's Golden Gate Park that day. Its possible that a unix-rollover party might break out in the middle of it, so if you're in the area, I invite you to stop by and enjoy yourself.

-Blake


In reply to A billion seconds of Unix by blakem

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.