Forum Moderators: coopster

Message Too Old, No Replies

want php coding/script for timing

         

Shanee

5:25 pm on Aug 9, 2006 (gmt 0)

10+ Year Member



hello... to all

any one know about coding/script which can show the different between two time for example the orignal time is 2:00PM and the current time is 2:30PM so the result will be 30 mintues

thanks

dreamcatcher

9:00 am on Aug 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Shanee,

Try reading some of the user contributed notes on the PHP.net website for the following functions:

date [uk.php.net]
mktime [uk.php.net]
strtotime [uk.php.net]

Those functions and notes should help you.

dc

r3nz0

11:35 am on Aug 10, 2006 (gmt 0)

10+ Year Member



mayb a stupid solution :)

but why don't you replace the : with nothing, and make a calculation:

230 - 200 = 30

But the original PHP date/time functions are nicer :)