ager
2.0.5 • Public • Published ager
Age calculations
Install
Usage
import age from 'ager';
age(new Date(1991, 3, 24));
age(1991, 4, 24);
age([ 1991, 4, 24 ]);
API
ager(year[, month, day])
year
Type: number
, date
, array
Full year, instance of Date
or array with date.
month
Type: number
Month in the range 1...12
.
day
Type: number
Day in the range 1...31
.
License
MIT
Package Sidebar
Install
Weekly Downloads