juliantojd
int juliantojd(int month, int day)
Converts a Julian date to a Julian day count.
Returns:
Julian day count
Description:
juliantojd() converts from a Julian calendar-formatted date to a Julian day count. The range covered is huge, from 4713 B.C. to 9999 A.D.
Version:
3+, 4+
See also:
To convert a Julian day count to a Julian calendar date:
jdtojulian()
To convert a Julian day count to another calendar system, see the other jdto* functions.
Example:
Example 4.15 Find the Julian day count for the infamous "Ides of March"
/*
"Beware the ides of March.", Act i, Scene 2, Julius Caesar
by W. Shakespeare
Notes:
The Ides of March occur on the 15th of the month.
Also, month lengths in the Julian calendar did not stabilize until 8 AD, so
our Julian day count may be off by a wee bit. :)
*/
echo juliantojd (3, 15, -44);
|