3 use POSIX qw
/strftime/;
5 $fmt = $ENV{'TIMESTAMP_FMT'} || '%F %T %z';
10 print strftime
($fmt, localtime);
22 timestamper - Prepend a timestamp to each input line
30 Read STDIN and put everything on STDOUT, only prepending each line by a timestamp and a B<TAB> char.
38 Timestamp format, see strftime(3).
39 Default is "%F %T %z".