"He told me when to leave."
At first sight, I interpreted this sentence as " He told me when I should leave." in case "told" means 'to order."
However, at a second thought, can it be also interpreted as "He told me when he would leave." ? Can "told" have a sense of 'announcing one's thought to others'?