chiark / gitweb /
suppress seconds and minutes units
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 13 Oct 2010 10:59:50 +0000 (11:59 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 13 Oct 2010 10:59:54 +0000 (11:59 +0100)
xlog/bin/report

index d250717..aef8458 100755 (executable)
@@ -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/;
     }