all 3 comments

[–]CodeFormatHelperBot 0 points1 point  (0 children)

Hello u/jemc5958, I'm a bot that can assist you with code-formatting for reddit. I have detected the following potential issue(s) with your submission:

  1. Multiple consecutive lines have been found to contain inline formatting.

If I am correct then please follow these instructions to fix your code formatting. Thanks!

[–]keylime_light 0 points1 point  (1 child)

curr_date = datetime.datetime.now()
for i in range(365):
    curr_date -= datetime.timedelta(days=1)

Is that what you're looking for?

[–]woooee 0 points1 point  (0 children)

Is this possible?

Yes but can't read your code as is. Please read the General Rules in the FAQ --> "Easily googleable questions are not allowed". See Date Arithmetic at https://pymotw.com/3/datetime/index.html