In the Hamilton-Jacobi equation, we take the partial time derivative of the action. But the action comes from integrating the Lagrangian over time, so time seems to just be a dummy variable here and hence I do not understand how we can partial differentiate S$S$ with respect to time? A simple example would also be helpful. Thank you.