Difference between two times (working ugly code, needs polish)

Grant Edwards grante at visi.com
Tue Sep 11 16:53:00 EDT 2007


On 2007-09-11, Shawn Milochik <Shawn at Milochik.com> wrote:

> I have done what I wanted, but I think there must be a much better way.

See the strptime() function in either the time or the datetime
modules:

http://docs.python.org/lib/module-time.html
http://docs.python.org/lib/module-datetime.html

-- 
Grant Edwards                   grante             Yow! Here we are in America
                                  at               ... when do we collect
                               visi.com            unemployment?



More information about the Python-list mailing list