tm-timestamp

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i tm-timestamp

Weekly Downloads

5

Version

1.0.0

License

ISC

Unpacked Size

2.45 kB

Total Files

5

Last publish

Collaborators

  • tm30tech