Flv player. show duration time and time played

Hi guys,
i am tinkering about with the flv player player.
I am trying to get the time(length) and time played to display.
From what i see the metadata.duration only displays in seconds.
Does anyone know the code to turn this into a properly displaying formatted time for the flv?