Gossamer Forum
Home : Products : Gossamer Links : Discussions :

GT::Date Usage Question

Quote Reply
GT::Date Usage Question
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
Subject Author Views Date
Thread GT::Date Usage Question Ian 4487 Jul 5, 2002, 6:09 PM
Thread Re: [Ian] GT::Date Usage Question
Alex 4388 Jul 5, 2002, 6:14 PM
Post Re: [Alex] GT::Date Usage Question
Ian 4417 Jul 5, 2002, 6:29 PM
Thread Re: [Alex] GT::Date Usage Question
webmaster33 4393 Aug 30, 2002, 6:12 AM
Thread Re: [webmaster33] GT::Date Usage Question
Paul 4399 Aug 30, 2002, 6:14 AM
Thread Re: [Paul] GT::Date Usage Question
nt6 4336 Aug 30, 2002, 6:18 AM
Thread Re: [nt6] GT::Date Usage Question
Paul 4371 Aug 30, 2002, 6:29 AM
Thread Re: [Paul] GT::Date Usage Question
nt6 4375 Aug 30, 2002, 6:45 AM
Thread Re: [nt6] GT::Date Usage Question
Paul 4334 Aug 30, 2002, 6:49 AM
Thread Re: [Paul] GT::Date Usage Question
nt6 4318 Aug 30, 2002, 7:27 AM
Thread Re: [nt6] GT::Date Usage Question
romanslon 4215 Oct 19, 2003, 5:57 AM
Thread Re: [romanslon] GT::Date Usage Question
afinlr 4205 Oct 19, 2003, 6:41 AM
Post Re: [afinlr] GT::Date Usage Question
romanslon 4240 Oct 19, 2003, 8:06 AM
Post Re: [Paul] GT::Date Usage Question
webmaster33 4345 Aug 30, 2002, 6:28 AM