I want to iterate all the days in a given year: so it will generate a datetime object for the 1st of January, through all the other days (including Feb 29 - if it exists for that year) to the 31st of December.
How can I do this ?
I was trying this:
from datetime import datetime
start_date = datetime( 2015, 1, 1 )
start_date = startdate + 1
But then realized you can't just add one (one what?) like this- you have to add on a timedelta (of one day) to do this.