Skip to content

timhudson/date-from-num

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Oct 25, 2014
a50d838 · Oct 25, 2014

History

6 Commits
Sep 3, 2014
Sep 3, 2014
Sep 3, 2014
Sep 3, 2014
Oct 25, 2014
Sep 3, 2014

Repository files navigation

date-from-num

Return a date from seconds or milliseconds

build status

Example

If it's greater than 252489600000, it's milliseconds. This covers dates since January 1st 1978 in milliseconds, and dates through the year 9970 in seconds.

var dateFromNum = require('date-from-num')

console.log(dateFromNum(1409759012000))
// Wed Sep 03 2014 08:43:32 GMT-0700 (PDT)

console.log(dateFromNum(1409759012))
// Wed Sep 03 2014 08:43:32 GMT-0700 (PDT)

License

MIT

About

Return a date from seconds or milliseconds

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published