Time for Linux is "Lining up"

Greg Rundlett greg.rundlett at gmail.com
Sun Feb 1 11:01:11 EST 2009


On Sun, Feb 1, 2009 at 8:15 AM, Jon 'maddog' Hall <maddog at li.org> wrote:
> "At 11:31:30pm UTC on Feb 13, 2009, Unix time will reach 1,234,567,890.
> Where will you be at this momentous second?" - from Bell Labs
>
> This will be Friday, February 13th at 1831 and 30 seconds EST (1531 and
> 30 seconds PST).
>

A little script to track the approaching "beer:thirty o'clock"

 ./beerCountdown.sh

#!/bin/bash

# A countdown for beer o'clock
# launch this with 'watch -n 1 ./beerCountdown.sh'
# escape with Ctrl+C
# Greg Rundlett <greg at freephile.com>

timenow=$(date +%s)
timediff=$(echo 1234567890 - $timenow | bc -l)
beerthirty=$(date --rfc-3339 ns -d '2009-02-13 23:31:30')
echo "The time is now $timenow"
echo "... in $timediff seconds, the time will be 1234567890 "
echo "which is actually 'beer:thirty o'clock' ($beerthirty)"
echo "and so it will be time to hoist a beer and say cheers";
echo ""
echo "Escape with 'Ctrl + C'"

-- 
Greg Rundlett
Web Developer - Initiative in Innovative Computing
http://iic.harvard.edu
camb 617-384-5872
nbpt 978-225-8302
m. 978-764-4424
-skype/aim/irc/twitter freephile
http://profiles.aim.com/freephile


More information about the gnhlug-discuss mailing list