Informing bulb that I’m moving

How far in advance do I need to let bulb know I’m moving? Does anyone have any experience of this? Thanks