From 411eef1ab3e6a508a7ea5b6881c05c993996fdea Mon Sep 17 00:00:00 2001 From: Stanley Lieber Date: Mon, 9 Dec 2019 19:36:03 -0500 Subject: [PATCH] bin/werclib.rc: fn ndate: convert seconds to date when seconds is provided as the second argument. --- bin/werclib.rc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/werclib.rc b/bin/werclib.rc index 7b41276..12aa7bf 100755 --- a/bin/werclib.rc +++ b/bin/werclib.rc @@ -121,7 +121,10 @@ fn get_file_title { } fn ndate { - date=`{date} + if(~ $#* 7) + date=$*(2-) + if not + date=`{date} switch($date(2)){ case Jan; mo=01 case Feb; mo=02