Astronomical twilight switch for the management of electric loads from sunset to sunrise according to the set geographical coordinates. In addition, the automatic programming of switching on at sunset and switching off at sunrise has the possibility to set 30-minute-night switching off. The device is particularly suitable for the management of shop lighting and sign lighting in general. It is possible to replace the backup battery when it is depleted.