what time is it? it’s beer:30!

My boss (Darren) always jokes around that the time is beer:30, that is it’s always time for a beer. Even when it’s clearly 10:30 in the morning. ;-) So, goofing around on my macbook (instead of working) I came up with the Darren O’Clock that much more accurate than just always saying it’s beer:30. It of course always says beer, followed by the current minutes of the hour. Now whether this type of resolution really matters is up for debate, but i’m pretty sure after a few beers it really doesn’t (think beer goggles). It even handles O’clock correctly, and if there is a leading digit in the minute (e.g. 2:03 pm), it will even say it properly as beer-Oh-3. Oh yeah, as for whether it’s am or pm, there’s no real point in say ing that, as it’s always time for beer according to my boss. ;-)

—-[snip]——————————————————————————————–

#!/bin/bash
# author : donald ray moore jr.
# revision: 0.02
# date : 10/31/2007
# purpose : to announce the time for beer:thirty
say “the time is beer ” + $(date +”%M” | sed -e ‘s/^0/O/;s/O0/O Clock/’)

—-[snip]——————————————————————————————–

yes the ratio of comments to code is out of wack, that’s just my style. As for it being at revision 0.02, had to adjust the sed expression a bit to include the o’clock and Oh-[0-9].

Update 11-12-07 1:44pm: It would seem that WordPress doesn’t allow you to upload audio files as it’s classified as a “security risk”. This just makes baby jesus cry. )-;

Advertisement

~ by mindrape on November 12, 2007.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.