How about just unformatted time. ie
my $lasttime=from_db($userid); my $thistime=time; if ($thistime-$lasttime<(5*60)) { print 'online'."\n"; } set_db($userid,$thistime);
In reply to Re: Using Timestamp to tell if someone is on the site
by huck
in thread Using Timestamp to tell if someone is on the site
by htmanning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |