265I. Period of detention undergone by the accused to be set off against the sentence of imprisonment.