diff options
Diffstat (limited to 'ar/.local/bin/timezones')
| -rwxr-xr-x | ar/.local/bin/timezones | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ar/.local/bin/timezones b/ar/.local/bin/timezones new file mode 100755 index 0000000..206f8da --- /dev/null +++ b/ar/.local/bin/timezones @@ -0,0 +1,21 @@ +#!/bin/sh + +set -e + +[ "$1" != "" ] && time=$1 || time='' + +printDate() { + [ "$time" != "" ] && message="$(TZ=$2 date +'%a, %d %b %H:%M' -d "$time $(date +%Z)")" || message="$(TZ=$2 date +'%a, %d %b %H:%M')" + notify-send "$1" "$message" +} + +printDate "Los Angeles" America/Los_Angeles +printDate "New York" America/New_York +printDate "London" Europe/London +printDate "Berlin" Europe/Berlin +printDate "Moscow" Europe/Moscow +printDate "Bangkok" Asia/Bangkok +printDate "Hong Kong" Asia/Hong_Kong +printDate "Macau" Asia/Macau +printDate "Seoul" Asia/Seoul +printDate "Tokyo" Asia/Tokyo |
