Play video content Breaking News WPTV

Tiger Woods was calm, cool and collected in court, even cracking a smile on his way out after pleading guilty at his DUI hearing in Florida.

The golf legend agreed to enter a DUI diversion program at a hearing that lasted about 10 minutes. He'll also be on probation for 12 months and he must perform 50 hours of community service. The judge was adamant -- the deal means no jail time but he could face up to 90 days in jail if he's found to violate parole.

Tiger was arrested for DUI on May 29 in Jupiter, FL after cops found him asleep at the wheel of his 2015 Mercedes. Once he awoke, Tiger was a discombobulated mess and claimed he was all jacked up from a cocktail of Rx drugs.

Tiger's car had damage and it was clear he was in no shape to be behind the wheel of a car. He was initially charged with 3 misdemeanor counts -- DUI, reckless driving and improper stopping.

If Tiger completes his DUI diversion program, DUI education classes and stays out of trouble for 12 months ... the reckless driving conviction will be wiped from his record.

As part of the diversion program, Tiger is prohibited from drinking alcohol or taking drugs during the probation period.

Tiger has since apologized for the arrest -- saying he didn't know his prescription meds would have such a strong reaction. He also went to rehab.