Date that sentence begins
318.  Subject to this Code and any other written law, a sentence of imprisonment shall take effect from the date it was passed, unless the court passing the sentence or, when there has been an appeal, the appellate court, otherwise directs.