Quote:
Originally Posted by iGetty
Yeah, use "gettime", EG:
PHP Code:
new str[20], time[3];
gettime(time[0], time[1], time[2]);
format(str, sizeof(str), "%i:%i:%i", time[0], time[1], time[2]);
Then insert it into the DB as a string (Make sure the table settings for that column is a VARCHAR).
|
Well I had a variable with seconds stored in it. Wanted to convert it to that format.