summaryrefslogtreecommitdiff
path: root/rc/bin/newt
diff options
context:
space:
mode:
Diffstat (limited to 'rc/bin/newt')
-rwxr-xr-xrc/bin/newt5
1 files changed, 4 insertions, 1 deletions
diff --git a/rc/bin/newt b/rc/bin/newt
index b65df64b5..9417e64d7 100755
--- a/rc/bin/newt
+++ b/rc/bin/newt
@@ -49,7 +49,10 @@ fn fmtd{
ti=$date(3)
if not
ti=`{echo $date(4) | awk '{print substr($0,0,5);}'}
- echo $mo/$da $ti
+ if(! ~ $#mo 0 && ! ~ $#da 0 && ! ~ $#ti 0)
+ echo $mo/$da $ti
+ if not
+ echo nil
}
fn geth{
for(i in $*){