Copyright © tutorialspoint.com
| juliantojd ( $month, $day, $year ); |
Converts a Julian Calendar date to Julian Day Count. Valid Range for Julian Calendar 4713 B.C. to 9999 A.D.
| Parameter | Description |
|---|---|
| month | Required. The month as a number from 1 to 12 |
| day | Required. The day as a number from 1 to 31 |
| year | Required. The year as a number between -4713 and 9999 |
The julian day for the given julian date as an integer.
Try out following example:
<?php $jd = juliantojd(10,3,2007); echo($jd . "<br />"); $julian = jdtojulian($jd); echo($julian); ?> |
This will produce following result:
2454390 10/3/2007 |
Copyright © tutorialspoint.com