diff options
author | stanley lieber <stanley.lieber@gmail.com> | 2014-04-09 21:26:43 -0400 |
---|---|---|
committer | stanley lieber <stanley.lieber@gmail.com> | 2014-04-09 21:26:43 -0400 |
commit | ea3c192bb5a4abd48f895fb48e6c318c233cc16f (patch) | |
tree | ed6269c10523294af22905011a437ec98e96d80a /rc/bin/newt | |
parent | a4d818eedbea608e3d5f1909250f0563ecde6076 (diff) | |
download | plan9front-ea3c192bb5a4abd48f895fb48e6c318c233cc16f.tar.xz |
newt: always prefix single digit days with 0 in 'h' view
Diffstat (limited to 'rc/bin/newt')
-rwxr-xr-x | rc/bin/newt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rc/bin/newt b/rc/bin/newt index d22f30129..32e0b51b7 100755 --- a/rc/bin/newt +++ b/rc/bin/newt @@ -26,6 +26,8 @@ fn fmtd{ if(! ~ $date(1) [0-9]*) date=`{nshift $date} da=$date(1) + if(~ $da [0-9]) + da=0^$da switch($date(2)){ case Jan; mo=1 case Feb; mo=2 |