Merge pull request #277 from caorong/master

origin Convert Unix timestamp to Date only works on Linux, add cheat which works on Mac
This commit is contained in:
Chris Lane 2016-05-29 21:00:57 -04:00
commit 7084ce2f45

View file

@ -1,5 +1,8 @@
# Print date in format suitable for affixing to file names
date +"%Y%m%d_%H%M%S"
# Convert Unix timestamp to Date
# Convert Unix timestamp to Date(Linux)
date -d @1440359821
# Convert Unix timestamp to Date(Mac)
date -r 1440359821