added Math.floor to timestamp
This commit is contained in:
@ -10,7 +10,7 @@ Gets the Unix timestamp from a `Date` object
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
const getTimestamp = date =>
|
const getTimestamp = date =>
|
||||||
date.getTime()/1000
|
Math.floor(date.getTime()/1000);
|
||||||
```
|
```
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|||||||
Reference in New Issue
Block a user