in reply to Using Timestamp to tell if someone is on the site
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);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using Timestamp to tell if someone is on the site
by htmanning (Friar) on Jan 05, 2017 at 05:23 UTC | |
by huck (Prior) on Jan 05, 2017 at 05:31 UTC | |
by poj (Abbot) on Jan 05, 2017 at 18:22 UTC |