From 6fea929b1498854ea478fdaddacb5ecc982a5e76 Mon Sep 17 00:00:00 2001 From: P_Q_H Date: Fri, 11 Jan 2019 18:12:29 +0800 Subject: [PATCH] date: convert specific date to timestamp (#2697) --- pages/common/date.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/date.md b/pages/common/date.md index 577450fc2..25545cd67 100644 --- a/pages/common/date.md +++ b/pages/common/date.md @@ -17,3 +17,7 @@ - Display a specific date (represented as a Unix timestamp) using the default format: `date -d @1473305798` + +- Convert a specific date to the Unix timestamp format: + +`date -d "{{2018-09-01 00:00}}" +%s --utc`