[Newbie] How to make the difference beetween 2 dates... ?

Christophe Prevost ommadawn at club-internet.fr
Tue Nov 14 10:40:41 EST 2000


"Mikael Olofsson" <mikael at isy.liu.se> a écrit dans le message news:
XFMail.001114144247.mikael at isy.liu.se...

>>> time.localtime(time.mktime((2000, 0, 14, 0,0,0,0,0,0)))
>(1999, 12, 14, 0, 0, 0, 1, 348, 0)
>All you have to do is extract the current date from

Yeah great... I believed that the 9 elements of the time tuple must be valid
to use it...
But it's easy if I can fill it with 0,0,0,0,0,0 instead of searching
weekday, daylight etc...

Thank you wery much Mikael !! :-)





More information about the Python-list mailing list