4.0.0 • Published 3 years ago
year-days v4.0.0
year-days
Get the number of days in a year
Install
$ npm install year-days
Usage
import yearDays from 'year-days';
yearDays(2014);
//=> 365
yearDays(2016);
//=> 366
API
yearDays(year?)
year
Type: number
\
Default: Current year
yearDays(date?)
date
Type: Date
\
Default: new Date()