PHP jewishtojd() function

P
PHP jdtounix() function
PHP juliantojd() function

In this article, you will learn how to convert the Jewish date to Julian Day count using jewishtojd() function in PHP.

In the early ages, there was no formula to calculate the starting of a new month. So, new month started with the new moon. But now, this function can handle dates 3761 B.C (back to 1 year).

What is the syntax of the jewishtojd() function in PHP?

jewishtojd(month,day,year);

ParametersDetails
monthSpecify the month number(1-12) – Required
daySpecify the month number(1-31) – Required
yearSpecify the year number (-4714-9999)- Required
PHP jewishtojd() method

What is the syntax of the jewishtojd() function

Example 1. In the following example, we simply convert Julian Date to a Jewish date.

<?php
$j_d=jewishtojd(01,04,1998);
echo $j_d;
?>
PHP jdtounix() function
PHP juliantojd() function

Add comment

Tutor Network

Share this

Learn PHP from A to Z