Sentence:  He had not even thought about her much except once or twice at <WSD>night</WSD> in bed when his slowly ranging thoughts would abruptly , almost accidentally , encounter her . 
Meaning of the word marked with <WSD> tags:  the time after sunset and before sunrise while it is dark outside