PHP jewishtojd() Function

Definition

The jewishtojd() function converts a date from the Jewish Calendar to a Julian Day Count.

Syntax

PHP jewishtojd() Function has the following syntax.

jewishtojd(month,day,year);

Parameter

ParameterIs RequiredDescription
monthRequired.Month value as a number from 1 to 13
dayRequired.Day value as a number from 1 to 30
yearRequired.Year value as a number between 1 and 9999

Return

PHP jewishtojd() Function returns a Julian Day number.

Example

Convert a Jewish date to a Julian Day Count


<?php
$jd=jewishtojd(6,20,2012);
echo $jd;
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Function reference »




PHP Array Functions
PHP Calendar Functions
PHP Class Functions
PHP Data Type Functions
PHP Date Functions
PHP File Functions
PHP Image Functions
PHP Math Functions
PHP MySQLi Functions
PHP SimpleXML Functions
PHP String Functions
PHP XML Functions
PHP Zip Functions