Time-dependent realization of the infinite-dimensional hydrogen algebra