summaryrefslogtreecommitdiff
path: root/debian/.local/bin/timezones
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-12-24 13:54:03 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-12-24 13:54:03 +0900
commit28e8bdf7f8286bd431b7f3b709e79f3827b31469 (patch)
tree85b44eff6da4d8443198fb6e04dfb6ee55244588 /debian/.local/bin/timezones
parent8470ff001befcfd0f626dea69a9e76d43aee0511 (diff)
updates
Diffstat (limited to 'debian/.local/bin/timezones')
-rwxr-xr-xdebian/.local/bin/timezones21
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/.local/bin/timezones b/debian/.local/bin/timezones
new file mode 100755
index 0000000..206f8da
--- /dev/null
+++ b/debian/.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