These in wall timers typically get hard wired in place of a regular wall switch and can be used to schedule on/off times based on time of day, or in some cases based on sunrise and sunset based on astronomic scheduling.
These wired in electronic timers are perfect for porch lights, patio lights, garage lights, pathway lighting and more.