From: Ian Jackson Date: Wed, 13 Oct 2010 10:59:50 +0000 (+0100) Subject: suppress seconds and minutes units X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~webstump/git?p=modbot-mtm.git;a=commitdiff_plain;h=18a2942afeea142e0881ed079660330d4da3c9e2;hp=1e6dc8d0b0280d4efd3d9c5d4032fec159b89d52 suppress seconds and minutes units --- diff --git a/xlog/bin/report b/xlog/bin/report index d250717..aef8458 100755 --- a/xlog/bin/report +++ b/xlog/bin/report @@ -22,7 +22,8 @@ sub processlog ($$) { chomp; @s= split /\t/; push @s, '' if @s<=6; - $s[0]= strftime "%Y-%m-%d %H:%M:%S %Z", localtime $s[0]; + $s[0]= strftime "%Y-%m-%d %H:%M %Z", localtime $s[0]; + $s[0] =~ s/(\d+\:\d)\d/${1}x/; &$processline(); $oddeven =~ y/oe/eo/; }