protected function _timeToMongoDate($time)
    {
        if(!is_numeric($time)) {
            $time = strtotime($time);
            if(!$time) {
                $time = time();
            }
        }
        
        return new \MongoDate($time);
    }
protected function _timeToMongoDate($time)
    {
        if(!is_numeric($time)) {
            $time = strtotime($time);
            if(!$time) {
                $time = time();
            }
        }
        
        return new \MongoDate($time);
    }
protected function _timeToMongoDate ( $ time ) { if ( ! is_numeric ( $ time ) ) { $ time = strtotime ( $ time ) ; if ( ! $ time ) { $ time = time ( ) ; } } return new \ MongoDate ( $ time ) ; }
Convert time in different formats to mongo date
@param mixed $time
@return \MongoDate
Convert time in different formats to mongo date