Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

return days of month python

>>> from calendar import monthrange
>>> monthrange(2012, 2)
(2, 29)
# First number is the weekday of the first day of the month, 
# the second number is the number of days in said month
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #return #days #month #python
ADD COMMENT
Topic
Name
5+9 =