Now()
Daniel Nogradi
nogradi at gmail.com
Wed Apr 25 07:40:35 EDT 2007
> I'm using the following function 'str (now)' to place a date time stamp into
> a log file, which works fine, however it writes the stamp like this.
>
> 2007-04-25 11:06:53.873029
>
> But I need to expel those extra decimal places as they're causing problems
> with the application that parses the log data, all I need is something like
> this:
>
> 2007-04-25 11:06:53
Please see http://docs.python.org/lib/module-time.html
Daniel
More information about the Python-list
mailing list