Let us take, for example, a generator function of type 2 (please see goldstein), i.e , F2(q,P,t) function of the old coordinates (q) and the new momenta (P), and consider the following non-relativistic transformation:
x=x'+Vt , x'- new (spacial) coordinate
t=t' , (time remains the same)...