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

2007-09-11 Thread cjt22
On Sep 11, 8:58 am, Tim Roberts <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] 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 = str

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

2007-09-11 Thread Tim Roberts
[EMAIL PROTECTED] 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:%

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

2007-09-10 Thread cjt22
On Sep 10, 6:39 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Mon, 10 Sep 2007 07:57:58 -0700, [EMAIL PROTECTED] declaimed the > following in comp.lang.python: > > > >from time import * > > >startPoint = strptime(step.sTime, "%H:%S:%M") > > >finishPoint = strptime(step.fTime, "%H:%S:%M") >

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

2007-09-10 Thread cjt22
On Sep 10, 3:57 pm, [EMAIL PROTECTED] 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 =

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

2007-09-10 Thread cjt22
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") >duration = mktime(startPoin

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

2007-09-10 Thread Marc 'BlackJack' Rintsch
On Mon, 10 Sep 2007 15:48:44 +0200, A.T.Hofkamp wrote: > (I have seen references to a module called datetime, but I have never used > such > a module so no idea what it is or where to get it). It's just an import away -- in the standard library. :-) Ciao, Marc 'BlackJack' Rintsch -- h

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

2007-09-10 Thread Carsten Haese
On Mon, 2007-09-10 at 15:48 +0200, A.T.Hofkamp wrote: > I have seen references to a module called datetime, but I have never used > such > module so no idea what it is or where to get it. You get it by using a non-ancient version of Python. It's been part of the standard library since Python 2.

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

2007-09-10 Thread A.T.Hofkamp
On 2007-09-10, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I want to be able print out the Steps as a visual representation so > that I can show > 1. The order the steps started > 2. The duration of the steps > > i.e. a print out such as: > > > [a] >[ b ] > [

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

2007-09-10 Thread cjt22
Hi there, I wonder if any of you could tell me the best way to going about solving this little problem! I have a list of Step objects containing their start and finish times The steps are sorted so that they are in order of their step times The start and finish times are in string format of "%H:%S