Monday, 26 August 2013

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.

Paramters

ParameterDescription
juliandaycountRequired. A julian day number as integer
herbewOptional. True indicates Hebrew output format
flOptional. 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(10,8,2002)) . "<br />
echo(jdtojewish(gregoriantojd(10,8,2002),true));
?> 
This will produce following result:
2/2/5763
� ���� �����

No comments:

Post a Comment