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
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
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