On 25/07/06, Nathan Pinno <[EMAIL PROTECTED]> 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.
Have a look at the datetime module: if date1 and date2 are both datetime.date instances, then (date1-date2) is a datetime.timedelta, and (date1-date2).days is the number of days in the timedelta. Reading the documentation helps! -- John. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor