Skip to content

Commit e0c8f87

Browse files
authored
.toSeconds() returns seconds.milliseconds (#944)
As explained on #565 .toSeconds() returns seconds.milliseconds to mimic UNIX system behaviour.
1 parent 2d66ce4 commit e0c8f87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/formatting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ DateTime objects can also be converted to numerical [Unix timestamps](https://en
3636

3737
```js
3838
dt.toMillis(); //=> 1492702320000
39-
dt.toSeconds(); //=> 1492702320
39+
dt.toSeconds(); //=> 1492702320.000
4040
dt.valueOf(); //=> 1492702320000, same as .toMillis()
4141
```
4242

0 commit comments

Comments
 (0)