Section 150. A prisoner whose term expires on Saturday, Sunday or on a legal holiday shall be discharged on the preceding day.