ref: 411eef1ab3e6a508a7ea5b6881c05c993996fdea
parent: 831c77bf3bfe1e584a96ea6abd95795a17f225f0
author: Stanley Lieber <sl@stanleylieber.com>
date: Mon Dec 9 14:36:03 EST 2019
bin/werclib.rc: fn ndate: convert seconds to date when seconds is provided as the second argument.
--- a/bin/werclib.rc
+++ b/bin/werclib.rc
@@ -121,7 +121,10 @@
}
fn ndate {- date=`{date}+ if(~ $#* 7)
+ date=$*(2-)
+ if not
+ date=`{date} switch($date(2)){case Jan; mo=01
case Feb; mo=02
--
⑨