I'm trying to log the number of joins in my game server (which is echoed in IRC) in an INI file using a similar format:

Quote:
[01/2009]
Monday=<num>
Tuesday=<num>
ect...
[02/2009]
Monday=<num>
Tuesday=<num>
ect...


This is how I currently have it scripted, and it seems to work fine (you can check the script out here), however this is "monthly-specific" and I'm trying to make it more "weekly-specific". So if someone joins my server on any Monday in the month, the item data (the <num>'s) for that day will increase by 1. How could I log these stats for each week of each month? How could I lock a specific category in the INI to a certain week? e.g.:


Quote:
[Week 1 - 01/2009]
Monday=<num>
Tuesday=<num>
ect...
[Week 2 - 01/2009]
Monday=<num>
Tuesday=<num>
ect...
[Week 1 - 02/2009]
Monday=<num>
Tuesday=<num>
ect...

Last edited by Joe_Dean; 25/02/09 08:49 AM.