Fish have circadian rhythms like us that help them regulate body functions and metabolism. They definitely need a few hours of light per day.
If the tank is unplanted, 4 - 8 hours is enough. Planted tanks need 8 - 12 hours. It depends on your lighting, wattage, and ambient room light.