]> err.no Git - moreutils/commitdiff
support lastlog format
authorjoeyh <joeyh>
Sat, 19 Aug 2006 19:26:59 +0000 (19:26 +0000)
committerjoeyh <joeyh>
Sat, 19 Aug 2006 19:26:59 +0000 (19:26 +0000)
ts

diff --git a/ts b/ts
index de620c87f59fcc28d85764384b4c4601fc619638..d1cbb16e1c31b3393901b0633c251a6d37ae782b 100755 (executable)
--- a/ts
+++ b/ts
@@ -75,6 +75,9 @@ while (<>) {
                                                # 16 Jun 94 07:29:35
                                (?:\s+\w\w\w|\s+-\d\d\d\d)?
                                                #       (optional timezone)
+                       |
+                       \w\w\w\s+\w\w\w\s+\d\d\s+\d\d:\d\d
+                                               # lastlog format
                  )\b
                }{
                        concise(ago(time - str2time($1), 2))