The universal custom is to display the US flag from sunrise to sunset on buildings and stationary flagstaffs in the open  but when a patriotic effect is desired the flag may be displayed 24 hours a day if properly illuminated during the hours of darkness