1.0.4 • Published 3 years ago

epochutils v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

epochutils

A simple utility functions to handle epoch timestamp.

NPM JavaScript Style Guide

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