in reply to Subtract two timestamps

What output you need to show. Whether the difference b/w two time or after subtraction?

Moreover what you have tried so for? so that we can provide guidelines to you.

--Lakshmanan G.

The great pleasure in my life is doing what people say you cannot do.


Replies are listed 'Best First'.
Re^2: Subtract two timestamps
by sandy1028 (Sexton) on May 07, 2009 at 09:13 UTC
    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

      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