13 ts adds a timestamp to the beginning of each line of input
15 The optional format parameter controls how the timestamp is formatted,
16 as used by L<strftime(3)>. The default format is "%H:%M:%S".
20 Copyright 2006 by Joey Hess <joey@kitenet.net>
22 Licensed under the GNU GPL.
28 use POSIX
q{strftime};
30 my $format="%H:%M:%S";
31 $format=shift if @ARGV;
36 print strftime
($format, localtime)." ".$_;