in reply to days in a month

Try running a search:

That yeilded How do I determine if a given year is a leap year? and Answer: Leap Year for the leap year question. There are also several other nodes there with similar questions and the ever popular Time modules from CPAN. That lead me to: