days-in-month

0.1.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i days-in-month

      Weekly Downloads

      242

      Version

      0.1.0

      License

      MIT

      Last publish

      Collaborators

      • stephenmathieson