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