[Tutor] Finding and Inserting missing dates in a date range.
Glen Zangirolami
digitalman66 at gmail.com
Fri Oct 9 21:16:54 CEST 2009
If i have a list of dates:date_list =
['2008-12-29','2008-12-31','2008-01-01','2008-01-02','2008-01-03','2008-01-05']
How do I find the missing dates in the range of dates and insert them into
the list so I get?
date_list =
['2008-12-29','2008-12-30','2008-12-31','2008-01-01','2008-01-02','2008-01-03','2008-12-04','2008-01-05']
Hopefully the case is that I haven't found the correct python module that
does it ;)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20091009/e98fb020/attachment.htm>
More information about the Tutor
mailing list