Created
January 23, 2017 23:02
-
-
Save juanmhidalgo/8d8e901e4892bedf81a4ecac2dcc94ac to your computer and use it in GitHub Desktop.
Get days of month
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_days_of_month(year, month): | |
import calendar | |
return calendar.monthrange(year,month)[1] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment