perl -le 'print scalar localtime(1234567890)' # (Happy Birthday, UNIX)

UNIX turns 1234567890 seconds old Friday, February 13th, 2009 at 18:31:30. (At least on my system.) Try also: python -c 'import time;print(time.asctime(time.localtime(1234567890)))' or date -r 1234567890 to get your local equiv. [via MeFi]
  jgs `-------------`
This entry was posted in Uncategorized and tagged . Bookmark the permalink.

10 Responses to perl -le 'print scalar localtime(1234567890)' # (Happy Birthday, UNIX)

  1. michaelc says:

    If you’ve got the ruby language installed,

    ruby -e ‘puts’

    should also work if you type it at a command prompt. Ruby is available by default in OSX.

  2. arkizzle says:

    Joel, I’ve been crying over the lack of a monospaced font option, down here in the comments section for ages!

    P’raps if you had a word with the BB elves (or is that goblins?) to see if there is any chance.. surely it’s just a miniscule CSS change, no? :)

  3. Joel Johnson says:

    Ha, I give up. I cannot never get ASCII art to format correctly.

  4. HunterZ says:

    You have to use a pre-formatted text tag of some kind, if that’s even supported by BoingBoing’s blog software. Even then it may eat leading spaces and such.

  5. dculberson says:

    One, two, three, four, five, six, nine, or ten
    Money can’t buy you back the love that you had then

  6. dculberson says:

    Joel, instead of blockquote try the pre and /pre tags..


    Nope.. oh well. It was worth a shot.

  7. HunterZ says:

    @#4: No, that’s still using a variable-width font :(

  8. dculberson says:

    The pre tag isn’t supposed to use variable pitch, but it looks like that tag isn’t supported in the comments here.

  9. Anonymous says:

    date +”%s”

    works on my AIX box.

  10. Anonymous says:

    SELECT UNIX_TIMESTAMP(‘2009-02-13 17:31:3090′);
    on an old xp pro running 4.0.17-nt MySQL

    Gives 1234567890

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


More BB

Boing Boing Video

Flickr Pool




Displays ads via FM Tech

RSS and Email

This work is licensed under a Creative Commons License permitting non-commercial sharing with attribution. Boing Boing is a trademark of Happy Mutants LLC in the United States and other countries.

FM Tech