A city or town may adopt an ordinance prohibiting the operation of pawnshops from 12:00 a.m. to 6:00 a.m.