epochutils
v1.0.4
Published
An opensource epoch utility functions
Downloads
2
Maintainers
Readme
epochutils
A simple utility functions to handle epoch timestamp.
Install
npm i epochutils
Usage
Sample code for performing single query
const { epochUtil } = require('epochutils');
const currtime = epochUtil().getLocal();
const today = epochUtil().todayLocal();
const todayUTC = epochUtil().todayUTC();
const nextDay = epochUtils().addDay(1);
const lastMonth = epochUtils().subMonth(1);
License
ISC © hanjas