dhms_time_format.php
This code formats a time in seconds to the appropriate Days, Hours, Minutes, Seconds format.

Example: 
	echo seconds_format(92345);

Questions, contact Joshs@santsys.com