@asif92/age-calculator

Find age in different formats

Usage no npm install needed!

<script type="module">
  import asif92AgeCalculator from 'https://cdn.skypack.dev/@asif92/age-calculator';
</script>

README

age-calculator

Get age in different formats.

npm GitHub license GitHub issues GitHub forks GitHub stars

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.