1.0.0 • Published 4 years ago

tm-timestamp v1.0.0

Weekly downloads
64
License
ISC
Repository
gitlab
Last release
4 years ago

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