"within hours of arrest as provided for in section if a child is arrested and remains in detention or within the time periods specified in a written notice in terms of section or a summons in terms of section"