note 16227 deleted from function.getdate by bobby

From: Date: Fri, 08 Sep 2006 14:35:35 +0000
Subject: note 16227 deleted from function.getdate by bobby
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-116909@lists.php.net to get a copy of this message
Note Submitter: ---- Another way to map US day no to European count function sunsat_to_monsun($wday) { return ($wday + 6) % 7; } And a bit faster code, to calculate it directly from timestamp: $wday = (time() % 604800 / 86400 + 3) % 7;

« previous php.notes (#116909) next »