note 16227 added to function.getdate
| From: | php-general at lists dot php dot net | Date: | Sun, 21 Oct 2001 20:55:22 +0000 |
| Subject: | note 16227 added to function.getdate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-19231@lists.php.net to get a copy of this message | ||
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;
--
http://www.php.net/manual/en/function.getdate.php
http://master.php.net/manage/user-notes.php?action=edit+16227
http://master.php.net/manage/user-notes.php?action=delete+16227
http://master.php.net/manage/user-notes.php?action=reject+16227