Skip to content

radiovisual/month-days-by-year

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

month-days-by-year Build Status

Get the number of days for each month in a given year. Honors leap year.

Install

$ npm install --save month-days-by-year

Usage

const monthDaysByYear = require('month-days-by-year');

monthDaysByYear(2017);
//=> [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]

leapYear(2000);
//=> [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]

API

monthDaysByYear(year)

year

Type: string | number

The year from which you want a list of months.

License

MIT © Michael Wuergler

About

Get the number of days for each month in a given year.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published