Microsoft Word - Core PHP Programming Using PHP to Build Dynamic Web Sites

(singke) #1

print(jdtofrench($jdc));
?>


Table 11.6. Month-Name Modes
Mode Description
0 Gregorian, abbreviated


1 Gregorian, full
2 Julian, abbreviated
3 Julian, full
4 Jewish
5 French Republican


string jdtogregorian(integer julian_day)


Use the jdtogregorian function to convert a Julian Day Count to a Gregorian date.


<?
$jdc = jewishtojd(1,1,1);
print(jdtogregorian($jdc));
?>


string jdtojewish(integer julian_day)


The jdtojewish function returns the Jewish calendar date for the given Julian Day
Count.


<?
$jdc = gregoriantojd(1,1,1);
print(jdtojewish($jdc));
?>


string jdtojulian(integer julian_day)


Use the jdtojulian function to get the Julian date for a Julian Day Count.


<?
$jdc = gregoriantojd(1,1,1);
print(jdtojulian($jdc));
?>

Free download pdf