127. 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. *Detention in naval custody.*