This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

yesterday/today and mysql

Help for those learning Tcl or writing their own scripts.
Post Reply
t
thede
Voice
Posts: 3
Joined: Sat Mar 31, 2007 11:27 am

yesterday/today and mysql

Post by thede »

hi guys,
im trying to get something working for hours now, but it just wont work.
what i want:
i got a mysql db with some player stats and the time when they entered the db, the time is available in unixtime, now i want a few commands like !yesterday / !week / !month / !year which should output this:
"XXXX new members entered the game [yesterday/this year/week]"

ok, i could add a new field, but i wont as the old ones wouldnt work then.
anybody got an idea ?
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Look at the 'clock' and 'duration' commands.
Post Reply