How Can I make this end_time = datetime.now()
in seconds only,
I have a start_time = datetime.now() and a end_time datetime.now()
I want to find the difference in seconds.
How can I do that in python.?
I have testet this: with start_time = datetime.now() and end_time = datetime.now()
start_time = 2016-06-30 07:15:26.273169
end_time = 2016-06-30 07:15:26.273153
Then I do a final_time = (end_time - start_time).total_seconds()
it give me this back: float -1.6e-05
How can I convert this in hours and minutes?
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 6/29/16, 10:12 AM|
|Seen: 338 times|
|Last updated: 7/4/16, 2:53 AM|