Web | This Site

Learning PHP
Advanced PHP
PHP Function Reference
PHP Useful Resources
Selected Reading
© 2011 TutorialsPoint.COM

| Home |  | References |  | Discussion Forums |  | About TP

# 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

Parameter | Description
--- | ---
juliandaycount | Required. A julian day number as integer
herbew | Optional. True indicates Hebrew output format
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(10,8,2002)) . "<br />
    echo(jdtojewish(gregoriantojd(10,8,2002),true));
    ?>

This will produce following result:

    2/2/5763
    ב חשון התשסג

Advertisement

Online Image Processing

Indian Baby Names