Home : Products : Gossamer Links : Discussions :

Products: Gossamer Links: Discussions: Re: [Alex] GT::Date Usage Question: Edit Log

Here is the list of edits for this post
Re: [Alex] GT::Date Usage Question
Hi Alex,

That looks good and I think I understand the format.

I guess I should also change my $interval to seconds for this to work.

Thanks,

Ian


Code:
my $interval = $st->select('TrendInterval')->fetchrow_array;
my $lastchange = $st->select('LastChange')->fetchrow_array;
$interval = $interval * 60;
Links::init_date();
my $lastchange_sec = GT::Date::timelocal(GT::Date::parse_format($lastchange));
if (time > ($lastchange_sec + $interval)) {
# true
}


http://www.iuni.com/...tware/web/index.html
Links Plugins

Last edited by:

Ian: Jul 5, 2002, 6:34 PM

Edit Log: