From 6aef6ccdf4766796c69430ffe8404a3d85adc2c1 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Fri, 30 Aug 2013 09:03:29 -0400 Subject: [PATCH] Added hour support to gentasktime --- tools/gentasktime | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/gentasktime b/tools/gentasktime index c9a128b..ad043e8 100755 --- a/tools/gentasktime +++ b/tools/gentasktime @@ -25,7 +25,10 @@ domake \ last="" } - /days ago/{ + /days ago|^(1[5-9]|2[0-9]) hours ago/{ + if ( $0 ~ /hours/ ) { + $1 = 1 + } if ( $1 == last ) next; if ( $1 < last ) nextfile; last = $1;