convert time field to individual integers
Posted: Thu Nov 13, 2003 5:05 am
hi,
i have a mysql TIME field in the format hh:mm:ss
How do I separate each value of hours, mins and secs and present them as integers so that i can make the proper calculations in PHP.
I tried strftime, strtotime, mktime but i cant make it work.
Please help.
i have a mysql TIME field in the format hh:mm:ss
How do I separate each value of hours, mins and secs and present them as integers so that i can make the proper calculations in PHP.
I tried strftime, strtotime, mktime but i cant make it work.
Please help.