Re: [Tutor] iterate over daterange

2006-01-07 Thread Kent Johnson
captnswing wrote: > Hello > I have a startdate and an enddate and I want to iterate over all days > in between the two > > there doesn't seem to be a range function for dates?!? > > i.e. currently I am going through integers with something like this: > > =

Re: [Tutor] iterate over daterange

2006-01-06 Thread Terry Carroll
On Fri, 6 Jan 2006, captnswing wrote: > Hello > I have a startdate and an enddate and I want to iterate over all days > in between the two > > there doesn't seem to be a range function for dates?!? Sounds like a good application for a generator: # def daterange(fr

[Tutor] iterate over daterange

2006-01-06 Thread captnswing
Hello I have a startdate and an enddate and I want to iterate over all days in between the two there doesn't seem to be a range function for dates?!? i.e. currently I am going through integers with something like this: = startdate = datetime.date(2006,1,1)