[Tutor] Is there a method like this already?

Hugo González Monteverde hugonz-lists at h-lab.net
Tue Jul 25 01:39:33 CEST 2006


Nathan Pinno wrote:
> Is there a method in Python like this already:
>  
> [code]
> #This program calculates how many days it has been from one day to the 
> other.

Hi,

Check the datetime module, it will give you distance between dates in 
the units you specify. It is included in the standard distribution.

Hugo


More information about the Tutor mailing list