how to Format Time Counter

I have a basic time counter for my game that counts upwards and displays on screen, i am using the beebe games class and right now have it setup to use his “comma thousands” command so that my numbers look at least decent. How i ultimately would like my timer to look though is as follows: 00:00:00. i would like it to display all of that format even from the start of the timer. (if that makes sense) here is what i am doing right now.

local mytime = display.newText( 0, 0, 0, Harrowprint, 25)  
mytime.x = display.contentWidth - 30 ; mytime.y = 15  
textGroup:insert(mytime)  
  
local function refreshtime()  
local newfresh = getCountedTime( raceTimer )  
mytime.text = game.commaThousands( newfresh )  
end  
  
--This code begins the count for my game timer  
raceTimer = resetTimeCounter()  
marcstimer = performAfterDelay( .01, refreshtime, 0 )  

so like i said this works great thus far, my question then is how can i format it like i stated above? thanks in advance [import]uid: 19620 topic_id: 8128 reply_id: 308128[/import]

look here:
http://developer.anscamobile.com/forum/2011/02/03/string-format-hms-hourminutesecond [import]uid: 12635 topic_id: 8128 reply_id: 29521[/import]

ill check it out thanks [import]uid: 19620 topic_id: 8128 reply_id: 29539[/import]