1.0.2 • Published 7 years ago
time-tool v1.0.2
Time-tool
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 stringb
timestamp string
const timeTool = require('time-tool');
// 400000001
timeTool.minus('1480513813865', '1480113813864')