• PHP Video Tutorials

PHP - Function jdtojewish()



Syntax

jdtojewish ( $juliandaycount, [$hebrew [, $fl]] );

Definition and Usage

The JDToJewish() function converts a Julian day count to a Jewish calendar date. If the hebrew parameter is set to TRUE, the fl parameter is used for Hebrew, string based, output format.

Parameters

Sr.No Parameter & Description
1

juliandaycount(Required)

A julian day number as integer

2

herbew(Optional)

True indicates Hebrew output format

3

fl

Optional. Defines the Hebrew output format. The available formats are −

  • CAL_JEWISH_ADD_ALAFIM_GERESH
  • CAL_JEWISH_ADD_ALAFIM
  • CAL_JEWISH_ADD_GERESHAYIM

Return Value

The jewish date as a string in the form "month/day/year"

Example

Try out following example −

<?php
   echo(jdtojewish(gregoriantojd(11,7,2005)) . "<br />");
   echo(jdtojewish(gregoriantojd(11,7,2005),true));
?> 

This will produce the following result −

2/5/5766
� ���� �����
php_function_reference.htm
Advertisements