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

4 lines
106 B
Bash
Raw Permalink Normal View History

2013-10-27 22:24:23 +00:00
epoch=$(date -d 'March 7 2009 7:30pm EST +12 hours' +%s)
date -d @$epoch
TZ=Asia/Shanghai date -d @$epoch