Skip to content

Latest commit

 

History

History
45 lines (25 loc) · 547 Bytes

readme.md

File metadata and controls

45 lines (25 loc) · 547 Bytes

year-days Build Status

Get the number of days in a year

Install

$ npm install --save year-days

Usage

var yearDays = require('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()

License

MIT © Sindre Sorhus