cvs: phpdoc /en/reference/calendar constants.xml /en/reference/calendar/functions jdtojewish.xml
| From: | Moshe Doron | Date: | Thu, 22 May 2003 10:34:38 +0000 |
| Subject: | cvs: phpdoc /en/reference/calendar constants.xml /en/reference/calendar/functions jdtojewish.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969353744@lists.php.net to get a copy of this message | ||
momo Thu May 22 06:34:38 2003 EDT
Modified files:
/phpdoc/en/reference/calendar constants.xml
/phpdoc/en/reference/calendar/functions jdtojewish.xml
Log:
jdtojewish optional parameters
Index: phpdoc/en/reference/calendar/constants.xml
diff -u phpdoc/en/reference/calendar/constants.xml:1.2
phpdoc/en/reference/calendar/constants.xml:1.3
--- phpdoc/en/reference/calendar/constants.xml:1.2 Mon Jun 10 03:53:21 2002
+++ phpdoc/en/reference/calendar/constants.xml Thu May 22 06:34:38 2003
@@ -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>
Index: phpdoc/en/reference/calendar/functions/jdtojewish.xml
diff -u phpdoc/en/reference/calendar/functions/jdtojewish.xml:1.2
phpdoc/en/reference/calendar/functions/jdtojewish.xml:1.3
--- phpdoc/en/reference/calendar/functions/jdtojewish.xml:1.2 Wed Apr 17 02:36:38 2002
+++ phpdoc/en/reference/calendar/functions/jdtojewish.xml Thu May 22 06:34:38 2003
@@ -1,24 +1,48 @@
<?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: