fish, like us, need a light and dark period.
if you don't have live plants you can have the lights on only when you want to watch the fish, during the day the natural light in the room will be ok for them.
If you have live plants 10-14hrs a day is the norm, but plants also need a dark period.
to sum up
don't leave the lights on 24/7