Agree with BIG-G, a light on all night will stress them out, causing disease, and or shorting life span.
No problem leaving a light on until you go to bed.
In the tropics (like where I, and managuense live) it starts getting dark gradually from 6:00 to7:00 pm, sunrise about by 6AM gradually brightening, it would be best for your light schedule to mimic a similar duration, although it doesn't need to be those exact hours, and times.