Help with timer please

I found a function online that converts seconds to a 00:00 value


function formatTime(time:Number):String
{
	if (time > 0)
	{
		var integer:String = String((time*.0166)>>0);
		var decimal:String = String((time%60)>>0);
		return integer.length < 2?"0" + integer:integer + ":" + decimal.length < 2?"0" + decimal:decimal;
	}
	else
	{
		return String("00:00");
	}
}

That is the function and I call it in another timer function like so:


displayTime.text = formatTime(v.playheadTime);

‘v’ is my instance of FLVPlayback().

Anyway, when I compile the error I am getting is this:

1176: Comparison between a value with static type String and a possibly unrelated type int.

Can someone help me figure out what is going on? Thanks!