Light is crucial to fish health, something many aquarists fail to understand. And yes, fish absolutely must have a continuous period of several hours of total darkness. I will copy over an excerpt from an article I wrote for another site that should explain the importance; I can also copy the background data if asked. Before I do, I should point out that in their habitat waters, most (not all, but most) of our aquarium fish are forest fish, and the 10 or so hours of night are pitch black, there is no moon light or star light to speak of due to the forest canopy. Open rivers are obviously different, but here the fish (especially small species) live under floating vegetation which darkens their habitat so there is still little if any night light.
The Day/Night Cycle
Most animals have an internal body clock, called a circadian rhythm, which is modified by the light/dark cycle every 24 hours. This is the explanation for jet-lag in humans when time zones are crossed—our circadian rhythm is unbalanced and has to reset itself, which it does according to periods of light and dark. Our eyes play a primary role in this, but many of our body cells have some reaction to light levels. In fish this light sensitivity in their cells is very high.
Previously I mentioned that the rods and cones in the eye shift according to the changes in light. This process is also anticipated according to the time of day; the fish “expects” dawn and dusk, and the eyes will automatically begin to adjust accordingly. This is due to the circadian rhythm.
This is one reason why during each 24 hours a regular period of light/dark—ensuring there are several hours of complete darkness—is essential for the fish. In the tropics, day and night is equal for all 365 days a year, with approximately ten hours each of daylight and complete darkness, separated by fairly brief periods of dawn or dusk. The period of daylight produced by direct tank lighting can be shorter; and the period of total darkness can be somewhat shorter or longer—but there must be several hours of complete darkness in the aquarium. The dusk and dawn periods will appear to be stretched out, but that causes no problems for the fish. It is the bright overhead light that is the concern, along with having a suitable period of total darkness. And the "day" period when the tank lights are on should be one continuous period, not sporadic, and it should be the same every 24 hours or it will impact the circadian rhythm causing more stress.