Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Subtract two timestamps

by lakshmananindia (Chaplain)
on May 07, 2009 at 08:53 UTC ( [id://762524]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://762524]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-19 16:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found