feat: script to list all timezones with offsets

This commit is contained in:
Klesh Wong 2021-08-30 22:00:03 +08:00
parent 75eefe0927
commit 5751b67ddf

10
bin/tzs Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
# list all timezones with their offsets
ZONES="$(timedatectl list-timezones)"
for ZONE in $ZONES
do
OFFSET="$(env TZ=${ZONE} date +%:z)"
echo "$ZONE $OFFSET"
done