newt: only print a date if we've managed to extract a date

This commit is contained in:
stanley lieber 2014-10-29 12:03:32 -04:00
parent e1b0ab1745
commit cefc352c74

View file

@ -49,7 +49,10 @@ fn fmtd{
ti=$date(3) ti=$date(3)
if not if not
ti=`{echo $date(4) | awk '{print substr($0,0,5);}'} 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{ fn geth{
for(i in $*){ for(i in $*){