Midnight would bring a late train that I could scramble aboard.
The train would arrive at midnight.