note 22477 added to function.jddayofweek
| From: | nick at cflonline dot org | Date: | Wed, 19 Jun 2002 16:46:46 +0000 |
| Subject: | note 22477 added to function.jddayofweek | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32015@lists.php.net to get a copy of this message | ||
jddayofweek() is giving me the day previous to today's day. I'm using juliantojd() with
the date and then using that number in jddayofweek() which then gives me the wrong day.
Here is what my code looks like:
$julianday = juliantojd(06,19,2002);
$day = jddayofweek($julianday, 1);
echo $day;
Here is what I get:
Tuesday
This has happened with every day I've put in so far. At least it is consistent. Has anyone seen
this before?
--
http://www.php.net/manual/en/function.jddayofweek.php
http://master.php.net/manage/user-notes.php?action=edit+22477
http://master.php.net/manage/user-notes.php?action=delete+22477
http://master.php.net/manage/user-notes.php?action=reject+22477