dotfiles/bin/tzs

11 lines
183 B
Plaintext
Raw Normal View History

#!/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