1.0.3 • Published 1 year ago

passingtimejs v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Passingtimejs

Finds how much time has elapsed from the given Date object

Examples

const passingtimejs = require("passingtimejs");
passingtimejs(new Date(2022, 0, 19)); // return "1 year ago"
const passingtimejs = require("passingtimejs");
passingtimejs(new Date(2022, 0, 19), true); // return ms as a number like 56640384000000```