mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
jdtojewish optional parameters
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@128393 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
5b5ddfbc63
commit
6ee897a843
2 changed files with 72 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<section id="calendar.constants">
|
||||
&reftitle.constants;
|
||||
&extension.constants;
|
||||
|
@ -204,6 +204,44 @@
|
|||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
<para>
|
||||
The following constants are available since <literal>PHP</literal> 5.0.0 :
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>CAL_JEWISH_ADD_ALAFIM_GERESH</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>CAL_JEWISH_ADD_ALAFIM</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>CAL_JEWISH_ADD_GERESHAYIM</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
|
@ -1,25 +1,49 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- splitted from ./en/functions/calendar.xml, last change in rev 1.4 -->
|
||||
<refentry id="function.jdtojewish">
|
||||
<refnamediv>
|
||||
<refname>JDToJewish</refname>
|
||||
<refname>jdtojewish</refname>
|
||||
<refpurpose>
|
||||
Converts a Julian Day Count to the Jewish Calendar
|
||||
</refpurpose>
|
||||
Converts a julian day count to a jewish calendar date </refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>jdtojewish</methodname>
|
||||
<methodparam><type>int</type><parameter>julianday</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>jdtojewish</methodname>
|
||||
<methodparam><type>int</type><parameter>juliandaycount</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>bool</type><parameter>hebrew</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>fl</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Converts a Julian Day Count the the Jewish Calendar.
|
||||
Converts a Julian Day Count the the Jewish Calendar.
|
||||
</para>
|
||||
<para>
|
||||
The following option is available since <literal>PHP</literal> 5.0.0:
|
||||
</para>
|
||||
<para>
|
||||
If the the second parameter is set to true, the third parameters used for hebrew, string based, output format. the available formats are:
|
||||
<constant>CAL_JEWISH_ADD_ALAFIM_GERESH</constant>,
|
||||
<constant>CAL_JEWISH_ADD_ALAFIM</constant>,
|
||||
<constant>CAL_JEWISH_ADD_GERESHAYIM</constant>.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<example>
|
||||
<title><function>jdtojewish</function> Example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?
|
||||
echo jdtojewish(gregoriantojd(10,8,2002),true, CAL_JEWISH_ADD_GERESHAYIM+CAL_JEWISH_ADD_ALAFIM+CAL_JEWISH_ADD_ALAFIM_GERESH);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
Loading…
Reference in a new issue