Get Avg. Visit Duration calculation formula


I am getting 203 as visitDuration in xml as file and Avg. Visit Duration 0:03:23

What could be the formula to calculate this.

		<metric name='visitDuration' value='203' label='Avg. Visit Duration'/>

Any Idea?


What do you mean? You want to go from a number in seconds to possibly “days hours:minute:seconds” format or the other way around?
If it’s seconds to string format:

echo gmdate("H:i:s", 685);

Check to me sure that the number isn’t bigger than 86,400
The gmdate() doc: