summaryrefslogtreecommitdiff
path: root/bin/icli
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2010-11-23 19:56:28 +0100
committerDaniel Friesel <derf@finalrewind.org>2010-11-23 19:56:28 +0100
commit51c119762b09c73f9919e3e3a85e4c0061e670c7 (patch)
treea106b528df3152fe9b78e79b79729470810b677d /bin/icli
parent80161c1e1c836ebed4117a12ded79c28e076ff5e (diff)
icli: Print "never" instead of the epoch begin for timestamp==0
Diffstat (limited to 'bin/icli')
-rwxr-xr-xbin/icli5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/icli b/bin/icli
index f60dd5e..533e514 100755
--- a/bin/icli
+++ b/bin/icli
@@ -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);
}