summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoeyh <joeyh>2006-08-19 19:26:59 +0000
committerjoeyh <joeyh>2006-08-19 19:26:59 +0000
commit4efc12865588023b906c51cd688c6f67941051f6 (patch)
tree71e9868cf2fa2eca34834d2592caed20c8d9dc9c
parentde4c5fde3d86ae278e71b102f640b110f361bda2 (diff)
downloadmoreutils-4efc12865588023b906c51cd688c6f67941051f6.tar.gz
support lastlog format
-rwxr-xr-xts3
1 files changed, 3 insertions, 0 deletions
diff --git a/ts b/ts
index de620c8..d1cbb16 100755
--- 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))