@asif92/age-calculator
v0.0.2
Published
Find age in different formats
Downloads
16
Maintainers
Readme
age-calculator
Get age in different formats.
Install
$ npm install findage --save
Usage
const getAge = require("findage");
// Input Format (MM/DD/YYYY)
getAge.fullAge("01/01/2000"); // 19 years 7 months 16 days
getAge.inMonths("01/01/2000"); // 235 months 16 days
getAge.inHours("01/01/2000"); // 172032 hours
getAge.inMinutes("01/01/2000"); // 10321920 minutes
getAge.inSeconds("01/01/2000"); // 619315200 seconds
License
The MIT License. Please see License File for more information.