Phrase "In fifty years' time"

In the phrase “in fifty years’ time” is the apostrophe strictly necessary or can it be omitted? Thank you

You’ll find people leaving the apostrophe out, but that’s because they don’t know correct punctuation. If you want to be correct, you have to use it, just as you would when you say “in one week’s time”.