Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

ager

2.0.5 • Public • Published

ager Build Status

Age calculations

Install

npm install --save ager

Usage

import age from 'ager';
 
age(new Date(1991, 3, 24)); // 24
age(1991, 4, 24); // 24
age([ 1991, 4, 24 ]); // 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

Keywords

Install

npm i ager

DownloadsWeekly Downloads

22

Version

2.0.5

License

MIT

Last publish

Collaborators

  • avatar