walkah: geektool world clock

26 Aug 2004

geektool world clock

while this isn't directly bryght related, one of the things that we've been trying to adjust to is the fact that we span 3 time-zones - which makes coordinating our efforts tricky. i know that adrian bought a couple extra clocks to help himself keep track. i, however, am far too cheap for that, so i half-heartedly checked around for a platform-independent "world clock" tool. after some searching, i discovered a tool in debian called "tzwatch" - which turns out to just be a simple shell script that simply uses date(1). of course! if you set $TZ before calling date, that is the timezone used. after getting over feeling dumb, i threw the following into a little shell script:

TZ=Canada/Pacific date +"Vancouver: %I:%M %p %D"
TZ=Africa/Johanessburg date +"Africa: %I:%M %p %D"

so, i can now easily see the local time of my coworkers. however, i was reading jonas' post about geektool and thought "perfect". so i downloaded and installed geektool on my powerbook, and set it up to use my little "script". the result looks like this:

geektool-clock.jpg

tags:

Formatting the script so the result lines up?

April 12, 2005 - 8:58pm

How did you format the script so that the times all line up so nicely? Lots of patience and spaces? Or is there a better trick?!

Cheers!

Dave

just spaces

April 13, 2005 - 7:01am

yeah - i'm sure there's a "cleaner" way to do it, but a hack is a hack ;)

Post new comment

The content of this field is kept private and will not be shown publicly.

James Walker

twitter Facebook Profile Flickr del.icio.us last.fm 43 People brightkite Jaiku Pownce Plurk Linked In Dopplr Digg upcoming

twitter

will be teaming up with @eaton to rock an o'reilly #drupal webcast on Dec 5th : http://ping.fm/kgSV9
5 hours 42 min ago

upcoming...

Do it With Drupal

comments

Syndicate content
powered by drupal Get Firefox! ecto powered Creative Commons License James Walker