Skip to content

Instantly share code, notes, and snippets.

@emdantrim
Created December 14, 2015 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emdantrim/77c674a65623a07a24a9 to your computer and use it in GitHub Desktop.
Save emdantrim/77c674a65623a07a24a9 to your computer and use it in GitHub Desktop.
a cute script
#! /bin/bash
TZFILE=`find /usr/share/zoneinfo -iname $1|head -1`
if [ -z $TZFILE ] ; then
echo nope
else
TZ=$TZFILE date
fi
# emma at aqualung in ~ [18:11:21]
$ timein sydney
Tue Dec 15 05:11:02 AEDT 2015
# emma at aqualung in ~ [18:11:28]
$ timein juneau
Mon Dec 14 09:11:06 AKST 2015
# emma at aqualung in ~ [18:11:32]
$ timein wellington
nope
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment