passingtimejs
v1.0.3
Published
Finds how much time has elapsed from the given Date object
Downloads
5
Maintainers
Readme
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```