[PHP] Need to convert seconds to DD:HH:MM:SS

2003-09-19 Thread Daevid Vincent
So clearly I'm being stupid and this seemingly basic math is beyond my abilities at the moment. I've tried various things, but can't seem to figure out how to get the number of days integrated in here for $hh that are 24. I've googled for code fragments and can't find one. All seem to deal with

RE: [PHP] Need to convert seconds to DD:HH:MM:SS

2003-09-19 Thread Jennifer Goodie
can't seem to figure out how to get the number of days integrated in here for $hh that are 24. to days:hours:minutes:seconds... This function works for what it does, can someone embelish it to handle days too? function convertToHHMMSS($seconds) { $hoursPerDay= 24;

Re: [PHP] Need to convert seconds to DD:HH:MM:SS

2003-09-19 Thread Kevin Stone
Jennifer Goodie [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] can't seem to figure out how to get the number of days integrated in here for $hh that are 24. to days:hours:minutes:seconds... This function works for what it does, can someone embelish it to handle days too?