An ordinance enacted by the council shall take effect on the 30th day after its enactment. When the council deems it advisable, however, an ordinance may provide a later time for it to take effect and in case of an emergency, it may take effect immediately.