ref: b143811a53bf25824e74b7e6e6c2ee7af8c7a954
dir: /sys/src/cmd/test/zones.rc/
#!/bin/rc
rfork en
msg=()
for(f in /adm/timezone/*){
if(! ~ $f /adm/timezone/README){
cat $f >/env/timezone
x=`{../$O.date -n}
tm=`{../$O.date -f'WW, DD MMM YYYY hh:mm:ss Z' $x}
y=`{../$O.seconds $"tm}
if(! ~ $x $y){
echo $f $tm $x $y are not equal
msg=($msg $f)
}
}
}
exit $"msg