good ways to convert string into time

Sac sac at noreply.com
Tue Nov 18 13:22:09 EST 2003


Hank wrote:

> hi,
> 
> i have a string as follows
> 
> 18Nov2003:18:23:43:405
> 
> Is there an easy way to convert that to absolute time? What i really
> want to do is to parse these times from a log file and do time
> comparisons, averages, stop minus start (elapsed).
> 
> Probably create my own conversion table i guess?
> 
> thanks


Hank,

A source that may be of interest to you is "Text Processing in Python"
by Dr. David Mertz.

Excellent reference.






More information about the Python-list mailing list