Code of Criminal Procedure, 1973
A Court shall have, for the purposes of discharging its functions under this Chapter, all the powers vested in respect of bail, trial of offences and other matters relating to the disposal of a case in such Court under this Code. 265-I. Period of detention undergone by the accused to be set off against the sentence of imprisonment.— The provisions of section 428 shall apply, for setting off the period of detention undergone by the accused against the sentence of imprisonment imposed under this Chapter, in the same manner as they apply in respect of the imprisonment under other provisions of this Code.