in reply to How can I timestamp each printed statement?
The arguments to localtime are optional and scalar makes it return a string instead of an array.