From 41332f1d8ac0bf6c8e99cc4beff702c8b5d58c03 Mon Sep 17 00:00:00 2001 From: caorong Date: Wed, 27 Apr 2016 10:57:44 +0800 Subject: [PATCH] update timestamp convert cheat --- cheat/cheatsheets/date | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cheat/cheatsheets/date b/cheat/cheatsheets/date index 05cebbf..036887e 100644 --- a/cheat/cheatsheets/date +++ b/cheat/cheatsheets/date @@ -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