I have this small piece of code that keeps track of the runtime of a script:
startTime = datetime.now()
time = datetime.now() - startTime
return time
The type of "time" is "datetime.timedelta" and the output is "0:00:13.084000". I'm interested only in the seconds (13).
How can I extract that piece of information?