• PHP Video Tutorials

PHP - Function jewishtojd ()



Syntax

int jewishtojd ( $month, $day, $year );

Definition and Usage

It converts a date in the Jewish Calendar to Julian Day Count.

Parameters

Sr.No Parameter & Description
1

month(Required)

The month as a number from 1 to 13

2

day(Required)

The day as a number from 1 to 30

3

year(Required)

The year as a number between 1 and 9999

Return Value

The julian day for the given jewish date as an integer.

Example

Try out following example −

<?php
   echo(jewishtojd(12,10,5060));
?> 

This will produce the following result −

2196091
php_function_reference.htm
Advertisements