In the Lagrangian formalism, homogeneity in space implies conservation of momentum, and homogeneity in time implies conservation of energy. This is shown, using variational calculus, in standard textbooks like the classical reference text of Landau & Lifshitz. This is a particular application of Noether's theorem.