Page 1 of 1

script to notify of approaching date / timestamp

Posted: Wed Feb 18, 2004 2:00 pm
by glennn3
forgive my terminology - i'm trying to create a simple notify function in an invoice script to let me know when a particular date is approaching. i can time stamp the invoice entry but i want to be notified of its expiration date (of course)...

anybody understand what the heck i'm talking about?

thanks,
glenn

Posted: Wed Feb 18, 2004 4:30 pm
by liljester

Code: Select all

$now_timestamp = mktime();
$warning_seconds = 86400;   //  1 day
$timestamp_expire = $db_expire;  //  timesamp from db?

if(($now_timestamp + $warning_seconds) >= $timestamp_expire){
   //  the timestamp is about to expire
}
hope thats what you're looking for?

Posted: Wed Feb 18, 2004 4:42 pm
by glennn3
that should do it, thanks...