Given this sentence:
Frankly, I was deeply offended the instant you left me.
This web page covers the sentence
the instant I heard it
which is grammatically similar to the above sentence, in the Translations section, so the construction looks legitimate. I'm not sure, though.
Is the use of "the instant" correct in my example sentence?