The calendar extension contains a series of functions to represent the calendar date into a different format. The standard date is based on Julian Day Count. The date count starting from January 1st, 4713 B.C. is known as Julian Day Count. First, the date is converted into Julian Day Count and then converted into a calendar system.
Example: The program below illustrate the use of jdtofrench() function.
<?php
// PHP program to demonstrate the
// use of jdtofrench() function
// converts date to julian integer
$jd
= frenchtojd(1, 7, 13);
// prints the julian day integer
echo
"The julian day integer is "
,
$jd
,
"
"
;
// converts the Julian day to French date
$date
= jdtofrench(
$jd
);
// prints the date
echo
"The french date initially taken was "
, (
$date
),
"
"
;
?>
Output:
The julian day integer is 2380229 The french date initially taken was 1/7/13