Skip to content

Commit

Permalink
.toSeconds() returns seconds.milliseconds (#944)
Browse files Browse the repository at this point in the history
As explained on #565 .toSeconds() returns seconds.milliseconds to mimic UNIX system behaviour.
  • Loading branch information
ebisbe authored May 20, 2021
1 parent 2d66ce4 commit e0c8f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/formatting.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ DateTime objects can also be converted to numerical [Unix timestamps](https://en

```js
dt.toMillis(); //=> 1492702320000
dt.toSeconds(); //=> 1492702320
dt.toSeconds(); //=> 1492702320.000
dt.valueOf(); //=> 1492702320000, same as .toMillis()
```

Expand Down

0 comments on commit e0c8f87

Please sign in to comment.