code-dumps/sh/getTimes.sh

11 lines
252 B
Bash
Raw Normal View History

2019-01-02 16:18:43 +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