On 10/24/2010 07:55 PM, mukkera harsha wrote:
On, doing now - startup I want the program to return in terms of days. How ?
>>> import datetime >>> now = datetime.datetime.now() >>> after_few_seconds = datetime.datetime.now() >>> after_few_seconds - now datetime.timedelta(0, 14, 256614) >>> (after_few_seconds - now).seconds 14 Hope this helps :-) Jonas -- http://mail.python.org/mailman/listinfo/python-list