Had the President died, resigned or been removed from office during those times, the President pro tempore of the Senate would have become the Acting President:
Had the President died, resigned or been removed from office, the Secretary of State would have become Acting President:
0.004 seconds.