Tutorials Point


  Learning PHP
  Advanced PHP
  PHP Function Reference
  PHP Useful Resources
  Selected Reading

Copyright © 2014 by tutorialspoint



  Home     References     Discussion Forums     About TP  

PHP Function jdtojewish()


previous

Advertisements

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
ב חשון התשסג

previous Printer Friendly

Advertisements


  

Advertisements