Learning PHP
Advanced PHP
PHP Function Reference
PHP Useful Resources
Selected Reading
© 2011 TutorialsPoint.COM
|
PHP Function juliantojd()
Syntax
juliantojd ( $month, $day, $year );
|
Definition and Usage
Converts a Julian Calendar date to Julian Day Count. Valid Range for Julian Calendar 4713 B.C. to 9999 A.D.
Paramters
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 |
Return Value
The julian day for the given julian date as an integer.
Example
Try out following example:
<?php
$jd = juliantojd(10,3,2007);
echo($jd . "<br />");
$julian = jdtojulian($jd);
echo($julian);
?>
|
This will produce following result:
|
|
|