Section 38. Deprivation of Liberty
(1) Deprivation of liberty is the compulsory imprisonment of a person.
(2) Deprivation of liberty shall be determined for a period of fifteen days and up twenty years.
(2^1) In cases specifically provided for in this Law, temporary deprivation of liberty for a period not exceeding three months may be determined for criminal violations and crimes, for which deprivation of liberty for a period up to five years is provided for in this Law.
(3) In cases specifically provided for in this Law, deprivation of liberty may be determined for life (life imprisonment).
(4) The period of deprivation of liberty shall be determined in years, months and days.
Section 904. Execution of a Convicting Judgment of an International Court
(1) If an international court has determined that a custodial sentence of the convicted person is to be executed in Latvia, the competent authority shall immediately inform the international court of the possibility of the execution of the sentence or also of circumstances that might substantially influence the execution of the sentence in Latvia.
(2) A sentence shall be executed in accordance with the same procedures as the execution of a sentence imposed in criminal proceedings taking place in Latvia. A convicted person has the right to communicate with an international court without hindrance and confidentially, and the international court has the right to perform supervision of the execution of the sentence.
(3) Only an international court shall be permitted to reduce or change the amount of sentence determined by such court.
(4) During the execution of a sentence, the competent authority shall inform an international court at least 45 days in advance of the fulfilment of previously specified conditions and any circumstances that may substantially influence the provisions or period of imprisonment.
(5) If, after serving a sentence, a person does not have rights or is not given permission to remain in Latvia, such person shall be transported to another country that must accept such person or that agrees to accept such person, respecting the choice of the person.
(6) The criminal prosecution, punishing, or extradition to another country of a convicted person regarding an offence that such person committed before being conveyed for serving a sentence in Latvia may take place only with the consent of an international court, except where the person voluntarily remains in Latvia after serving the sentence for more than 30 days, or has left Latvia and then returned to Latvia.