update timestamp convert cheat

This commit is contained in:
caorong 2016-04-27 10:57:44 +08:00
parent 20d985d993
commit 41332f1d8a
1 changed files with 4 additions and 1 deletions

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