Ad
Code
Diff
  • def days(month,day):
        return (d.date(d.datetime.now().year, month, day) - d.date(d.datetime.now().year, 1, 1)).days + 1
    • def days(month,day):
    • return sum([31,28,31,30,31,30,31,31,30,31,30,31][:month-1])+day
    • return (d.date(d.datetime.now().year, month, day) - d.date(d.datetime.now().year, 1, 1)).days + 1