Date Comparison
mohana2004 at gmail.com
mohana2004 at gmail.com
Tue Feb 3 06:53:20 EST 2009
Hi,
I need to compare two dates and find the number of days between those
two dates.This can be done with datetime module in python as below,
but this is not supported in Jython.
example
from datetime import date
a=datetime.date(2009,2,1)
b=datetime.date(2008,10,10)
c= a-b
c.days
114
Is there any other function to do the same(should be supported by
Jython)
Regards,
Monyl
More information about the Python-list
mailing list