Temporal rocking in a nonlinear hybrid optomechanical system