time-tool
v1.0.2
Published
node.js timestamp, support μs and ns
Downloads
16
Readme
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')