cvs: phpdoc-fr /reference/calendar configure.xml constants.xml reference.xml /reference/calendar/functions cal-days-in-month.xml cal-from-jd.xml
cal-info.xml cal-to-jd.xml easter-date.xml easter-days.xml frenchtojd.xml gregoriantojd.xml jddayofweek.xml jdmonthname.xml jdtofrench.xml
jdtogregorian.xml jdtojewish.xml jdtojulian.xml jdtounix.xml jewishtojd.xml juliantojd.xml unixtojd.xml
| From: | Yannick TORRES | Date: | Wed, 05 May 2004 18:03:29 +0000 |
| Subject: | cvs: phpdoc-fr /reference/calendar configure.xml constants.xml reference.xml /reference/calendar/functions cal-days-in-month.xml cal-from-jd.xml cal-info.xml cal-to-jd.xml easter-date.xml easter-days.xml frenchtojd.xml gregoriantojd.xml jddayofweek.xml jdmonthname.xml jdtofrench.xml jdtogregorian.xml jdtojewish.xml jdtojulian.xml jdtounix.xml jewishtojd.xml juliantojd.xml unixtojd.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-2444@lists.php.net to get a copy of this message | ||
yannick Wed May 5 14:03:29 2004 EDT
Modified files:
/phpdoc-fr/reference/calendar/functions cal-days-in-month.xml
cal-from-jd.xml
cal-info.xml cal-to-jd.xml
easter-date.xml
easter-days.xml
frenchtojd.xml
gregoriantojd.xml
jddayofweek.xml
jdmonthname.xml
jdtofrench.xml
jdtogregorian.xml
jdtojewish.xml
jdtojulian.xml jdtounix.xml
jewishtojd.xml
juliantojd.xml unixtojd.xml
/phpdoc-fr/reference/calendar configure.xml constants.xml
reference.xml
Log:
synch with EN Revision
http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/cal-days-in-month.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/calendar/functions/cal-days-in-month.xml diff -u phpdoc-fr/reference/calendar/functions/cal-days-in-month.xml:1.4 phpdoc-fr/reference/calendar/functions/cal-days-in-month.xml:1.5 --- phpdoc-fr/reference/calendar/functions/cal-days-in-month.xml:1.4 Wed Feb 25 07:34:19 2004 +++ phpdoc-fr/reference/calendar/functions/cal-days-in-month.xml Wed May 5 14:03:27 2004 @@ -1,11 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/calendar.xml, last change in rev 1.19 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.cal-days-in-month"> <refnamediv> <refname>cal_days_in_month</refname> - <refpurpose>Retourne le nombre de jours dans un mois, pour une année donnée</refpurpose> + <refpurpose>Retourne le nombre de jours dans un mois, pour une année et un calendrier donné</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -21,6 +20,19 @@ pour le calendrier <parameter>calendar</parameter>. </para> <para> + <example> + <title>Exemple avec <function>cal_days_in_month</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$num = cal_days_in_month(CAL_GREGORIAN, 8, 2003); // 31 +echo "Il y a $num jours en Août 2003"; +?> +]]> + </programlisting> + </example> + </para> + <para> Voir aussi <function>jdtounix</function>. </para> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/cal-from-jd.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/calendar/functions/cal-from-jd.xml diff -u phpdoc-fr/reference/calendar/functions/cal-from-jd.xml:1.4 phpdoc-fr/reference/calendar/functions/cal-from-jd.xml:1.5 --- phpdoc-fr/reference/calendar/functions/cal-from-jd.xml:1.4 Wed Feb 25 07:34:19 2004 +++ phpdoc-fr/reference/calendar/functions/cal-from-jd.xml Wed May 5 14:03:27 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/calendar.xml, last change in rev 1.19 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> <refentry id="function.cal-from-jd"> <refnamediv> <refname>cal_from_jd</refname> @@ -25,6 +24,38 @@ <constant>CAL_FRENCH</constant>. </para> <para> + <example> + <title>Exemple avec <function>cal_from_jd</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$today = unixtojd(mktime(0, 0, 0, 8, 16, 2003)); +print_r(cal_from_jd($today, CAL_GREGORIAN)); +?> +]]> + </programlisting> + <para> + &example.outputs; + </para> + <screen> +<![CDATA[ +Array +( + [date] => 8/16/2003 + [month] => 8 + [day] => 16 + [year] => 2003 + [dow] => 6 + [abbrevdayname] => Sat + [dayname] => Saturday + [abbrevmonth] => Aug + [monthname] => August +) +]]> + </screen> + </example> + </para> + <para> Voir aussi <function>cal_to_jd</function>. </para> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/cal-info.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/calendar/functions/cal-info.xml diff -u phpdoc-fr/reference/calendar/functions/cal-info.xml:1.4 phpdoc-fr/reference/calendar/functions/cal-info.xml:1.5 --- phpdoc-fr/reference/calendar/functions/cal-info.xml:1.4 Wed Feb 25 07:34:19 2004 +++ phpdoc-fr/reference/calendar/functions/cal-info.xml Wed May 5 14:03:27 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/calendar.xml, last change in rev 1.19 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> <refentry id="function.cal-info"> <refnamediv> <refname>cal_info</refname> @@ -15,12 +14,12 @@ </methodsynopsis> <para> <function>cal_info</function> retourne des informations sur le - calendrier <function>calendar</function> spécifié, ou sur tous les + calendrier <parameter>calendar</parameter> spécifié, ou sur tous les calendriers supportés si l'argument <parameter>calendar</parameter> est omis. </para> <para> - Les informations de calendriers sont retournés dans un tableau + Les informations de calendriers sont retournées dans un tableau qui contient les éléments <literal>calname</literal>, <literal>calsymbol</literal>, <literal>month</literal>, <literal>abbrevmonth</literal> et <literal>maxdaysinmonth</literal>. http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/cal-to-jd.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/calendar/functions/cal-to-jd.xml diff -u phpdoc-fr/reference/calendar/functions/cal-to-jd.xml:1.3 phpdoc-fr/reference/calendar/functions/cal-to-jd.xml:1.4 --- phpdoc-fr/reference/calendar/functions/cal-to-jd.xml:1.3 Wed Feb 25 07:34:19 2004 +++ phpdoc-fr/reference/calendar/functions/cal-to-jd.xml Wed May 5 14:03:27 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/calendar.xml, last change in rev 1.19 --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <refentry id="function.cal-to-jd"> <refnamediv> <refname>cal_to_jd</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/easter-date.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/calendar/functions/easter-date.xml diff -u phpdoc-fr/reference/calendar/functions/easter-date.xml:1.7 phpdoc-fr/reference/calendar/functions/easter-date.xml:1.8 --- phpdoc-fr/reference/calendar/functions/easter-date.xml:1.7 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/easter-date.xml Wed May 5 14:03:27 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'easter-date' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.11 Maintainer: yannick Status: ready --> <refentry id="function.easter-date"> <refnamediv> <refname>easter_date</refname> @@ -19,9 +16,7 @@ </methodsynopsis> <para> <function>easter_date</function> retourne un timestamp UNIX pour Pâques, - à minuit, pour une année donnée. Si l'année n'est - pas précisée, c'est l'année en cours qui est - utilisée. + à minuit, pour une année donnée. </para> <para> Depuis &php; 4.3.0, le paramètre <parameter>year</parameter> @@ -29,13 +24,15 @@ </para> <para> <example> - <title>Exemples avec <function>easter_date</function></title> + <title>Exemple avec <function>easter_date</function></title> <programlisting role="php"> <![CDATA[ <?php -echo date( "M-d-Y", easter_date(1999) ); /* "Apr-04-1999" */ -echo date( "M-d-Y", easter_date(2000) ); /* "Apr-23-2000" */ -echo date( "M-d-Y", easter_date(2001) ); /* "Apr-15-2001" */ + +echo date("M-d-Y", easter_date(1999)); /* "Apr-04-1999" */ +echo date("M-d-Y", easter_date(2000)); /* "Apr-23-2000" */ +echo date("M-d-Y", easter_date(2001)); /* "Apr-15-2001" */ + ?> ]]> </programlisting> @@ -44,7 +41,7 @@ <warning> <para> <function>easter_date</function> génère une alerte - (Warning) si la date tombe hors de la zone de validité des + (Warning) si la date tombe hors de la zone de validité des timestamp UNIX (i.e. avant 1970 ou après 2037). </para> </warning> @@ -57,7 +54,7 @@ problème au calcul de la date de la lune pleine qui suit, et le dimanche suivant. L'algorithme fut introduit vers 532, par Dionysius Exiguus. Avec le calendrier Julien, (pour les années avant 1753), - un cycle de 19 ans suffit pour connaître les date des phases de la + un cycle de 19 ans suffit pour connaître les dates des phases de la lune. Avec le calendrier grégorien, (à partir des années 1753, conçu par Clavius et Lilius, puis introduit par le pape Grégoire XIII en octobre 1582, et en Grande Bretagne et ses colonies en septembre 1752), http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/easter-days.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/calendar/functions/easter-days.xml diff -u phpdoc-fr/reference/calendar/functions/easter-days.xml:1.6 phpdoc-fr/reference/calendar/functions/easter-days.xml:1.7 --- phpdoc-fr/reference/calendar/functions/easter-days.xml:1.6 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/easter-days.xml Wed May 5 14:03:27 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'easter-days' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> <refentry id="function.easter-days"> <refnamediv> <refname>easter_days</refname> @@ -48,9 +45,11 @@ <programlisting role="php"> <![CDATA[ <?php - echo easter_days(1999); /* 14, i.e. 4 Avril */ - echo easter_days(1492); /* 32, i.e. 22 Avril */ - echo easter_days(1913); /* 2, i.e. 23 Mars */ + +echo easter_days(1999); /* 14, i.e. 4 Avril */ +echo easter_days(1492); /* 32, i.e. 22 Avril */ +echo easter_days(1913); /* 2, i.e. 23 Mars */ + ?> ]]> </programlisting> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/frenchtojd.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/calendar/functions/frenchtojd.xml diff -u phpdoc-fr/reference/calendar/functions/frenchtojd.xml:1.6 phpdoc-fr/reference/calendar/functions/frenchtojd.xml:1.7 --- phpdoc-fr/reference/calendar/functions/frenchtojd.xml:1.6 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/frenchtojd.xml Wed May 5 14:03:27 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'frenchtojd' in en/ tree in rev 1.4 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.frenchtojd"> <refnamediv> <refname>frenchtojd</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/gregoriantojd.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/calendar/functions/gregoriantojd.xml diff -u phpdoc-fr/reference/calendar/functions/gregoriantojd.xml:1.6 phpdoc-fr/reference/calendar/functions/gregoriantojd.xml:1.7 --- phpdoc-fr/reference/calendar/functions/gregoriantojd.xml:1.6 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/gregoriantojd.xml Wed May 5 14:03:27 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'gregoriantojd' in en/ tree in rev 1.4 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <refentry id="function.gregoriantojd"> <refnamediv> <refname>gregoriantojd</refname> @@ -28,7 +25,7 @@ une telle utilisation n'est pas significative. En effet, ce calendrier fut créé le 18 octobre 1582 après J.C. (ou 5 octobre 1582 en calendrier grec). Certains pays ne l'acceptèrent que bien plus - tard. Par exemple, les britanniques n'y passèrent en 1752, les + tard. Par exemple, les britanniques n'y passèrent qu'en 1752, les Russes en 1918 et les Grecs en 1923. La plupart des pays européens utilisaient le calendrier Julien avant le Grégorien. <example> @@ -36,10 +33,10 @@ <programlisting role="php"> <![CDATA[ <?php - $jd = gregoriantojd(10,11,1970); - echo("$jd\n"); - $gregorian = jdtogregorian($jd); - echo("$gregorian\n"); +$jd = gregoriantojd(10,11,1970); +echo "$jd\n"; +$gregorian = jdtogregorian($jd); +echo "$gregorian\n"; ?> ]]> </programlisting> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/jddayofweek.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/calendar/functions/jddayofweek.xml diff -u phpdoc-fr/reference/calendar/functions/jddayofweek.xml:1.6 phpdoc-fr/reference/calendar/functions/jddayofweek.xml:1.7 --- phpdoc-fr/reference/calendar/functions/jddayofweek.xml:1.6 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/jddayofweek.xml Wed May 5 14:03:28 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'jddayofweek' in en/ tree in rev 1.4 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.jddayofweek"> <refnamediv> <refname>jddayofweek</refname> @@ -34,19 +31,22 @@ <tbody> <row> <entry>0</entry> - <entry>Retourne le numéro du jour comme un entier + <entry> + Retourne le numéro du jour comme un entier (0=dimanche, 1=lundi, etc.) </entry> </row> <row> <entry>1</entry> - <entry>Retourne une chaîne contenant le nom du jour + <entry> + Retourne une chaîne contenant le nom du jour (anglais grégorien) </entry> </row> <row> <entry>2</entry> - <entry>Retourne une chaîne contenant le nom abrégé du + <entry> + Retourne une chaîne contenant le nom abrégé du jour de la semaine (anglais grégorien). </entry> </row> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/jdmonthname.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/calendar/functions/jdmonthname.xml diff -u phpdoc-fr/reference/calendar/functions/jdmonthname.xml:1.6 phpdoc-fr/reference/calendar/functions/jdmonthname.xml:1.7 --- phpdoc-fr/reference/calendar/functions/jdmonthname.xml:1.6 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/jdmonthname.xml Wed May 5 14:03:28 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'jdmonthname' in en/ tree in rev 1.4 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.jdmonthname"> <refnamediv> <refname>jdmonthname</refname> @@ -27,32 +24,39 @@ <row> <entry>Mode</entry> <entry>Signification</entry> + <entry>Valeurs</entry> </row> </thead> <tbody> <row> <entry>0</entry> <entry>Grégorien - abrégé</entry> + <entry>Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec</entry> </row> <row> <entry>1</entry> <entry>Grégorien</entry> + <entry>January, February, March, April, May, June, July, August, September, October, November, December</entry> </row> <row> <entry>2</entry> <entry>Julien - abrégé</entry> + <entry>Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec</entry> </row> <row> <entry>3</entry> <entry>Julien</entry> + <entry>January, February, March, April, May, June, July, August, September, October, November, December</entry> </row> <row> <entry>4</entry> <entry>Juif</entry> + <entry>Tishri, Heshvan, Kislev, Tevet, Shevat, AdarI, AdarII, Nisan, Iyyar, Sivan, Tammuz, Av, Elul</entry> </row> <row> <entry>5</entry> <entry>Républicain français</entry> + <entry>Vendemiaire, Brumaire, Frimaire, Nivose, Pluviose, Ventose, Germinal, Floreal, Prairial, Messidor, Thermidor, Fructidor, Extra</entry> </row> </tbody> </tgroup> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/jdtofrench.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/calendar/functions/jdtofrench.xml diff -u phpdoc-fr/reference/calendar/functions/jdtofrench.xml:1.5 phpdoc-fr/reference/calendar/functions/jdtofrench.xml:1.6 --- phpdoc-fr/reference/calendar/functions/jdtofrench.xml:1.5 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/jdtofrench.xml Wed May 5 14:03:28 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'jdtofrench' in en/ tree in rev 1.4 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.jdtofrench"> <refnamediv> <refname>jdtofrench</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/jdtogregorian.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/calendar/functions/jdtogregorian.xml diff -u phpdoc-fr/reference/calendar/functions/jdtogregorian.xml:1.6 phpdoc-fr/reference/calendar/functions/jdtogregorian.xml:1.7 --- phpdoc-fr/reference/calendar/functions/jdtogregorian.xml:1.6 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/jdtogregorian.xml Wed May 5 14:03:28 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'jdtogregorian' in en/ tree in rev 1.4 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.jdtogregorian"> <refnamediv> <refname>jdtogregorian</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/jdtojewish.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/calendar/functions/jdtojewish.xml diff -u phpdoc-fr/reference/calendar/functions/jdtojewish.xml:1.6 phpdoc-fr/reference/calendar/functions/jdtojewish.xml:1.7 --- phpdoc-fr/reference/calendar/functions/jdtojewish.xml:1.6 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/jdtojewish.xml Wed May 5 14:03:28 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'jdtojewish' in en/ tree in rev 1.4 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.11 Maintainer: yannick Status: ready --> <refentry id="function.jdtojewish"> <refnamediv> <refname>jdtojewish</refname> @@ -42,7 +39,7 @@ <programlisting role="php"> <![CDATA[ <?php - echo jdtojewish(gregoriantojd(10,8,2002), true, +echo jdtojewish(gregoriantojd(10, 8, 2002), true, CAL_JEWISH_ADD_GERESHAYIM + CAL_JEWISH_ADD_ALAFIM + CAL_JEWISH_ADD_ALAFIM_GERESH); ?> ]]> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/jdtojulian.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/calendar/functions/jdtojulian.xml diff -u phpdoc-fr/reference/calendar/functions/jdtojulian.xml:1.6 phpdoc-fr/reference/calendar/functions/jdtojulian.xml:1.7 --- phpdoc-fr/reference/calendar/functions/jdtojulian.xml:1.6 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/jdtojulian.xml Wed May 5 14:03:28 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'jdtojulian' in en/ tree in rev 1.4 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.jdtojulian"> <refnamediv> <refname>jdtojulian</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/jdtounix.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-fr/reference/calendar/functions/jdtounix.xml diff -u phpdoc-fr/reference/calendar/functions/jdtounix.xml:1.8 phpdoc-fr/reference/calendar/functions/jdtounix.xml:1.9 --- phpdoc-fr/reference/calendar/functions/jdtounix.xml:1.8 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/jdtounix.xml Wed May 5 14:03:28 2004 @@ -1,14 +1,11 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'jdtounix' in en/ tree in rev 1.3 --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <refentry id="function.jdtounix"> <refnamediv> <refname>jdtounix</refname> <refpurpose> - Convertit un nombre de jours Julien en timestamp UNIX + Convertit un jours Julien en timestamp UNIX </refpurpose> </refnamediv> <refsect1> @@ -19,11 +16,12 @@ </methodsynopsis> <para> <function>jdtounix</function> retourne un timestamp UNIX - correspondant au nombre de jours Julien <parameter>jday</parameter> + correspondant au jours Julien <parameter>jday</parameter> ou &false; si <parameter>jday</parameter> n'est pas dans l'intervalle de validité de l'époque UNIX. (années grégoriennes entre 1970 et 2037 ou 2440588 <= <parameter>jday</parameter> <= 2465342 ). + Le temps retourné est un temps local (et non GMT). </para> <para> Voir aussi http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/jewishtojd.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/calendar/functions/jewishtojd.xml diff -u phpdoc-fr/reference/calendar/functions/jewishtojd.xml:1.6 phpdoc-fr/reference/calendar/functions/jewishtojd.xml:1.7 --- phpdoc-fr/reference/calendar/functions/jewishtojd.xml:1.6 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/jewishtojd.xml Wed May 5 14:03:28 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'jewishtojd' in en/ tree in rev 1.4 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.jewishtojd"> <refnamediv> <refname>jewishtojd</refname> @@ -22,8 +19,6 @@ <para> Bien qu'il soit possible de manipuler des dates à partir de l'an 1 (3761 avant J.C.), une telle utilisation a peu de sens. - </para> - <para> Le calendrier juif a été utilisé depuis plusieurs dizaines de siècles, mais dans les premiers temps, il n'y avait pas de formule pour déterminer le début du mois. Un nouveau http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/juliantojd.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/calendar/functions/juliantojd.xml diff -u phpdoc-fr/reference/calendar/functions/juliantojd.xml:1.6 phpdoc-fr/reference/calendar/functions/juliantojd.xml:1.7 --- phpdoc-fr/reference/calendar/functions/juliantojd.xml:1.6 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/juliantojd.xml Wed May 5 14:03:28 2004 @@ -1,14 +1,11 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'juliantojd' in en/ tree in rev 1.4 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.juliantojd"> <refnamediv> <refname>juliantojd</refname> <refpurpose> - Convertit le nombre de jours du calendrier Julien en date du calendrier + Convertit un jours du calendrier Julien en un nombre de jours du calendrier Julien. </refpurpose> </refnamediv> @@ -33,6 +30,13 @@ début de l'année variait suivant les peuples, certains n'acceptant pas janvier comme premier mois de l'année. </para> + <caution> + <para> + Souvenez-vous, le calendrier courant du système utilisé sur le Web est un calendrier + Grégorien. <function>gregoriantojd</function> peut être utilisé pour convertir ce genre + de dates en un nombre de jours du calendrier Julien. + </para> + </caution> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/unixtojd.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/calendar/functions/unixtojd.xml diff -u phpdoc-fr/reference/calendar/functions/unixtojd.xml:1.5 phpdoc-fr/reference/calendar/functions/unixtojd.xml:1.6 --- phpdoc-fr/reference/calendar/functions/unixtojd.xml:1.5 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/unixtojd.xml Wed May 5 14:03:28 2004 @@ -1,14 +1,11 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'unixtojd' in en/ tree in rev 1.3 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.unixtojd"> <refnamediv> <refname>unixtojd</refname> <refpurpose> - Convertit un timestamp UNIX en nombre de jours Julien + Convertit un timestamp UNIX en un jours Julien </refpurpose> </refnamediv> <refsect1> @@ -18,7 +15,7 @@ <methodparam choice="opt"><type>int</type><parameter>timestamp</parameter></methodparam> </methodsynopsis> <para> - <function>unixtojd</function> retourne le nombre de jours Julien du + <function>unixtojd</function> retourne le jours Julien du timestamp UNIX <parameter>timestamp</parameter> (nombre de secondes depuis le 1/1/1970), ou pour le jour courant si <parameter>timestamp</parameter> est omis. http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/configure.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/calendar/configure.xml diff -u phpdoc-fr/reference/calendar/configure.xml:1.3 phpdoc-fr/reference/calendar/configure.xml:1.4 --- phpdoc-fr/reference/calendar/configure.xml:1.3 Wed Feb 25 07:34:18 2004 +++ phpdoc-fr/reference/calendar/configure.xml Wed May 5 14:03:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <section id="calendar.installation"> &reftitle.install; <para> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/constants.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-fr/reference/calendar/constants.xml diff -u phpdoc-fr/reference/calendar/constants.xml:1.2 phpdoc-fr/reference/calendar/constants.xml:1.3 --- phpdoc-fr/reference/calendar/constants.xml:1.2 Wed Feb 25 07:34:18 2004 +++ phpdoc-fr/reference/calendar/constants.xml Wed May 5 14:03:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <section id="calendar.constants"> &reftitle.constants; &extension.constants; @@ -209,6 +209,44 @@ </listitem> </varlistentry> </variablelist> + <para> + Les constantes suivantes sont disponibles depuis &php; 5.0.0 : + </para> + <variablelist> + <varlistentry> + <term> + <constant>CAL_JEWISH_ADD_ALAFIM_GERESH</constant> + (&integer;) + </term> + <listitem> + <simpara> + + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>CAL_JEWISH_ADD_ALAFIM</constant> + (&integer;) + </term> + <listitem> + <simpara> + + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>CAL_JEWISH_ADD_GERESHAYIM</constant> + (&integer;) + </term> + <listitem> + <simpara> + + </simpara> + </listitem> + </varlistentry> + </variablelist> </section> <!-- Keep this comment at the end of the file http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/reference.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/calendar/reference.xml diff -u phpdoc-fr/reference/calendar/reference.xml:1.6 phpdoc-fr/reference/calendar/reference.xml:1.7 --- phpdoc-fr/reference/calendar/reference.xml:1.6 Wed Feb 25 07:34:18 2004 +++ phpdoc-fr/reference/calendar/reference.xml Wed May 5 14:03:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> <reference id="ref.calendar"> <title>Calendrier</title> <titleabbrev>Calendrier</titleabbrev>
http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/cal-days-in-month.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/calendar/functions/cal-days-in-month.xml diff -u phpdoc-fr/reference/calendar/functions/cal-days-in-month.xml:1.4 phpdoc-fr/reference/calendar/functions/cal-days-in-month.xml:1.5 --- phpdoc-fr/reference/calendar/functions/cal-days-in-month.xml:1.4 Wed Feb 25 07:34:19 2004 +++ phpdoc-fr/reference/calendar/functions/cal-days-in-month.xml Wed May 5 14:03:27 2004 @@ -1,11 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/calendar.xml, last change in rev 1.19 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.cal-days-in-month"> <refnamediv> <refname>cal_days_in_month</refname> - <refpurpose>Retourne le nombre de jours dans un mois, pour une année donnée</refpurpose> + <refpurpose>Retourne le nombre de jours dans un mois, pour une année et un calendrier donné</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -21,6 +20,19 @@ pour le calendrier <parameter>calendar</parameter>. </para> <para> + <example> + <title>Exemple avec <function>cal_days_in_month</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$num = cal_days_in_month(CAL_GREGORIAN, 8, 2003); // 31 +echo "Il y a $num jours en Août 2003"; +?> +]]> + </programlisting> + </example> + </para> + <para> Voir aussi <function>jdtounix</function>. </para> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/cal-from-jd.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/calendar/functions/cal-from-jd.xml diff -u phpdoc-fr/reference/calendar/functions/cal-from-jd.xml:1.4 phpdoc-fr/reference/calendar/functions/cal-from-jd.xml:1.5 --- phpdoc-fr/reference/calendar/functions/cal-from-jd.xml:1.4 Wed Feb 25 07:34:19 2004 +++ phpdoc-fr/reference/calendar/functions/cal-from-jd.xml Wed May 5 14:03:27 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/calendar.xml, last change in rev 1.19 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> <refentry id="function.cal-from-jd"> <refnamediv> <refname>cal_from_jd</refname> @@ -25,6 +24,38 @@ <constant>CAL_FRENCH</constant>. </para> <para> + <example> + <title>Exemple avec <function>cal_from_jd</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$today = unixtojd(mktime(0, 0, 0, 8, 16, 2003)); +print_r(cal_from_jd($today, CAL_GREGORIAN)); +?> +]]> + </programlisting> + <para> + &example.outputs; + </para> + <screen> +<![CDATA[ +Array +( + [date] => 8/16/2003 + [month] => 8 + [day] => 16 + [year] => 2003 + [dow] => 6 + [abbrevdayname] => Sat + [dayname] => Saturday + [abbrevmonth] => Aug + [monthname] => August +) +]]> + </screen> + </example> + </para> + <para> Voir aussi <function>cal_to_jd</function>. </para> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/cal-info.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/calendar/functions/cal-info.xml diff -u phpdoc-fr/reference/calendar/functions/cal-info.xml:1.4 phpdoc-fr/reference/calendar/functions/cal-info.xml:1.5 --- phpdoc-fr/reference/calendar/functions/cal-info.xml:1.4 Wed Feb 25 07:34:19 2004 +++ phpdoc-fr/reference/calendar/functions/cal-info.xml Wed May 5 14:03:27 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/calendar.xml, last change in rev 1.19 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> <refentry id="function.cal-info"> <refnamediv> <refname>cal_info</refname> @@ -15,12 +14,12 @@ </methodsynopsis> <para> <function>cal_info</function> retourne des informations sur le - calendrier <function>calendar</function> spécifié, ou sur tous les + calendrier <parameter>calendar</parameter> spécifié, ou sur tous les calendriers supportés si l'argument <parameter>calendar</parameter> est omis. </para> <para> - Les informations de calendriers sont retournés dans un tableau + Les informations de calendriers sont retournées dans un tableau qui contient les éléments <literal>calname</literal>, <literal>calsymbol</literal>, <literal>month</literal>, <literal>abbrevmonth</literal> et <literal>maxdaysinmonth</literal>. http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/cal-to-jd.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/calendar/functions/cal-to-jd.xml diff -u phpdoc-fr/reference/calendar/functions/cal-to-jd.xml:1.3 phpdoc-fr/reference/calendar/functions/cal-to-jd.xml:1.4 --- phpdoc-fr/reference/calendar/functions/cal-to-jd.xml:1.3 Wed Feb 25 07:34:19 2004 +++ phpdoc-fr/reference/calendar/functions/cal-to-jd.xml Wed May 5 14:03:27 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/calendar.xml, last change in rev 1.19 --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <refentry id="function.cal-to-jd"> <refnamediv> <refname>cal_to_jd</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/easter-date.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/calendar/functions/easter-date.xml diff -u phpdoc-fr/reference/calendar/functions/easter-date.xml:1.7 phpdoc-fr/reference/calendar/functions/easter-date.xml:1.8 --- phpdoc-fr/reference/calendar/functions/easter-date.xml:1.7 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/easter-date.xml Wed May 5 14:03:27 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'easter-date' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.11 Maintainer: yannick Status: ready --> <refentry id="function.easter-date"> <refnamediv> <refname>easter_date</refname> @@ -19,9 +16,7 @@ </methodsynopsis> <para> <function>easter_date</function> retourne un timestamp UNIX pour Pâques, - à minuit, pour une année donnée. Si l'année n'est - pas précisée, c'est l'année en cours qui est - utilisée. + à minuit, pour une année donnée. </para> <para> Depuis &php; 4.3.0, le paramètre <parameter>year</parameter> @@ -29,13 +24,15 @@ </para> <para> <example> - <title>Exemples avec <function>easter_date</function></title> + <title>Exemple avec <function>easter_date</function></title> <programlisting role="php"> <![CDATA[ <?php -echo date( "M-d-Y", easter_date(1999) ); /* "Apr-04-1999" */ -echo date( "M-d-Y", easter_date(2000) ); /* "Apr-23-2000" */ -echo date( "M-d-Y", easter_date(2001) ); /* "Apr-15-2001" */ + +echo date("M-d-Y", easter_date(1999)); /* "Apr-04-1999" */ +echo date("M-d-Y", easter_date(2000)); /* "Apr-23-2000" */ +echo date("M-d-Y", easter_date(2001)); /* "Apr-15-2001" */ + ?> ]]> </programlisting> @@ -44,7 +41,7 @@ <warning> <para> <function>easter_date</function> génère une alerte - (Warning) si la date tombe hors de la zone de validité des + (Warning) si la date tombe hors de la zone de validité des timestamp UNIX (i.e. avant 1970 ou après 2037). </para> </warning> @@ -57,7 +54,7 @@ problème au calcul de la date de la lune pleine qui suit, et le dimanche suivant. L'algorithme fut introduit vers 532, par Dionysius Exiguus. Avec le calendrier Julien, (pour les années avant 1753), - un cycle de 19 ans suffit pour connaître les date des phases de la + un cycle de 19 ans suffit pour connaître les dates des phases de la lune. Avec le calendrier grégorien, (à partir des années 1753, conçu par Clavius et Lilius, puis introduit par le pape Grégoire XIII en octobre 1582, et en Grande Bretagne et ses colonies en septembre 1752), http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/easter-days.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/calendar/functions/easter-days.xml diff -u phpdoc-fr/reference/calendar/functions/easter-days.xml:1.6 phpdoc-fr/reference/calendar/functions/easter-days.xml:1.7 --- phpdoc-fr/reference/calendar/functions/easter-days.xml:1.6 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/easter-days.xml Wed May 5 14:03:27 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'easter-days' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> <refentry id="function.easter-days"> <refnamediv> <refname>easter_days</refname> @@ -48,9 +45,11 @@ <programlisting role="php"> <![CDATA[ <?php - echo easter_days(1999); /* 14, i.e. 4 Avril */ - echo easter_days(1492); /* 32, i.e. 22 Avril */ - echo easter_days(1913); /* 2, i.e. 23 Mars */ + +echo easter_days(1999); /* 14, i.e. 4 Avril */ +echo easter_days(1492); /* 32, i.e. 22 Avril */ +echo easter_days(1913); /* 2, i.e. 23 Mars */ + ?> ]]> </programlisting> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/frenchtojd.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/calendar/functions/frenchtojd.xml diff -u phpdoc-fr/reference/calendar/functions/frenchtojd.xml:1.6 phpdoc-fr/reference/calendar/functions/frenchtojd.xml:1.7 --- phpdoc-fr/reference/calendar/functions/frenchtojd.xml:1.6 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/frenchtojd.xml Wed May 5 14:03:27 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'frenchtojd' in en/ tree in rev 1.4 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.frenchtojd"> <refnamediv> <refname>frenchtojd</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/gregoriantojd.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/calendar/functions/gregoriantojd.xml diff -u phpdoc-fr/reference/calendar/functions/gregoriantojd.xml:1.6 phpdoc-fr/reference/calendar/functions/gregoriantojd.xml:1.7 --- phpdoc-fr/reference/calendar/functions/gregoriantojd.xml:1.6 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/gregoriantojd.xml Wed May 5 14:03:27 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'gregoriantojd' in en/ tree in rev 1.4 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <refentry id="function.gregoriantojd"> <refnamediv> <refname>gregoriantojd</refname> @@ -28,7 +25,7 @@ une telle utilisation n'est pas significative. En effet, ce calendrier fut créé le 18 octobre 1582 après J.C. (ou 5 octobre 1582 en calendrier grec). Certains pays ne l'acceptèrent que bien plus - tard. Par exemple, les britanniques n'y passèrent en 1752, les + tard. Par exemple, les britanniques n'y passèrent qu'en 1752, les Russes en 1918 et les Grecs en 1923. La plupart des pays européens utilisaient le calendrier Julien avant le Grégorien. <example> @@ -36,10 +33,10 @@ <programlisting role="php"> <![CDATA[ <?php - $jd = gregoriantojd(10,11,1970); - echo("$jd\n"); - $gregorian = jdtogregorian($jd); - echo("$gregorian\n"); +$jd = gregoriantojd(10,11,1970); +echo "$jd\n"; +$gregorian = jdtogregorian($jd); +echo "$gregorian\n"; ?> ]]> </programlisting> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/jddayofweek.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/calendar/functions/jddayofweek.xml diff -u phpdoc-fr/reference/calendar/functions/jddayofweek.xml:1.6 phpdoc-fr/reference/calendar/functions/jddayofweek.xml:1.7 --- phpdoc-fr/reference/calendar/functions/jddayofweek.xml:1.6 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/jddayofweek.xml Wed May 5 14:03:28 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'jddayofweek' in en/ tree in rev 1.4 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.jddayofweek"> <refnamediv> <refname>jddayofweek</refname> @@ -34,19 +31,22 @@ <tbody> <row> <entry>0</entry> - <entry>Retourne le numéro du jour comme un entier + <entry> + Retourne le numéro du jour comme un entier (0=dimanche, 1=lundi, etc.) </entry> </row> <row> <entry>1</entry> - <entry>Retourne une chaîne contenant le nom du jour + <entry> + Retourne une chaîne contenant le nom du jour (anglais grégorien) </entry> </row> <row> <entry>2</entry> - <entry>Retourne une chaîne contenant le nom abrégé du + <entry> + Retourne une chaîne contenant le nom abrégé du jour de la semaine (anglais grégorien). </entry> </row> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/jdmonthname.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/calendar/functions/jdmonthname.xml diff -u phpdoc-fr/reference/calendar/functions/jdmonthname.xml:1.6 phpdoc-fr/reference/calendar/functions/jdmonthname.xml:1.7 --- phpdoc-fr/reference/calendar/functions/jdmonthname.xml:1.6 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/jdmonthname.xml Wed May 5 14:03:28 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'jdmonthname' in en/ tree in rev 1.4 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.jdmonthname"> <refnamediv> <refname>jdmonthname</refname> @@ -27,32 +24,39 @@ <row> <entry>Mode</entry> <entry>Signification</entry> + <entry>Valeurs</entry> </row> </thead> <tbody> <row> <entry>0</entry> <entry>Grégorien - abrégé</entry> + <entry>Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec</entry> </row> <row> <entry>1</entry> <entry>Grégorien</entry> + <entry>January, February, March, April, May, June, July, August, September, October, November, December</entry> </row> <row> <entry>2</entry> <entry>Julien - abrégé</entry> + <entry>Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec</entry> </row> <row> <entry>3</entry> <entry>Julien</entry> + <entry>January, February, March, April, May, June, July, August, September, October, November, December</entry> </row> <row> <entry>4</entry> <entry>Juif</entry> + <entry>Tishri, Heshvan, Kislev, Tevet, Shevat, AdarI, AdarII, Nisan, Iyyar, Sivan, Tammuz, Av, Elul</entry> </row> <row> <entry>5</entry> <entry>Républicain français</entry> + <entry>Vendemiaire, Brumaire, Frimaire, Nivose, Pluviose, Ventose, Germinal, Floreal, Prairial, Messidor, Thermidor, Fructidor, Extra</entry> </row> </tbody> </tgroup> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/jdtofrench.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/calendar/functions/jdtofrench.xml diff -u phpdoc-fr/reference/calendar/functions/jdtofrench.xml:1.5 phpdoc-fr/reference/calendar/functions/jdtofrench.xml:1.6 --- phpdoc-fr/reference/calendar/functions/jdtofrench.xml:1.5 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/jdtofrench.xml Wed May 5 14:03:28 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'jdtofrench' in en/ tree in rev 1.4 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.jdtofrench"> <refnamediv> <refname>jdtofrench</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/jdtogregorian.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/calendar/functions/jdtogregorian.xml diff -u phpdoc-fr/reference/calendar/functions/jdtogregorian.xml:1.6 phpdoc-fr/reference/calendar/functions/jdtogregorian.xml:1.7 --- phpdoc-fr/reference/calendar/functions/jdtogregorian.xml:1.6 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/jdtogregorian.xml Wed May 5 14:03:28 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'jdtogregorian' in en/ tree in rev 1.4 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.jdtogregorian"> <refnamediv> <refname>jdtogregorian</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/jdtojewish.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/calendar/functions/jdtojewish.xml diff -u phpdoc-fr/reference/calendar/functions/jdtojewish.xml:1.6 phpdoc-fr/reference/calendar/functions/jdtojewish.xml:1.7 --- phpdoc-fr/reference/calendar/functions/jdtojewish.xml:1.6 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/jdtojewish.xml Wed May 5 14:03:28 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'jdtojewish' in en/ tree in rev 1.4 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.11 Maintainer: yannick Status: ready --> <refentry id="function.jdtojewish"> <refnamediv> <refname>jdtojewish</refname> @@ -42,7 +39,7 @@ <programlisting role="php"> <![CDATA[ <?php - echo jdtojewish(gregoriantojd(10,8,2002), true, +echo jdtojewish(gregoriantojd(10, 8, 2002), true, CAL_JEWISH_ADD_GERESHAYIM + CAL_JEWISH_ADD_ALAFIM + CAL_JEWISH_ADD_ALAFIM_GERESH); ?> ]]> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/jdtojulian.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/calendar/functions/jdtojulian.xml diff -u phpdoc-fr/reference/calendar/functions/jdtojulian.xml:1.6 phpdoc-fr/reference/calendar/functions/jdtojulian.xml:1.7 --- phpdoc-fr/reference/calendar/functions/jdtojulian.xml:1.6 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/jdtojulian.xml Wed May 5 14:03:28 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'jdtojulian' in en/ tree in rev 1.4 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.jdtojulian"> <refnamediv> <refname>jdtojulian</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/jdtounix.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-fr/reference/calendar/functions/jdtounix.xml diff -u phpdoc-fr/reference/calendar/functions/jdtounix.xml:1.8 phpdoc-fr/reference/calendar/functions/jdtounix.xml:1.9 --- phpdoc-fr/reference/calendar/functions/jdtounix.xml:1.8 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/jdtounix.xml Wed May 5 14:03:28 2004 @@ -1,14 +1,11 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'jdtounix' in en/ tree in rev 1.3 --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <refentry id="function.jdtounix"> <refnamediv> <refname>jdtounix</refname> <refpurpose> - Convertit un nombre de jours Julien en timestamp UNIX + Convertit un jours Julien en timestamp UNIX </refpurpose> </refnamediv> <refsect1> @@ -19,11 +16,12 @@ </methodsynopsis> <para> <function>jdtounix</function> retourne un timestamp UNIX - correspondant au nombre de jours Julien <parameter>jday</parameter> + correspondant au jours Julien <parameter>jday</parameter> ou &false; si <parameter>jday</parameter> n'est pas dans l'intervalle de validité de l'époque UNIX. (années grégoriennes entre 1970 et 2037 ou 2440588 <= <parameter>jday</parameter> <= 2465342 ). + Le temps retourné est un temps local (et non GMT). </para> <para> Voir aussi http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/jewishtojd.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/calendar/functions/jewishtojd.xml diff -u phpdoc-fr/reference/calendar/functions/jewishtojd.xml:1.6 phpdoc-fr/reference/calendar/functions/jewishtojd.xml:1.7 --- phpdoc-fr/reference/calendar/functions/jewishtojd.xml:1.6 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/jewishtojd.xml Wed May 5 14:03:28 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'jewishtojd' in en/ tree in rev 1.4 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.jewishtojd"> <refnamediv> <refname>jewishtojd</refname> @@ -22,8 +19,6 @@ <para> Bien qu'il soit possible de manipuler des dates à partir de l'an 1 (3761 avant J.C.), une telle utilisation a peu de sens. - </para> - <para> Le calendrier juif a été utilisé depuis plusieurs dizaines de siècles, mais dans les premiers temps, il n'y avait pas de formule pour déterminer le début du mois. Un nouveau http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/juliantojd.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/calendar/functions/juliantojd.xml diff -u phpdoc-fr/reference/calendar/functions/juliantojd.xml:1.6 phpdoc-fr/reference/calendar/functions/juliantojd.xml:1.7 --- phpdoc-fr/reference/calendar/functions/juliantojd.xml:1.6 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/juliantojd.xml Wed May 5 14:03:28 2004 @@ -1,14 +1,11 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'juliantojd' in en/ tree in rev 1.4 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.juliantojd"> <refnamediv> <refname>juliantojd</refname> <refpurpose> - Convertit le nombre de jours du calendrier Julien en date du calendrier + Convertit un jours du calendrier Julien en un nombre de jours du calendrier Julien. </refpurpose> </refnamediv> @@ -33,6 +30,13 @@ début de l'année variait suivant les peuples, certains n'acceptant pas janvier comme premier mois de l'année. </para> + <caution> + <para> + Souvenez-vous, le calendrier courant du système utilisé sur le Web est un calendrier + Grégorien. <function>gregoriantojd</function> peut être utilisé pour convertir ce genre + de dates en un nombre de jours du calendrier Julien. + </para> + </caution> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/functions/unixtojd.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/calendar/functions/unixtojd.xml diff -u phpdoc-fr/reference/calendar/functions/unixtojd.xml:1.5 phpdoc-fr/reference/calendar/functions/unixtojd.xml:1.6 --- phpdoc-fr/reference/calendar/functions/unixtojd.xml:1.5 Tue Feb 24 13:08:25 2004 +++ phpdoc-fr/reference/calendar/functions/unixtojd.xml Wed May 5 14:03:28 2004 @@ -1,14 +1,11 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/calendar.xml, last change in rev 1.7 --> -<!-- last change to 'unixtojd' in en/ tree in rev 1.3 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.unixtojd"> <refnamediv> <refname>unixtojd</refname> <refpurpose> - Convertit un timestamp UNIX en nombre de jours Julien + Convertit un timestamp UNIX en un jours Julien </refpurpose> </refnamediv> <refsect1> @@ -18,7 +15,7 @@ <methodparam choice="opt"><type>int</type><parameter>timestamp</parameter></methodparam> </methodsynopsis> <para> - <function>unixtojd</function> retourne le nombre de jours Julien du + <function>unixtojd</function> retourne le jours Julien du timestamp UNIX <parameter>timestamp</parameter> (nombre de secondes depuis le 1/1/1970), ou pour le jour courant si <parameter>timestamp</parameter> est omis. http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/configure.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/calendar/configure.xml diff -u phpdoc-fr/reference/calendar/configure.xml:1.3 phpdoc-fr/reference/calendar/configure.xml:1.4 --- phpdoc-fr/reference/calendar/configure.xml:1.3 Wed Feb 25 07:34:18 2004 +++ phpdoc-fr/reference/calendar/configure.xml Wed May 5 14:03:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <section id="calendar.installation"> &reftitle.install; <para> http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/constants.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-fr/reference/calendar/constants.xml diff -u phpdoc-fr/reference/calendar/constants.xml:1.2 phpdoc-fr/reference/calendar/constants.xml:1.3 --- phpdoc-fr/reference/calendar/constants.xml:1.2 Wed Feb 25 07:34:18 2004 +++ phpdoc-fr/reference/calendar/constants.xml Wed May 5 14:03:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <section id="calendar.constants"> &reftitle.constants; &extension.constants; @@ -209,6 +209,44 @@ </listitem> </varlistentry> </variablelist> + <para> + Les constantes suivantes sont disponibles depuis &php; 5.0.0 : + </para> + <variablelist> + <varlistentry> + <term> + <constant>CAL_JEWISH_ADD_ALAFIM_GERESH</constant> + (&integer;) + </term> + <listitem> + <simpara> + + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>CAL_JEWISH_ADD_ALAFIM</constant> + (&integer;) + </term> + <listitem> + <simpara> + + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>CAL_JEWISH_ADD_GERESHAYIM</constant> + (&integer;) + </term> + <listitem> + <simpara> + + </simpara> + </listitem> + </varlistentry> + </variablelist> </section> <!-- Keep this comment at the end of the file http://cvs.php.net/diff.php/phpdoc-fr/reference/calendar/reference.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/calendar/reference.xml diff -u phpdoc-fr/reference/calendar/reference.xml:1.6 phpdoc-fr/reference/calendar/reference.xml:1.7 --- phpdoc-fr/reference/calendar/reference.xml:1.6 Wed Feb 25 07:34:18 2004 +++ phpdoc-fr/reference/calendar/reference.xml Wed May 5 14:03:28 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> <reference id="ref.calendar"> <title>Calendrier</title> <titleabbrev>Calendrier</titleabbrev>