diff options
author | Daniel Friesel <derf@finalrewind.org> | 2010-11-23 19:56:28 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2010-11-23 19:56:28 +0100 |
commit | 51c119762b09c73f9919e3e3a85e4c0061e670c7 (patch) | |
tree | a106b528df3152fe9b78e79b79729470810b677d | |
parent | 80161c1e1c836ebed4117a12ded79c28e076ff5e (diff) |
icli: Print "never" instead of the epoch begin for timestamp==0
-rwxr-xr-x | bin/icli | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -69,6 +69,11 @@ sub with_colour { sub pretty_date { my ($unix) = @_; + + if ($unix == 0) { + return 'never'; + } + return time2str('%Y-%m-%d %H:%M:%S', $unix); } |