单项选择题

Was it midnight _____ you fell asleep while reading with the candle still burning?
   A.when B.then  C.that   D.at which