From c80a54e42b52ce297f0f2f71af23c562832025c7 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Fri, 24 Jan 2025 20:35:27 +0900 Subject: init --- ar/.local/bin/timezones | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 ar/.local/bin/timezones (limited to 'ar/.local/bin/timezones') 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 -- cgit v1.2.3