Time diff

S

Steve

Hi,

I have two time strings:

2004-01-14 19:17:37, and 2004-01-15 01:45:33

How can I find out the number of minutes/seconds between the two times
in python? Thanks !!

Steve
 
S

Skip Montanaro

Steve> I have two time strings:

Steve> 2004-01-14 19:17:37, and 2004-01-15 01:45:33

Steve> How can I find out the number of minutes/seconds between the two
Steve> times in python?

Help on module datetime:

NAME
datetime - Fast implementation of the datetime type.

FILE
/usr/local/lib/python2.3/lib-dynload/datetime.so

CLASSES
__builtin__.object
date
datetime
time
timedelta
tzinfo

class date(__builtin__.object)
| Basic date type.
...

or

http://www.python.org/dev/doc/devel/lib/module-datetime.html

Skip
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top