You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4 lines
138 B
Python
4 lines
138 B
Python
5 years ago
|
import datetime
|
||
|
today = datetime.datetime.now()
|
||
|
day_of_year = (today - datetime.datetime(today.year, 1, 1)).days + 1
|
||
|
print(day_of_year)
|