During the dark period the plants build up the flowering hormone. This hormone has to reach a critical point every night for it to actually induce and continue the flowering process. Light not only stops the plant from producing this, it also sort of breaks it down. If it happens often enough...