Help with Calendar Functions!!
| From: | Joey Garcia | Date: | Fri, 10 Nov 2000 16:29:00 +0000 |
| Subject: | Help with Calendar Functions!! | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-3780@lists.php.net to get a copy of this message | ||
I want to take a date such as 11/09/2000 and get the Julian day which would
be something like 312, any suggestions would be much appreciated!!!!
I tried to use the Julian2JD and JD2Julian but here are the results I got:
$temp=juliantojd(11,09,2000);
print $temp;
I get a result of "0" with a day of "09", but I get "2451871" when I
use
just "9", I was hoping for the Julian day of the year. I divided 2451871 by
365.25 and subtracted 4713 and I got 1999, but why was this number
returned?????
Also, I got weird results with the JD2Julian function
$temp=jdtojulian(301);
print $temp;
I got the result of 10/28/-4713