@svenardo/udate
v0.0.6
Published
µtime - micro lib that handle time- and date related operations
Downloads
1
Readme
µdate
Motivation
- µDate - Micro lib that handle date- and time related operations
Usage
future
import µdate from "@svenardo/udate";
const oneSecondFromNow = µdate("add", now, "seconds", 1);
const oneMinuteFromNow = µdate("add", now, "minutes", 1);
const oneHourFromNow = µdate("add", now, "hours", 1);
past
import µdate from "@svenardo/udate";
const oneSecondInThePast = µdate("sub", now, "seconds", 1);
const oneMinuteInThePast = µdate("sub", now, "minutes", 1);
const oneHourInThePast = µdate("sub", now, "hours", 1);
More to come when I need it. File an issue you need an expansion.