(a) In this section the term "violation of this Code" means any of the following: (1) Doing an act that is prohibited or made or declared unlawful, an offense, a violation or a misdemeanor by ordinance, by statute adopted by reference in this Code, by state rule or regulation adopted by reference in this Code, or by rule or regulation authorized by ordinance. (2) Failure to perform an act that is required to be performed by ordinance, by statute adopted by reference in this Code, by state rule or regulation adopted by reference in this Code or by rule or regulation authorized by ordinance. (3) Failure to perform an act if the failure is prohibited or is made or declared unlawful, an offense, a violation or a misdemeanor by ordinance, by statute adopted by reference in this Code, by state rule or regulation adopted by reference in this Code or by rule or regulation authorized by ordinance. (b) In this section, the term "violation of this Code" does not include the failure of a county officer or county employee to perform an official duty unless it is specifically provided that the failure to perform the duty is to be punished as provided in this section. (c) Unless a higher penalty is otherwise specified, whenever in this Code or in any ordinance of the county any act is prohibited or is made or declared to be unlawful or an offense, or whenever in this Code or any ordinance the doing of any act is required and the failure to do such act is declared to be unlawful, unless otherwise provided by state law, the violation of any such provision of this Code or any such ordinance shall be punished by a fine not to exceed $1,000.00 and imprisonment in the county jail not to exceed six months, or both a fine and sentence of imprisonment, provided the judge shall probate not less than 120 days of any sentence imposed, except as otherwise provided by law. In the event a sentence is revoked, a defendant shall not serve more than 60 days in a county jail. Any penalty provided for in this Code that includes a penalty of imprisonment up to 60 days shall not be interpreted to limit the imposition of any probated sentence in excess of 60 days up to the limits as otherwise provided by state law. Each day any violation of this Code or of any ordinance shall continue shall constitute a separate offense.