Redirect time output

Hello All,
I am trying to write a script that would capture the output of time command on a Sun machine.
I have tried these commands
$ time ls > out
$ time ls 2> out
I just get the ls output in the out file for the first one.

Thanks for any help
Chuck

(time ls) 1> /dev/null 2> out

Try (assuming you want the ls output as well)

( time ls ) >out 2>&1

If not, redirect STDOUT to /dev/null as vgersh has done above.

Cheers
ZB