JDTOJEWISH
Converts a Julian day count to a Jewish calendar date
SYNTAX
jdtojewish ( int $julianday [, bool $hebrew = FALSE [, int $fl = 0 ]] ) : string
PARAMETERS
julianday
A julian day number as integer
hebrew
If the hebrew parameter is set to TRUE, the fl parameter is used for Hebrew, ISO-8859-8 encoded string based, output format.
fl
A bitmask which may consist of:
NUMBER | NAME | DESCRIPTION |
---|---|---|
0 | CAL_JEWISH_ADD_ALAFIM_GERESH | Adds a geresh symbol (which resembles a single-quote mark) as thousands separator to the year number. |
1 | CAL_JEWISH_ADD_ALAFIM | Adds the word alafim as thousands separator to the year number. |
2 | CAL_JEWISH_ADD_GERESHAYIM | Adds a gershayim symbol (which resembles a double-quote mark) before the final letter of the day and year numbers. |
RETURN
The Jewish date as a string in the form "month/day/year", or an ISO-8859-8 encoded Hebrew date string, according to the hebrew parameter.
EXAMPLES
JULIANDAY
5/3/5781
HEBREW
ג שבט התשפא
FL | CAL_JEWISH_ADD_ALAFIM_GERESH
ג שבט ה'תשפא
FL | CAL_JEWISH_ADD_ALAFIM
ג שבט ה אלפים תשפא
FL | CAL_JEWISH_ADD_GERESHAYIM
ג' שבט התשפ"א