newt: only print a date if we've managed to extract a date
This commit is contained in:
parent
e1b0ab1745
commit
cefc352c74
1 changed files with 4 additions and 1 deletions
|
@ -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 $*){
|
||||
|
|
Loading…
Reference in a new issue