Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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.

    Cheers,

    JohnGG

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-25 04:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found