Flv duration conversion

Hello,

I suck at math so this is why I’m making this post.

I need to be able to take the meta data duration value for an flv and split it up into three separate variables: hours, minutes, seconds.

Any help would be appreciated.

Thanks,
Saveth