335. Power of entry to inspect, survey or execute the work.

(a) except when it is in this Act otherwise expressly provided, no such entry shall be made between sunset and sunrise;
(b) except when it is in this Act otherwise expressly provided, no dwelling house and no part of a public building used as a dwelling place, shall be so entered without the consent of the occupier thereof, unless the said occupier has received at least six hours' previous notice of the intention to make such entry;
(c) sufficient notice shall be given in every case even when any premises may otherwise be entered without notice, to enable the inmates of any apartment appropriated to women to remove to some part of the premises where their privacy may be preserved;
(d) due regard shall be paid, so far as may be compatible with the exigencies of the purpose of the entry, to the social and religious usages of the occupants of the premises.