We know that $$\boldsymbol{E}=-\nabla V-\frac{\partial\boldsymbol{A}}{\partial t}$$
$$\boldsymbol{B}=\nabla\times\boldsymbol{A}$$ But I see that the following changes do not change these fields: $$\boldsymbol{A}\to\boldsymbol{A}+\nabla f$$ $$V\to V-\frac{\partial f}{\partial t}$$
My question is about $V$, why is the partial derivative with respect to time does not change the electric field? why would $$\nabla\left(\frac{\partial f}{\partial t}\right)=0$$ I don't see that explained anywhere, and I fail to understand how that is so trivial for any function $f$ that depends on position and time.