how to convert double type duration to hh:mm:ss format?


I am working on a application that reads in an mp3 ID3 tag and duration is double type and how can I convert this to hh:mm:ss format?

eg file.mp3 has 4:18 minutes/secs and the duration value is stored in the mp3 is 257.052875 (i assume its in minutes).

I have tried taking 257.052875 / 60 but I can't get the exact time reading that displays on other mp3 players.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!