Where—
the court must order him to surrender himself forthwith to the custody of the court.
Where a person surrenders himself into the custody of the court in compliance with an order under subsection (1), the court must remand him in custody.
A person who has been ordered to surrender to custody under subsection (1) may be arrested without a warrant by an officer if he fails without reasonable cause to surrender to custody in accordance with the order.
A person arrested under subsection (3) must be brought as soon as practicable, and, in any event, not more than 24 hours after he is arrested, before the court and the court must remand him in custody.
For the purpose of calculating the period referred to in subsection (4), the following are to be disregarded—