(2) For a second or subsequent offense within a five-year period of time, as measured from the dates of previous arrests for which convictions were obtained or pleas of nolo contendere were accepted to the date of the current arrest for which a conviction is obtained or a plea of nolo contendere is accepted, by a fine of not less than $500.00 nor more than $1,000.00 and imprisonment for not less t