John had to go to bed by ten yesterday evening(对划线部分提问)【划线部分为by ten】

问题描述:

John had to go to bed by ten yesterday evening(对划线部分提问)【划线部分为by ten】

When did John have to go to bed yesterday evening?