I have problem understanding the exact meaning of phrases like the following examples in which the word notice is used after a period of time (e.g. month, week or 10 day) appended with a apostrophe or apostrophe + s.
at least two weeks’ notice shall be given
at a moment's notice
Does it mean "a notice before the given period of time?"