Time-dependent density-functional theory method in the electron nuclear dynamics framework