Steve Holden wrote:
> On 10/24/2010 1:55 PM, mukkera harsha wrote:
>> Hello
>> I was wondering if there is an existing function that would let me
>> determine the difference in time. To explain:
>>
>> Upon starting a program:
>>
>> startup = time.time()
>>
>> After some very long processing:
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)
>>> (aft
On 10/24/2010 1:55 PM, mukkera harsha wrote:
> Hello
> I was wondering if there is an existing function that would let me
> determine the difference in time. To explain:
>
> Upon starting a program:
>
> startup = time.time()
>
> After some very long processing:
> now = time.time()
>
>
Hello
I was wondering if there is an existing function that would let me
determine the difference in time. To explain:
Upon starting a program:
startup = time.time()
After some very long processing:
now = time.time()
On, doing now - startup I want the program to return in terms of days. How