co0kz
05-12-2007, 03:31 PM
looking for a way to subtract one timestamp value from another and output the result as..
ie..
$remainingtime = $timestamp1 - $timestamp2
and then output $remainingtime as the below result
resulting in..
2 Days 10 Hours 33 Minutes 14 seconds. (example)
i know and understand how the timestamp value works but i can't figure out how i would split seconds into the above example.
I've searched both here and vb.com and done a wider search and can't seem to find how this could be done without altering core files whicvh i don't really want to do if i can help it.
Ideas on how this is acheivable would be greatly appreciated.
ie..
$remainingtime = $timestamp1 - $timestamp2
and then output $remainingtime as the below result
resulting in..
2 Days 10 Hours 33 Minutes 14 seconds. (example)
i know and understand how the timestamp value works but i can't figure out how i would split seconds into the above example.
I've searched both here and vb.com and done a wider search and can't seem to find how this could be done without altering core files whicvh i don't really want to do if i can help it.
Ideas on how this is acheivable would be greatly appreciated.