[Tutor] Finding and Inserting missing dates in a date range.

Lie Ryan lie.1296 at gmail.com
Sun Oct 11 20:44:55 CEST 2009

Glen Zangirolami wrote:
> Thats for all the responses. I'm going to use Kents method. I'll let you
> know what I work out.
> Rudiger - I did think about that. Luckily I am generating the list with
> a start datetime and end datetime so if those don't exist 
> in either end if the list I can insert them after I check the dates between.

If you can safely assume that the list of dates are always sorted, you
can simply write something like range_date(date_list[0], date_list[-1]).

More information about the Tutor mailing list