code-dumps/sh/getTimes.sh

11 lines
252 B
Bash
Raw Normal View History

2024-10-24 23:09:21 +08:00
#!/usr/bin/env bash
MYDATE=$1
MYTIEM=$2
EPOCH=$(date -d "$1 $2" +%s)
for z in Asia/Hong_Kong Asia/Tokyo US/Eastern US/Pacific US/Central UTC Europe/London Europe/Berlin Asia/Kolkata Australia/Sydney; do
echo -n "$z | "
TZ=$z date -d "@$EPOCH"
done