added Math.floor to timestamp
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user