The Navy Act,1957
Section 155. Time of detention in naval custody
The time during which any offender under sentence of imprisonment or detention is detained in naval custody shall be reckoned as imprisonment or detention under his sentence for whatever purpose he is so detained; and the governor, gaoler, keeper or superintendent who shall deliver over any such offender shall again receive him from naval custody, so that he may undergo the remainder of his punishment.