RosettaCodeData/Task/Date-manipulation/UNIX-Shell/date-manipulation-1.sh

4 lines
106 B
Bash
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
epoch=$(date -d 'March 7 2009 7:30pm EST +12 hours' +%s)
date -d @$epoch
TZ=Asia/Shanghai date -d @$epoch