in get-ec2-pricing/app.py [0:0]
def hours_for_next_month():
now = datetime.datetime.utcnow()
month = now.month
year = now.year
nextmonth = month + 1
if month == 12:
year = year + 1
if nextmonth > 12:
nextmonth = nextmonth % 12
return calendar.monthrange(year, nextmonth)[1] * 24