Whenever any person is convicted of an offence for which under this Code the
Court has power to sentence him to rigorous imprisonment, the Court may, by its
sentence, order that the offender shall be kept in solitary confinement for any
portion or portions of the imprisonment to which he is sentenced, not exceeding
three months in the whole, according to the following scale, that is to say-
a time not exceeding one month if the term of imprisonment shall not exceed six
months
a time not exceeding two months if the term of imprisonment shall exceed six
months and1[shall not exceed one year
a time not exceeding three months if the term of imprisonment shall exceed one
year"
71 IPC Limit of punishment of offence made up of several offences
74 IPC Limit of solitary confinement
76 IPC Act done by a person bound, or by mistake of fact believing himself bound, by law
77 IPC Act of Judge when acting judicially
78 IPC Act done pursuant to the judgment or order of Court
79 IPC Act done by a person justified, or by mistake of fact believing himself, justified, by law