Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^2: Subtract two timestamps

by sandy1028 (Sexton)
on May 07, 2009 at 09:13 UTC ( [id://762533] : note . print w/replies, xml ) Need Help??

in reply to Re: Subtract two timestamps
in thread Subtract two timestamps

I tried $start_time = time(); $diff = $end - $start; Some values in seconds I have got. I want the output in Number of Min,Number of secs

Replies are listed 'Best First'.
Re^3: Subtract two timestamps
by johngg (Canon) on May 07, 2009 at 09:19 UTC

    There are 60 seconds in a minute and 60 minutes in an hour. A quick glance at Multiplicative Operators and a little ingenuity should see you through.