I want to have a field in my MySQL db that holds a time spent value on a particular task. The problem is the TIME field type only holds specific times of day. So if a task took 30:10:54, for example, the field wouldn't allow it.
I also want to be able to add up all the times spent, for example on a particular client, to calculate the total time spent. But with a TIME field, it wouldn't add up 12:23:45 + 14:13:65 to give a total over 24 hours. Hope that makes sense.
Is there a way of holding this data in a single field? At the moment I just have a varchar field of 8 characters. I'm thinking maybe I have to have seperate hrs, mins and secs INT fields.
Any other ideas?



LinkBack URL
About LinkBacks
Reply With Quote


Bookmarks