added Math.floor to timestamp

This commit is contained in:
nonseodion
2020-10-08 14:57:06 +01:00
parent 820751cfcf
commit 0932d12775

View File

@ -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