Ver originalimport datetimetoday = datetime.datetime.now()day_of_year = (today - datetime.datetime(today.year, 1, 1)).days + 1