Both International and Inland (US) Navigational Rules of the Road state.
Part C- Lights and Shapes
Rule 20
Application(a) Rules in this part shall be complied with in all weathers.
(b) The rules concerning lights shall be complied with from sunset to sunrise, and during such times no other lights shall be exhibited, except such lights which cannot be mistaken for the lights specified in these rules or do not impair the visibility or distinctive character, or interfere with the keeping of a proper lookout.
(c) The lights prescribed by these rules, shall if carried, also be exhibited from sunrise to sunset in restricted visibility and maybe exhibited in all other circumstanced when it is deemed necessary.
The short answer to that is from Sunset to Sunrise and if for ANY reason it is in doubt your vessel can be deemed "in sight".
Moving around in the boat Standing in the boat When someone falls overboard
Near the helm so the pilot can use it for navigation purposes.
The only lights you should have on your boat are your navigation lights (red and green in front, white in back) so other boats can see you, and a docking light that you only use when you're approaching the dock so you don't kill yourself. Running "headlights" on a boat is illegal because it blinds oncoming boats.
Warship use the same navigation lights as civilian ships. Additional lights may be shown if engaged in special duties.
When sailing a boat in reduced visibility you should turn on and use your lights. The light s should be in the correct position and set to the correct code. If you have radar, use this to make sure you are not on a collision course with a boat with out any lights. If you believe it is to risky to navigate, anchor up for the night making sure you have the correct lights and signals.
Make sure the boat is secured to the trailer and that all lights are working. Do not use excessive speed, and avoid sudden stops or turns.
during periods of restricted visibility
Make sure the boat is secured to the trailer and that all lights are working. Do not use excessive speed, and avoid sudden stops or turns.
30 minutes before sunset and 30 minutes after sunrise and in reduced visibility
In fog you should use dipped headlights or front fog lights. Also you should use high intensity rear ( fog) lights.
AT NIGHT!30 minutes prior to sundown and thirty minutes after sunup
Missiles do not home on lights; they generally target the hot exhaust from the engine. The navigation and beacon lights on a jet are turned off to prevent them being seen by the enemy; they are never turned off on a commercial aircraft (except obviously when the aircraft is not in use).