Here ya go:
PHP Code:
new iTotalSeconds = 1233435
new iHours = iTotalSeconds / 3600
new iMinutes = (iTotalSeconds % 3600) / 60
new iSeconds = iTotalSeconds % 60
Also, "PlayTime" is a misleading name for a function that just converts total seconds into hours minutes seconds.
__________________