Time display without colon

Oleg Broytmann phd at emerald.netskate.ru
Tue Jun 15 12:37:48 CEST 1999


On Tue, 15 Jun 1999, John Francis wrote:
> I want to display time without colon separting them
> I am using strftime(format,tuple) function.
> But the display is like this HH:MM:SS

strftime("%H-%M-%S", tuple)

> But I am trying to put it in a table form by extracting from the text
> file
> My extraction of each line is based on the colon splitting the field
> name and the value in the field, but my script goes heywire when I have
> the above format (TIME:HH:MM:SS) is there a way to extract this or to
> display TIME in different format.

string.split("TIME: 12:01:47", ":", 1)

> Thanking you
> Regards
> John

    Oleg Broytmann        Netskate/Inter.Net.Ru        phd at emerald.netskate.ru
           Programmers don't die, they just GOSUB without RETURN.

More information about the Python-list mailing list