(b)all pay and allowances for every day while he is in custody on a charge for an offence of which he is afterwards convicted by a criminal court or Force Court or on a charge of absence without leave for which he is afterwards awarded imprisonment by an officer exercising authority under section 56;