I'm storing a duration as a decimal 0.5 for half hour, 2 for two hours, and so on. When doing some calculations with times, I need to have this represented in H:i:s, so 0.5 = 00:30:00.
How should I approach this in Mysql? The application is small and not for public consumption, and so I'm not fussed if the solution is hackish.
My goal is to be able to use it in TIMEADD(my_time, duration). Did I miss something in the manual?