The Flag Code states it is the universal custom to display the flag only from sunrise to sunset on buildings and on stationary flag staffs in the open. However, when a patriotic effect is desired, the flag may be displayed 24 hours a day if properly illuminated during the hours of darkness.