(a) Upon conviction of the driver, the court, along with imposing sentence, shall revoke the driver license or driving privilege of the person so convicted, effective on the date of conviction, and shall prescribe the period of such revocation in accordance with the following provisions:
1. Upon a first conviction for a violation of the provisions of s.
316.193, except a violation resulting in death, the driver license or driving privilege shall be revoked for at least 180 days but not more than 1 year.
2. Upon a second conviction for an offense that occurs within a period of 5 years after the date of a prior conviction for a violation of the provisions of s.
316.193 or former s. 316.1931 or a combination of such sections, the driver license or driving privilege shall be revoked for at least 5 years.
3. Upon a third conviction for an offense that occurs within a period of 10 years after the date of a prior conviction for the violation of the provisions of s.
316.193 or former s. 316.1931 or a combination of such sections, the driver license or driving privilege shall be revoked for at least 10 years.
For the purposes of this paragraph, a previous conviction outside this state for driving under the influence, driving while intoxicated, driving with an unlawful blood-alcohol level, or any other alcohol-related or drug-related traffic offense similar to the offense of driving under the influence as proscribed by s. 316.193 will be considered a previous conviction for violation of s. 316.193, and a conviction for violation of former s. 316.028, former s. 316.1931, or former s. 860.01 is considered a conviction for violation of s. 316.193.