aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvulonkaaz <7442677+vulonkaaz@users.noreply.github.com>2024-12-13 04:12:16 +0100
committervulonkaaz <7442677+vulonkaaz@users.noreply.github.com>2024-12-13 04:12:16 +0100
commitf2cfc13452db8e4c6589782fe9e72517d34e8ab1 (patch)
treeddee2645fc4c094f4729442b47f0284969ebe7a4
parent4536ee7343a4099b2156c44fdca4257dea950aa8 (diff)
international clock scriptHEADmaster
-rw-r--r--README.md4
-rwxr-xr-xintclock.sh17
2 files changed, 21 insertions, 0 deletions
diff --git a/README.md b/README.md
index 14beda8..cca5cfb 100644
--- a/README.md
+++ b/README.md
@@ -71,3 +71,7 @@ replace xclip with wl-copy on wayland
select a song or an album from your music library and play it with mpd, one of my
favourite scripts
+
+### intclock.sh
+
+show the hour in multiple timezones as well as the calendar
diff --git a/intclock.sh b/intclock.sh
new file mode 100755
index 0000000..76492ca
--- /dev/null
+++ b/intclock.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+printf "🌐 UTC : "
+date -u +%R
+
+printf "🌎 EST : "
+TZ='America/New_York' date +%R
+
+printf "🌏 JST : "
+TZ='Asia/Tokyo' date +%R
+printf "\n"
+
+cal
+
+read # this line is only so that the script stays on until user input,
+ # my usage is to spawn it using `st intclock.sh` I had to find a way
+ # for the st window to stay on, delete it if you don't need it