From 0932d127751bbbf05a6d0d9a8bf6392624f3ffdc Mon Sep 17 00:00:00 2001 From: nonseodion Date: Thu, 8 Oct 2020 14:57:06 +0100 Subject: [PATCH] added Math.floor to timestamp --- snippets/timestamp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/timestamp.md b/snippets/timestamp.md index 25aeb09ba..f739e9c5b 100644 --- a/snippets/timestamp.md +++ b/snippets/timestamp.md @@ -10,7 +10,7 @@ Gets the Unix timestamp from a `Date` object ```js const getTimestamp = date => -date.getTime()/1000 + Math.floor(date.getTime()/1000); ``` ```js