to-unix-timestamp
1.0.1 • Public • Published to-unix-timestamp
Convert a date to a Unix timestamp.
Installation
$ component install segmentio/to-unix-timestamp
Example
var unix = require('to-unix-timestamp');
unix(new Date());
API
toUnixTimestamp(date)
Converts a Date object to a Unix timestamp.
License
MIT
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 1.0.1
54
Version History
Package Sidebar
Install
Weekly Downloads