timezone printing in date messed up?
perryh at pluto.rain.com
perryh at pluto.rain.com
Sat Nov 3 19:48:37 PDT 2007
> $ sh <<'EOF'
> for a in 0 1 2 3 4 5 6 7 8 9 10 11 12
> do
> date -j -f %s `expr 1194163200 + 600 \* $a`
> done
> EOF
<snip buggy output>
> OS X Leopard has the same bug ...
How did you test it in Leopard? I tried it in Tiger, intending to
contribute another data point, and I got:
date: illegal option -- j
usage: date [-nu] [-r seconds] [+format]
date [[[[[cc]yy]mm]dd]hh]mm[.ss]
The Tiger manpage gives no obvious equivalent to FreeBSD's -j
More information about the freebsd-hackers
mailing list