 This mechanism allows entrainment of flies to environmental light cues.When "Drosophila" receive light inputs in the early subjective night, light-induced TIM degradation causes a delay in TIM accumulation, which creates a phase delay.When light inputs are received in the late subjective night, a light pulse causes TIM degradation to occur earlier than under normal conditions, leading to a phase advance.