[thelist] Get time

wade wade at bayou.com
Mon Sep 30 16:59:00 CDT 2002

Could anyone help me to figure out how to write a piece of code that says
if the time now time( ) is greater than 1 hour of the time( )then do
I have a script that gets the time as of now and I also have the time of
(lets say then) stored in a database.
 how would I write the code to say if the old time is greater than 1 hour do

          $subtracted_time = $time_now - $stored_database_time;
                if ($subtracted_time > mktime(1,0,0,0,0,0))

Thank you

More information about the thelist mailing list