单项选择题

It was not until he arrived at the railway station () he realized he had forgotten his ticket.

A.before
B.since
C.when
D.that