Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/display/unix-timestamp.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ title: Unix Timestamp
This returns the Unix timestamp (the number of seconds since the Unix Epoch) of the Day.js object.

```js
dayjs('2019-01-25').unix() // 1548381600
dayjs('2019-01-25').unix() // 1548381600 (Returns Unix timestamp based on local timezone.)
```

This value is floored to the nearest second, and does not include a milliseconds component.