Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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