dotfiles/bin/tzs

11 lines
183 B
Bash
Executable File

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