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.

    Cheers,

    JohnGG