bin/werclib.rc: fn ndate: convert seconds to date when seconds is provided as the second argument.

This commit is contained in:
Stanley Lieber 2019-12-09 19:36:03 -05:00
parent 831c77bf3b
commit 411eef1ab3

View file

@ -121,7 +121,10 @@ fn get_file_title {
} }
fn ndate { fn ndate {
date=`{date} if(~ $#* 7)
date=$*(2-)
if not
date=`{date}
switch($date(2)){ switch($date(2)){
case Jan; mo=01 case Jan; mo=01
case Feb; mo=02 case Feb; mo=02