1.0.2 • Published 7 years ago

time-tool v1.0.2

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

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')