Skip to content

Get the number of days in a year

License

Notifications You must be signed in to change notification settings

datetime/year-days

Repository files navigation

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

About

Get the number of days in a year

Resources

License

Stars

Watchers

Forks

Packages

No packages published