Offstreet parking facilities for one use shall not be considered as providing the required facilities for any other use, provided that one-half of the offstreet parking space required by any use whose peak attendance is in the daytime and during the week may be assigned to a use which is open at night or on Sunday. In such cases, a legal instrument certifying such assignment and the terms of such assignment shall be submitted to and approved by the building official and the city attorney.