(1) The penalty and any ancillary measures shall be determined by the law which is in force at the time of the act.
(2) If the penalty is amended during the commission of the act, the law in force at the time the act is completed shall be applied.
(3) If the law in force at the time of the completion of the act is amended before judgment, the most lenient law shall be applied.
(4) A law intended to be in force only for a determinate time shall be continued to be applied to acts committed while it was in force even after it ceases to be in force, unless otherwise provided by law.
(5) Subsections (1) to (4) shall apply mutatis mutandis to confiscation, deprivation and destruction.
(6) Unless otherwise provided by law, measures of rehabilitation and incapacitation shall be determined according to the law in force at the time of the decision.