how to calc the difference between two datetimes?

  • Thread starter Stewart Midwinter
  • Start date
S

Stewart Midwinter

After an hour of research, I'm more confused than ever. I don't know
if I should use the time module, or the eGenix datetime module. Here's
what I want to do: I want to calculate the time difference (in
seconds would be okay, or minutes), between two date-time strings.

so: something like this:
time0 = "2005-05-06 23:03:44"
time1 = "2005-05-07 03:03:44"

timedelta = someFunction(time0,time1)
print 'time difference is %s seconds' % timedelta.

Which function should I use?

confusedly yours,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top