Re: Beginner String formatting question

2008-01-26 Thread John Machin
On Jan 27, 7:15 am, [EMAIL PROTECTED] wrote: > I apologize for the lack of details in my last post. There is nothing to apologise for. Unlike some, you gave enough information, without prompting, to get answers to your questions. Don't go to the other extreme :-) > This time > formatting program

Re: Beginner String formatting question

2008-01-26 Thread JAMoore84
I apologize for the lack of details in my last post. This time formatting program is a piece of a larger program I am trying to write to de-clutter GPS transmission. I have a GPS receiver that transmits its readings via bluetooth. I've been able to use pySerial and store X number of bytes, then

Re: Beginner String formatting question

2008-01-26 Thread Gary Herron
[EMAIL PROTECTED] wrote: > Hi all, > > I am trying to write a simple program that will accept an integral > "time" input in the HHMMSS format and output a "HH:MM:SS" form. My > code is as follows: > > import string > > def FormatTime(time): > '''Converts an HHMMSS string

Re: Beginner String formatting question

2008-01-26 Thread chaosgy
On 1月27日, 上午1时02分, [EMAIL PROTECTED] wrote: > Hi all, > > I am trying to write a simple program that will accept an integral > "time" input in the HHMMSS format and output a "HH:MM:SS" form. My > code is as follows: > > import string > > def FormatTime(time): > '''Conver

Re: Beginner String formatting question

2008-01-26 Thread Mark Tolonen
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > I am trying to write a simple program that will accept an integral > "time" input in the HHMMSS format and output a "HH:MM:SS" form. My > code is as follows: > > import string > > def FormatTime(ti

Beginner String formatting question

2008-01-26 Thread JAMoore84
Hi all, I am trying to write a simple program that will accept an integral "time" input in the HHMMSS format and output a "HH:MM:SS" form. My code is as follows: import string def FormatTime(time): '''Converts an HHMMSS string to HH:MM:SS format.''' timeString = str