Correct answer: When wipers are needed, and a half hour after sunset to before sunrise
Turn on headlights when wipers are needed, from a half hour after sunset to a half hour before sunrise, or when you can't see 500 feet.
Source: Chapter 5: See and Be Seen – External Vehicle Lights