Skip to content

datetime/year-days

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

 
 
 

Contributors