Skip to content

Instantly share code, notes, and snippets.

@bauglir
Forked from tomkersten/time_anouncer
Created December 8, 2011 17:13
Show Gist options
  • Save bauglir/1447665 to your computer and use it in GitHub Desktop.
Save bauglir/1447665 to your computer and use it in GitHub Desktop.
Decided I really dislike the 0x format for hours in the current presentation
#!/bin/bash
source /home/duckworth/.local_zshrc
CHICAGO_HOUR=`date +"%k"`
TZ_ORIGINAL=$TZ
export TZ='Europe/Amsterdam'
EUROPE_HOUR=`date +"%k"`
export TZ_ORIGINAL=$TZ
echo "It's now $CHICAGO_HOUR o'clock in Chicago and $EUROPE_HOUR o'clock in Europe"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment