Welcome Guest, Not a member yet? Register   Sign In
How to get time difference? [SOLVED]
#2

[eluser]vitoco[/eluser]
Code:
// timestamps
$t1 = 1000 ;
$t2 = 500 ;
// GET DIFF BETWEEN THE TWO TIMESTAMPS
$diff        = $t2 -$t1 ;
// CHANGE IT TO HOURS
$num_hours    = floor( $diff / ( 60*60 ) ) ;


Messages In This Thread
How to get time difference? [SOLVED] - by El Forum - 07-30-2009, 12:56 PM
How to get time difference? [SOLVED] - by El Forum - 07-30-2009, 01:01 PM
How to get time difference? [SOLVED] - by El Forum - 07-30-2009, 01:46 PM
How to get time difference? [SOLVED] - by El Forum - 07-30-2009, 02:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB