shithub: werc

Download patch

ref: 7f28dcfddf3e322b1fc0e8d68887300c756eb087
parent: 90545cad35115eb6c1164c0d4eede407d0e712cd
author: sl <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