cheat-fork-echo/cheat/cheatsheets/date

9 lines
200 B
Plaintext
Raw Normal View History

2015-06-19 19:48:59 +02:00
# Print date in format suitable for affixing to file names
date +"%Y%m%d_%H%M%S"
2015-06-19 19:48:59 +02:00
2016-04-27 04:57:44 +02:00
# Convert Unix timestamp to Date(Linux)
2015-06-19 19:48:59 +02:00
date -d @1440359821
2016-04-27 04:57:44 +02:00
# Convert Unix timestamp to Date(Mac)
date -r 1440359821