get the number of days in the given month (Gregorian calendar)
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test initial commit Aug 8, 2013
.gitignore initial commit Aug 8, 2013
.npmignore
History.md initial commit Aug 8, 2013
Makefile initial commit Aug 8, 2013
Readme.md Release 0.1.0 Aug 9, 2013
component.json
index.js
package.json Release 0.1.0 Aug 9, 2013

Readme.md

days-in-month

get the number of days in the given month (Gregorian calendar)

Installation

Install with component(1):

$ component install stephenmathieson/days-in-month

Install with npm:

$ npm install days-in-month

API

days(date)

get the number of days in the month of the provided date

days(month)

get the number of days in the provided month; assumes current year

days(year, month)

get the number of days in the provided year/month pair

License

MIT