good ways to convert string into time

Jp Calderone exarkun at intarweb.us
Tue Nov 18 13:15:29 EST 2003


On Tue, Nov 18, 2003 at 09:58:08AM -0800, 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?

  time.strptime

  http://www.python.org/doc/lib/module-time.html


> 
> thanks
> -- 
> http://mail.python.org/mailman/listinfo/python-list
> 





More information about the Python-list mailing list