Locomotives, for as long as they were equipped with operating headlights, have always had them on during the daytime.
Diesel engines have always operated with headlights anytime, day or night. When the engine is idling in a yard or stopped at a station, the engineer can set the lights to...