Where any person is convicted by a magistrate, the magistrate shall inform him, at the time of the sentence is passed of his right of appeal and the s