parsetimesince
v2.0.0
Published
An npm package to parse time that has passed since a specific point in time to now in minutes/hours/days/months/year.
Downloads
3
Readme
ParseTimeSince
This package is to help get the time passed since some event in meaning full manner.
Installation
npm i parsetimesince
or
yarn add parsetimesince
Usage
Suppose, you have a file: test.js
const parseTimeSince = require('parsetimesince');
let elapsedTime = parseTimeSince(1198716962999)
console.log(elapsedTime)
Execute the file:
> node test
12 years ago.