python get time in minutes

Posted by Hulk on Stack Overflow See other posts from Stack Overflow or by Hulk
Published on 2010-05-05T10:32:47Z Indexed on 2010/05/05 10:38 UTC
Read the original article Hit count: 598

import datetime
start = datetime.datetime(2009, 1, 31)
end = datetime.datetime(2009, 2, 1)
print end-start
>>1 day, 0:00:00//output

How to get the output in minutes

Thanks,

© Stack Overflow or respective owner

Related posts about python

Related posts about python-datetime