npm.io
1.0.0 • Published 6 years ago

tm-timestamp

Licence
ISC
Version
1.0.0
Deps
2
Size
2 kB
Vulns
0
Weekly
0

tm-timestamp

tm-timestamp - This is a utility package to get TimeStamp for datetime passed

Installation

"dependencies": {
  "tm-timestamp": "1.0.0" // see the "releases" section
}

npm install tm-timestamp

Requirements

const utils = require('tm-timestamp');
TimeStamp Getter for Now
  • To get a timestamp now
let datetime = timestamp.getTimeStampNow();
console.log(datetime); //1578312236075
TimeStamp Getter for Now
  • To get a timestamp from a datetime
let datetime = "2020-02-3:1:30:10";
datetime = timestamp.getTimeStampNow(datetime);
console.log(datetime); //1580526090010
Tests
Cli
npm install
npm test
Contributors

Keywords