(a) No child under the age of twelve years shall be upon the streets or sidewalks between the hours of 8:00 p.m. and 6:00 a.m., nor shall any child between the ages of twelve and sixteen years be upon the streets or sidewalks between the hours of 11:00 p.m. and 6:00 a.m. nor shall any child between the ages of sixteen years and eighteen years be upon the streets or sidewalks between the hours of 12:00 midnight and 6:00 a.m. unless accompanied by a parent, guardian or some responsible person over the age of twenty-one years, a member of his family eighteen years or older or unless he has a legitimate excuse therefor.
(b) No parent or guardian of any child under the age of twelve shall allow such child to be upon the streets or sidewalks between the hours of 8:00 p.m. and 6:00 a.m., nor shall any parent or guardian of any child between the ages of twelve and sixteen years allow such child to be upon the streets or sidewalks between the hours of 11:00 p.m. and 6:00 a.m., nor shall any parent or guardian of any child between the ages of sixteen years and eighteen years allow such child to be upon the streets and sidewalks between the hours of 12:00 midnight and 6:00 a.m., unless accompanied by a parent, guardian, some responsible person over the age of twenty-one years, a member of his family eighteen years or older or unless such child has a legitimate excuse therefor.
(c) For the purpose of this section legitimate excuse is defined as attendance at a school activity or a school related activity. Such activity shall permit the person or persons so involved to be upon the streets or sidewalks for a period of forty-five minutes after the termination of such school activity or school related activity.
(d) Any child violating subsection (a) hereof shall be dealt with in accordance with Juvenile Court laws and procedure. Any parent or guardian who violates subsection (b) hereof shall be guilty of a minor misdemeanor.