Your 2 examples are a little different. In the 1st one you use the present simple and in your second example the "passé composé". I don't know if it's what you call "inversion". BTW when you say "time" do you mean "tense"?
To me your 2 sentences look correct. - maybe not easy to use in everyday life, specially the second one.