Tag Archives: Calendar

Julian day

Julian day is used in the Julian date (JD) system of time measurement for scientific use by the astronomy community, presenting the interval of time in days and fractions of a day since January 1, 4713 BC Greenwich noon. Julian date is recommended for astronomical use by the International Astronomical Union.
The Julian Day Number (JDN) is the Julian day with the fractional part ignored. It is sometimes used in calendrical calculation, in which case, JDN 0 is used for the date equivalent to Monday January 1, 4713 BC in the Julian calendar.
The term Julian date is widely used to refer to the day-of-year (ordinal date) although incorrectly.
Share

JulianToJD

It converts a Julian Calendar date to Julian Day Count

Example

<?php
$jdate = juliantojd(8,4,1976);
echo $jdate . “<br />”;
$julian = jdtojulian($jdate);
echo $julian;
?>

Output

2443008
8/4/1976

Share

JDToJulian

It converts a Julian Day Count to a Julian Calendar Date

Example

<?php
$date = juliantojd(9,2,1977);
echo $date . “<br />”;
$julian = jdtojulian($date);
echo $julian;
?>

Output

2443402
9/2/1977

Share

jdtojewish

It converts a Julian day count to a Jewish calendar date

Example

<?php
echo jdtojewish(gregoriantojd(9,7,2000)) . “<br />”;
echo jdtojewish(gregoriantojd(9,7,2000),true);
?>

Output

13/7/5760
æ àìåì äúùñ

Share

JDToGregorian

It converts Julian Day Count to Gregorian date
Example

<?php
$date = gregoriantojd(9,4,1976);
echo $date . “<br />”;
$gregorian = jdtogregorian($date);
echo $gregorian;
?>

Output

2443026
9/4/1976

Share