In all cases where any section of this code shall require any act to be done in a reasonable time or reasonable notice to be given, the REASONABLE TIME OR NOTICE shall be deemed to mean the time only as may be necessary for the prompt performance of the duty, or compliance with the notice.