Wherever in this chapter a jail sentence is provided as alternative punishment for a violation of any of its provisions, the court trying such case may, in lieu of and instead of said jail sentence, sentence one convicted for violation of any provisions of this chapter to hard labor for the county for the same period of time as provided for the jail sentence.
Ala. Code § 28-3-21 (1975)