Using a time duration to print out data where every 2 seconds is a pixel

cjt22 at bath.ac.uk cjt22 at bath.ac.uk
Tue Sep 11 04:08:39 EDT 2007


On Sep 11, 8:58 am, Tim Roberts <t... at probo.com> wrote:
> cj... at bath.ac.uk wrote:
> >Thanks however I am still having a problem using the time module for
> >arithmetic
>
> >My string times are of values such as 09:55:17
>
> >and I have code such as:
>
> >>from time import *
> >>startPoint = strptime(step.sTime, "%H:%S:%M")
> >>finishPoint = strptime(step.fTime, "%H:%S:%M")
>
> Your conversion strings cannot be correct.  Sure, there are international
> differences in rendering dates and times, but not even in Eastern
> WhereTheHeckIsStan do they encode hours, then seconds, then minutes.
> --
> Tim Roberts, t... at probo.com
> Providenza & Boekelheide, Inc.

Sorry I meant %H:%M:%S just wrote it wrong! Any advice on how to print
out the duration though would be much appreciated.
I think I have now got the time conversion problems sorted thanks to
the help from google groups!




More information about the Python-list mailing list