$coll->update( array( \"uid\"=(int)$uid, \"status\"=>1, \"time\"=>array(\'$gt\'=>0,\'$lte\'=>$time) ), array( \'$set\'=>array
Seeing as this was done in PHP initially, this may be of use to anyone using PHP:
$collection->update( array("uid"=>(int)$uid,"status"=>1,"time"=>array('$gt'=>0,'$lte'=>$time)), //search criteria array('$set'=>array('status'=>0)), //update criteria array('multiple'=>true) //options );