Difference between two dates in seconds

2006-09-27 Thread Claes at work
Hi, I am learning Python and want to perform what I think is a very simple task: calculating the difference between two dates in seconds. Reading through the documentation I am puzzled: I can't find a way to do this without doing manually what I think belongs to a standard library method. Please

Re: Difference between two dates in seconds

2006-09-27 Thread Claes at work
On 9/27/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Claes at work wrote: > > why would you have to do that yourself? why not let Python do it for > you? here's the code: > > seconds = td.days * 86400 + td.seconds > Thanks, but that is exactly what I mea