mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 13:42:11 +01:00
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:
commit
7084ce2f45
1 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
||||||
# Print date in format suitable for affixing to file names
|
# Print date in format suitable for affixing to file names
|
||||||
date +"%Y%m%d_%H%M%S"
|
date +"%Y%m%d_%H%M%S"
|
||||||
|
|
||||||
# Convert Unix timestamp to Date
|
# Convert Unix timestamp to Date(Linux)
|
||||||
date -d @1440359821
|
date -d @1440359821
|
||||||
|
|
||||||
|
# Convert Unix timestamp to Date(Mac)
|
||||||
|
date -r 1440359821
|
||||||
|
|
Loading…
Reference in a new issue