Hi,
I have these values:
$interval (interger in minutes)
$lastchange (date time in MySql format 00-00-00 00:00:00)
I want to do a simple if statement which check to see if the datetime now is greater than the $lastchange plus the interval... in other words , has the required time gone by since the last change.
My problem is in the actual usage of the GT::Date to accomplish this. And, should I initialise the date function first? "Links::init_date();"
I understand the date_diff function is working in days, not seconds, so I guess this would have to be converted.
if ( date_diff() ) {
}
http://www.iuni.com/...tware/web/index.html
Links Plugins
I have these values:
$interval (interger in minutes)
$lastchange (date time in MySql format 00-00-00 00:00:00)
I want to do a simple if statement which check to see if the datetime now is greater than the $lastchange plus the interval... in other words , has the required time gone by since the last change.
My problem is in the actual usage of the GT::Date to accomplish this. And, should I initialise the date function first? "Links::init_date();"
I understand the date_diff function is working in days, not seconds, so I guess this would have to be converted.
if ( date_diff() ) {
}
http://www.iuni.com/...tware/web/index.html
Links Plugins