From f22cf5df6ddbccf5963e037444a82596070873de Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Mon, 13 Nov 2023 11:32:11 +0100 Subject: Add worldclock script and bind it to cmd+a --- bin/worldclock | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 bin/worldclock (limited to 'bin') diff --git a/bin/worldclock b/bin/worldclock new file mode 100755 index 0000000..20e78f2 --- /dev/null +++ b/bin/worldclock @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +function line { + label="$1" + tz="$2" + d="$(TZ="$tz" date "+%Y-%m-%d %H:%M:%S %Z (%z)")" + printf "%s\t%s\n" "$label" "$d" +} + +line "Sydney" "Australia/Sydney" +line "Tokyo" "Asia/Tokyo" +line "Rome" "Europe/Rome" +line "UTC" "UTC" +line "London" "Europe/London" +line "NY" "America/New_York" +line "LA" "America/Los_Angeles" -- cgit v1.2.3