time-tool

1.0.2 • Public • Published

Time-tool

Build Status Coverage Status npm Github Releases

API

ns

Get ns string

const timeTool = require('time-tool');
// 1480515243852052221
const ns = timeTool.ns();

us

Get us string

const timeTool = require('time-tool');
// 1480515243854926
const us = timeTool.us();

minus

Minus timestamp, return integer

  • a timestamp string

  • b timestamp string

const timeTool = require('time-tool');
// 400000001
timeTool.minus('1480513813865', '1480113813864')

Readme

Keywords

Package Sidebar

Install

npm i time-tool

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • tree.xie