167. Procedure when investigation cannot be completed in twenty four hours.
Whenever any person is arrested and detained in custody and it appears that the investigation cannot be completed within the period of twenty- four hours fixed by section 57, and there are grounds for believing that the accusation or information is well- founded, the officer in charge of the police station or the police officer making the investigation, if he is not below the rank of sub- inspector, shall forthwith transmit to the nearest Judicial Magistrate a copy of the entries in the diary hereinafter prescribed relating to the case, and shall at the same time forward the accused to such Magistrate.
The Magistrate to whom an accused person is forwarded under this section may, whether he has or has not jurisdiction to try the case, from time to time, authorise the detention of the accused in such custody as such Magistrate thinks fit, for a term not exceeding fifteen days in the whole; and if he has no jurisdiction to try the case or commit it for trial, and considers further detention unnecessary, he may order the accused to be forwarded to a Magistrate having such jurisdiction: Provided that-
1[ the Magistrate may authorise the detention of the accused person, otherwise than in the custody of the police, beyond the period of fifteen days; if he is satisfied that adequate grounds exist for doing so, but no Magistrate shall authorise the detention of the accused person in custody under this paragraph for a total period exceeding,-
ninety days, where the investigation relates to an offence punishable with death, imprisonment for life or imprisonment for a term of not less than ten years;
sixty days, where the investigation relates to any other offence, and, on the expiry of the said period of ninety days, or sixty days, as the case may be, the accused person shall be released on bail if he is prepared to and does furnish bail, and every person released on bail under this sub- section shall be deemed to be so released under the provisions of Chapter XXXIII for the purposes of that Chapter;]
no Magistrate shall authorise detention in any custody under this section unless the accused is produced before him;
no Magistrate of the second class, not specially empowered in this behalf by the High Court, shall authorise detention in the custody of the police. 1[ Explanation I.- For the avoidance of doubts, it is hereby declared that, notwithstanding the expiry of the period specified in paragraph (a), the accused shall be detained in custody so long as he does not furnish bail;]. 2[ Explanation II.- If any question arises whether an accused person was produced before the Magistrate as required under paragraph (b), the production of the accused person may be proved by his signature on the order authorising detention.]
1[ Notwithstanding anything contained in sub- section (1) or sub- section (2), the officer in charge of the police station or the police officer making the investigation, if he is not below the rank of a sub- inspector, may, where a Judicial Magistrate is not available, transmit to the nearest Executive Magistrate, on whom the powers of a Judicial Magistrate or Metropolitan Magistrate have been conferred, a copy of the entry in the diary hereinafter prescribed relating to the case, and shall, at the same time, forward the accused to such Executive Magistrate, and thereupon such Executive Magistrate, may, for reasons to be recorded in writing, authorise the detention of the accused person in such custody as he may think fit for a term not exceeding seven days in the aggregate; and, on the expiry of the period of detention so authorised, the accused person shall be released on bail except where an order for further detention of the accused person has been made by a Magistrate competent to make such order; and, where an order for such further detention is made, the period during which the accused person was detained in custody under the orders made by an Executive Magistrate under this sub- section,