单项选择题

It was not until dark ______ it was time to return home.

A.that he realized
B.that did he realize
C.when he realized
D.when did he realize