4 lines
138 B
Python
4 lines
138 B
Python
import datetime
|
|
today = datetime.datetime.now()
|
|
day_of_year = (today - datetime.datetime(today.year, 1, 1)).days + 1
|
|
print(day_of_year) |