A generalized Hamiltonian formalism is established which is invariant not only under canonical transformations but under arbitrary transformations. Moreover the dependent variables, coordinates and momenta, as well as the independent variable are allowed to be transformed. This is to say that instead of the physical time t another independent variable s is used, such that t becomes a dependent variable or, more precisely, an additional coordinate. The formalism under consideration permits also to include nonconservative forces.
In case of Keplerian motion we propose to use the eccentric anomaly as the independent variable. By virtue of our generalized point of view a Lyapunov-stable differential system is obtained, such that all coordinates, including the time t, are computed by stable procedures. This stabilization is performed by control terms. As a new result a stabilizing control term also for the time integration is established, such that no longer any kind of time element is needed. This holds true for the usual coordinates as well as for the KS-coordinates.