to-unix-timestamp

1.0.1 • Public • Published

to-unix-timestamp CI

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    54
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    54
  • 1.0.0
    0

Package Sidebar

Install

npm i to-unix-timestamp

Weekly Downloads

54

Version

1.0.1

License

MIT

Last publish

Collaborators

  • segment-admin
  • ndhoule