to-unix-timestamp

Convert a date object to a Unix timestamp.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
to-unix-timestamp
301.0.19 years ago9 years agoMinified + gzip package size for to-unix-timestamp in KB

Readme

to-unix-timestamp !CIci-badgeci-link
Convert a date to a Unix timestamp.

Installation

$ component install segmentio/to-unix-timestamp

Example

var unix = require('to-unix-timestamp');

unix(new Date()); //=> 1380249249

API

toUnixTimestamp(date)

Converts a Date object to a Unix timestamp.

License

MIT