adverb: at what time; used to ask about the time something happened or will happen
When does the train arrive?
conjunction: at any time that (used for indefinite or general time)
When you need help, just let me know.
conjunction: at the time that
I was reading a book when the phone rang.
conjunction: considering that
Why is she training to be a teacher when she doesn't even like children?