Malaysia legislation
Section 353
Section 353
When any such offence as is described in section 175, 178, 179, 180
or 228 of the Penal Code is committed in the view or presence of any
Magistrate’s Court, whether civil or criminal, the Court may cause the offender to be detained in custody and at any time before the rising of the
Court on the same day may, if it thinks fit, take cognizance of the offence and sentence the offender to a fine not exceeding fifty ringgit and in default of payment, to imprisonment for a term which may extend to two months.