Skip to content

wulv/timestamp-to-date

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

timestamp-to-date

Returns date on 'yyyy-MM-dd HH:mm:ss' format from timestamp

Installation

$ npm i timestamp-to-date

Usage

'use strict'

const timestampToDate = require('.timestampToDate');
console.log(timestampToDate('1484448039504','yyyy-MM-dd HH:mm:ss')) // => 2017-01-15 10:40:39
console.log(timestampToDate('1484448039504','yyyy-MM-dd')) // => 2017-01-15

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published