Rule 226 - The Highway Code
You MUST use headlights when visibility is seriously reduced, generally when you cannot see for more than 100 metres (328 feet). You may also use front or rear fog lights but you MUST switch them off when visibility improves (see Rule 236).
Law RVLR regs 25 & 27
Resolvo Bot can look up a rule, a sign, or a parking restriction and keep the answer with your other jobs.