RE: [PHP] Weekly Separation

From: Date: Thu, 19 Jul 2001 03:55:01 +0000
Subject: RE: [PHP] Weekly Separation
Groups: php.general 
Request: Send a blank email to php-general+get-58608@lists.php.net to get a copy of this message
> Ive been working on a way but it seems a very long and > involved method. Has anyone got any pointers or ideas > they might be able to throw at me so I can make this > a more simple method. Assuming you know the date of each entry, do a Date("z") (day of the year), and divide it by 7. Store that and compare it next time around the loop. If it's different then a week has passed and you can do Fun Stuff(tm). If it's the same then it hasn't. Jason -- Jason Murray jasonm@melbourneit.com.au Web Developer, Melbourne IT "Work now, freak later!"

« previous php.general (#58608) next »