Section 2(1)(m) in The Himachal Pradesh Police Act, 2007
(m)"Magistrate" means, unless the context otherwise requires, an Executive Magistrate appointed under section 20 of the Code of Criminal Procedure, 1973, and includes a person exercising powers of Sub-Divisional Magistrate or District Magistrate;