单项选择题

It was not until bedtime ______ he hurried back to the dormitory.
A) when C) unless
B) that D) which