cvs: phpdoc-fr /reference/datetime book.xml constants.xml /reference/datetime/functions date-create.xml date-date-set.xml date-format.xml
date-isodate-set.xml date-modify.xml date-offset-get.xml date-time-set.xml date-timezone-get.xml date-timezone-set.xml timezone-abbreviations-list.xml
timezone-identifiers-list.xml timezone-name-get.xml timezone-offset-get.xml timezone-transitions-get.xml
| From: | Damien Seguy | Date: | Wed, 07 Jan 2009 20:50:49 +0000 |
| Subject: | cvs: phpdoc-fr /reference/datetime book.xml constants.xml /reference/datetime/functions date-create.xml date-date-set.xml date-format.xml date-isodate-set.xml date-modify.xml date-offset-get.xml date-time-set.xml date-timezone-get.xml date-timezone-set.xml timezone-abbreviations-list.xml timezone-identifiers-list.xml timezone-name-get.xml timezone-offset-get.xml timezone-transitions-get.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-6298@lists.php.net to get a copy of this message | ||
dams Wed Jan 7 20:50:49 2009 UTC
Modified files:
/phpdoc-fr/reference/datetime book.xml constants.xml
/phpdoc-fr/reference/datetime/functions date-create.xml
date-date-set.xml
date-format.xml
date-isodate-set.xml
date-modify.xml
date-offset-get.xml
date-time-set.xml
date-timezone-get.xml
date-timezone-set.xml
timezone-abbreviations-list.xml
timezone-identifiers-list.xml
timezone-name-get.xml
timezone-offset-get.xml
timezone-transitions-get.xml
Log:
synch with en
http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/book.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-fr/reference/datetime/book.xml diff -u phpdoc-fr/reference/datetime/book.xml:1.4 phpdoc-fr/reference/datetime/book.xml:1.5 --- phpdoc-fr/reference/datetime/book.xml:1.4 Sat May 31 07:07:35 2008 +++ phpdoc-fr/reference/datetime/book.xml Wed Jan 7 20:50:48 2009 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <!-- Purpose: calendar --> <!-- Membership: core --> @@ -39,7 +39,12 @@ &reference.datetime.setup; &reference.datetime.constants; &reference.datetime.timezones; - <!-- FIXME: Apparently this extension defines a class.. --> + + &reference.datetime.datetime; + &reference.datetime.datetimezone; + &reference.datetime.dateinterval; + &reference.datetime.dateperiod; + &reference.datetime.reference; </book> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/constants.xml?r1=1.16&r2=1.17&diff_format=u Index: phpdoc-fr/reference/datetime/constants.xml diff -u phpdoc-fr/reference/datetime/constants.xml:1.16 phpdoc-fr/reference/datetime/constants.xml:1.17 --- phpdoc-fr/reference/datetime/constants.xml:1.16 Sat Jun 21 20:51:29 2008 +++ phpdoc-fr/reference/datetime/constants.xml Wed Jan 7 20:50:48 2009 @@ -1,141 +1,19 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.16 $ --> -<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.17 $ --> +<!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <appendix xml:id="datetime.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; <para> - Les constantes suivantes sont définies depuis PHP 5.1.1 et offrent une - représentation standard des dates, qui peut être utilisée avec toutes les fonctions + Les constantes <link linkend="datetime.constants.types"><literal>DATE_</literal> + sont définies depuis PHP 5.1.1 et offrent une représentation standard + des dates, qui peut être utilisée avec toutes les fonctions de formatage de date (comme <function>date</function>). </para> - <variablelist> - <varlistentry> - <term> - <constant>DATE_ATOM</constant> - (&string;) - </term> - <listitem> - <simpara> - Atom (exemple : 2005-08-15T15:52:01+00:00) - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term> - <constant>DATE_COOKIE</constant> - (&string;) - </term> - <listitem> - <simpara> - Cookies HTTP (exemple : Monday, 15-Aug-05 15:52:01 UTC) - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term> - <constant>DATE_ISO8601</constant> - (&string;) - </term> - <listitem> - <simpara> - ISO-8601 (exemple : 2005-08-15T15:52:01+0000) - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term> - <constant>DATE_RFC822</constant> - (&string;) - </term> - <listitem> - <simpara> - RFC 822 (exemple : Mon, 15 Aug 05 15:52:01 +0000) - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term> - <constant>DATE_RFC850</constant> - (&string;) - </term> - <listitem> - <simpara> - RFC 850 (exemple : Monday, 15-Aug-05 15:52:01 UTC) - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term> - <constant>DATE_RFC1036</constant> - (&string;) - </term> - <listitem> - <simpara> - RFC 1036 (exemple : Mon, 15 Aug 05 15:52:01 +0000) - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term> - <constant>DATE_RFC1123</constant> - (&string;) - </term> - <listitem> - <simpara> - RFC 1123 (exemple : Mon, 15 Aug 2005 15:52:01 +0000) - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term> - <constant>DATE_RFC2822</constant> - (&string;) - </term> - <listitem> - <simpara> - RFC 2822 (Mon, 15 Aug 2005 15:52:01 +0000) - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term> - <constant>DATE_RFC3339</constant> - (<type>string</type>) - </term> - <listitem> - <simpara> - Identique à <constant>DATE_ATOM</constant> (depuis PHP 5.1.3) - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term> - <constant>DATE_RSS</constant> - (&string;) - </term> - <listitem> - <simpara> - RSS (Mon, 15 Aug 2005 15:52:01 +0000) - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term> - <constant>DATE_W3C</constant> - (&string;) - </term> - <listitem> - <simpara> - World Wide Web Consortium (W3C) (exemple : 2005-08-15T15:52:01+00:00) - </simpara> - </listitem> - </varlistentry> - </variablelist> <para> - Les constantes suivantes existent depuis PHP 5.1.2 et spécifient un format retourné par - les fonctions <function>date_sunrise</function> et + Les constantes suivantes existent depuis PHP 5.1.2 et spécifient un + format retourné par les fonctions <function>date_sunrise</function> et <function>date_sunset</function>. </para> <variablelist> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/date-create.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-fr/reference/datetime/functions/date-create.xml diff -u phpdoc-fr/reference/datetime/functions/date-create.xml:1.5 phpdoc-fr/reference/datetime/functions/date-create.xml:1.6 --- phpdoc-fr/reference/datetime/functions/date-create.xml:1.5 Sun Nov 30 22:01:12 2008 +++ phpdoc-fr/reference/datetime/functions/date-create.xml Wed Jan 7 20:50:49 2009 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.date-create" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -15,11 +15,6 @@ <methodparam choice="opt"><type>string</type><parameter>time</parameter></methodparam> <methodparam choice="opt"><type>DateTimeZone</type><parameter>timezone</parameter></methodparam> </methodsynopsis> - <methodsynopsis> - <type>DateTime</type><methodname>DateTime::__construct</methodname> - <methodparam choice="opt"><type>string</type><parameter>time</parameter></methodparam> - <methodparam choice="opt"><type>DateTimeZone</type><parameter>timezone</parameter></methodparam> - </methodsynopsis> </refsect1> <refsect1 role="parameters"> @@ -39,7 +34,7 @@ <term><parameter>timezone</parameter></term> <listitem> <para> - Fuseau horaire du temps. + Fuseau horaire. </para> </listitem> </varlistentry> @@ -50,7 +45,7 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Retourne un objet DateTime en cas de succès ou &false; en cas d'échec. + Retourne un objet DateTime en cas de succès, ou &false; en cas d'échec. </para> </refsect1> @@ -58,23 +53,8 @@ &reftitle.examples; <para> <example> - <title>Style orienté objet</title> - <programlisting role="php"> -<![CDATA[ -<?php -date_default_timezone_set('Europe/London'); - -$datetime = new DateTime('2008-08-03 14:52:10'); -echo $datetime->format(DATE_ATOM); -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Style procédural</title> - <programlisting role="php"> + <title>Exemple avec <function>date_create</function></title> +<programlisting role="php"> <![CDATA[ <?php date_default_timezone_set('Europe/London'); http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/date-date-set.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-fr/reference/datetime/functions/date-date-set.xml diff -u phpdoc-fr/reference/datetime/functions/date-date-set.xml:1.4 phpdoc-fr/reference/datetime/functions/date-date-set.xml:1.5 --- phpdoc-fr/reference/datetime/functions/date-date-set.xml:1.4 Sun Nov 30 22:01:12 2008 +++ phpdoc-fr/reference/datetime/functions/date-date-set.xml Wed Jan 7 20:50:49 2009 @@ -1,124 +1,18 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.date-date-set" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>date_date_set</refname> - <refpurpose>Fixe la date</refpurpose> + <refpurpose>&Alias; <methodname>DateTime::setDate</methodname></refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>void</type><methodname>date_date_set</methodname> - <methodparam><type>DateTime</type><parameter>object</parameter></methodparam> - <methodparam><type>int</type><parameter>year</parameter></methodparam> - <methodparam><type>int</type><parameter>month</parameter></methodparam> - <methodparam><type>int</type><parameter>day</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>DateTime::setDate</methodname> - <methodparam><type>int</type><parameter>year</parameter></methodparam> - <methodparam><type>int</type><parameter>month</parameter></methodparam> - <methodparam><type>int</type><parameter>day</parameter></methodparam> - </methodsynopsis> - <para> - Fixe la date courante de l'objet DateTime à une date différente. - </para> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &date.datetime.description; - <varlistentry> - <term><parameter>year</parameter></term> - <listitem> - <para> - Année de la date. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>month</parameter></term> - <listitem> - <para> - Mois de la date. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>day</parameter></term> - <listitem> - <para> - Jour de la date. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Retourne &null; en cas de succès ou &false; en cas d'échec. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title>Style orienté objet</title> - <programlisting role="php"> -<![CDATA[ -<?php -date_default_timezone_set('Europe/London'); - -$datetime = new DateTime('2008-08-03 14:52:10'); -$datetime->setDate(2008, 10, 12); - -echo $datetime->format(DATE_RFC2822); -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Style procédural</title> - <programlisting role="php"> -<![CDATA[ -<?php -date_default_timezone_set('Europe/London'); - -$datetime = date_create('2008-08-03 14:52:10'); -date_date_set($datetime, 2008, 10, 12); - -echo date_format($datetime, DATE_RFC2822); -?> -]]> - </programlisting> - &example.outputs; - <screen> -<![CDATA[ -Sun, 12 Oct 2008 14:52:10 +0100 -]]> - </screen> - </example> - </para> - </refsect1> - - <refsect1 role="seealso"> - &reftitle.seealso; <para> - <simplelist> - <member><function>date_isodate_set</function></member> - <member><function>date_time_set</function></member> - </simplelist> + &info.function.alias; <methodname>DateTime::setDate</methodname> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/date-format.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-fr/reference/datetime/functions/date-format.xml diff -u phpdoc-fr/reference/datetime/functions/date-format.xml:1.4 phpdoc-fr/reference/datetime/functions/date-format.xml:1.5 --- phpdoc-fr/reference/datetime/functions/date-format.xml:1.4 Sun Dec 7 20:13:55 2008 +++ phpdoc-fr/reference/datetime/functions/date-format.xml Wed Jan 7 20:50:49 2009 @@ -1,100 +1,18 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.date-format" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>date_format</refname> - <refpurpose>Retourne la date mis en forme dans le format donné</refpurpose> + <refpurpose>&Alias; <methodname>DateTime::format</methodname></refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>string</type><methodname>date_format</methodname> - <methodparam><type>DateTime</type><parameter>object</parameter></methodparam> - <methodparam><type>string</type><parameter>format</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>string</type><methodname>DateTime::format</methodname> - <methodparam><type>string</type><parameter>format</parameter></methodparam> - </methodsynopsis> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &date.datetime.description; - <varlistentry> - <term><parameter>format</parameter></term> - <listitem> - <para> - Format accepté par <function>date</function>. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Retourne une date mise en forme en cas de succès ou &false; en cas d'échec. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title>Affichage de la date et de l'heure, de façon procédurale</title> - <programlisting role="php"> -<![CDATA[ -<?php -date_default_timezone_set('Europe/London'); - -$datetime = date_create('2008-08-03 14:52:10'); -echo date_format($datetime, 'jS, F Y') . "\n"; -echo date_format($datetime, DATE_ATOM); -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Affichage de la date et de l'heure, de façon orientée objet</title> - <programlisting role="php"> -<![CDATA[ -<?php -date_default_timezone_set('Europe/London'); - -$datetime = new DateTime('2008-08-03 14:52:10'); -echo $datetime->format('jS, F Y') . "\n"; -echo $datetime->format(DATE_ATOM); -?> -?> -]]> - </programlisting> - &example.outputs; - <screen> -<![CDATA[ -3rd, August 2008 -2008-08-03T14:52:10+01:00 -]]> - </screen> - </example> - </para> - </refsect1> - - <refsect1 role="seealso"> - &reftitle.seealso; <para> - <simplelist> - <member><function>date</function></member> - </simplelist> + &info.function.alias; <methodname>DateTime::format</methodname> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/date-isodate-set.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-fr/reference/datetime/functions/date-isodate-set.xml diff -u phpdoc-fr/reference/datetime/functions/date-isodate-set.xml:1.4 phpdoc-fr/reference/datetime/functions/date-isodate-set.xml:1.5 --- phpdoc-fr/reference/datetime/functions/date-isodate-set.xml:1.4 Sun Dec 7 20:13:55 2008 +++ phpdoc-fr/reference/datetime/functions/date-isodate-set.xml Wed Jan 7 20:50:49 2009 @@ -1,119 +1,18 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.date-isodate-set" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>date_isodate_set</refname> - <refpurpose>Fixe la date ISO</refpurpose> + <refpurpose>&Alias; <methodname>DateTime::setISODate</methodname></refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>void</type><methodname>date_isodate_set</methodname> - <methodparam><type>DateTime</type><parameter>object</parameter></methodparam> - <methodparam><type>int</type><parameter>year</parameter></methodparam> - <methodparam><type>int</type><parameter>week</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>day</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>DateTime::setISODate</methodname> - <methodparam><type>int</type><parameter>year</parameter></methodparam> - <methodparam><type>int</type><parameter>week</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>day</parameter></methodparam> - </methodsynopsis> - <para> - Définit une date suivant le standard ISO 8601, en utilisant la position de la - semaine et du jour, plutôt qu'en spécifiant une date. - </para> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &date.datetime.description; - <varlistentry> - <term><parameter>year</parameter></term> - <listitem> - <para> - Année de la date. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>week</parameter></term> - <listitem> - <para> - Semaine de la date. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>day</parameter></term> - <listitem> - <para> - Position du jour par rapport au premier jour de la semaine. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Retourne &null; en cas de succès ou &false; en cas d'échec. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title>Recherche de la date depuis un numéro de semaine et de jour</title> - <programlisting role="php"> -<![CDATA[ -<?php -date_default_timezone_set('Europe/London'); - -$datetime = new DateTime(); - -// Position depuis le début de la semaine 2 (7) = 5 -$datetime->setISODate(2008, 2, 5); // Le jour 5 de la semaine 2 de l'année 2008 correspond au 11 Janvier. - -// Position depuis le début de la semaine 2 (7) = 10 -$datetime->setISODate(2008, 2, 10); // Le jour 10 de la semaine 2 de l'année 2008 correspond au 16 Janvier. -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Recherche du mois correspondant à une semaine</title> - <programlisting role="php"> -<![CDATA[ -<?php -date_default_timezone_set('Europe/London'); - -$datetime = date_create(); -date_isodate_set($datetime, 2008, 6); // La semaine 6 de l'année 2008 est en Février. -?> -]]> - </programlisting> - </example> - </para> - </refsect1> - - <refsect1 role="seealso"> - &reftitle.seealso; <para> - <simplelist> - <member><function>date_date_set</function></member> - </simplelist> + &info.function.alias; <methodname>DateTime::setISODate</methodname> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/date-modify.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-fr/reference/datetime/functions/date-modify.xml diff -u phpdoc-fr/reference/datetime/functions/date-modify.xml:1.4 phpdoc-fr/reference/datetime/functions/date-modify.xml:1.5 --- phpdoc-fr/reference/datetime/functions/date-modify.xml:1.4 Sun Dec 7 20:13:55 2008 +++ phpdoc-fr/reference/datetime/functions/date-modify.xml Wed Jan 7 20:50:49 2009 @@ -1,85 +1,18 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.date-modify" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>date_modify</refname> - <refpurpose>Modifie le timestamp</refpurpose> + <refpurpose>&Alias; <methodname>DateTime::modify</methodname></refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>void</type><methodname>date_modify</methodname> - <methodparam><type>DateTime</type><parameter>object</parameter></methodparam> - <methodparam><type>string</type><parameter>modify</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>DateTime::modify</methodname> - <methodparam><type>string</type><parameter>modify</parameter></methodparam> - </methodsynopsis> - <para> - Modifie le timestamp d'un objet DateTime par incrément ou décrément, dans un format - accepté par la fonction <function>strtotime</function>. - </para> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &date.datetime.description; - <varlistentry> - <term><parameter>modify</parameter></term> - <listitem> - <para> - Une &string; dans le format relatif accepté par - <function>strtotime</function>. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Retourne &null; en cas de succès ou &false; en cas d'échec. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title>Exemple avec <function>date_modify</function></title> - <programlisting role="php"> -<![CDATA[ -<?php -$date = new DateTime("2006-12-12"); -$date->modify("+1 day"); -echo $date->format("Y-m-d"); -?> -]]> - </programlisting> - &example.outputs; - <screen> -<![CDATA[ -2006-12-13 -]]> - </screen> - </example> - </para> - </refsect1> - - <refsect1 role="seealso"> - &reftitle.seealso; <para> - <simplelist> - <member><function>strtotime</function></member> - </simplelist> + &info.function.alias; <methodname>DateTime::modify</methodname> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/date-offset-get.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-fr/reference/datetime/functions/date-offset-get.xml diff -u phpdoc-fr/reference/datetime/functions/date-offset-get.xml:1.4 phpdoc-fr/reference/datetime/functions/date-offset-get.xml:1.5 --- phpdoc-fr/reference/datetime/functions/date-offset-get.xml:1.4 Sun Dec 7 20:13:55 2008 +++ phpdoc-fr/reference/datetime/functions/date-offset-get.xml Wed Jan 7 20:50:49 2009 @@ -1,61 +1,18 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="function.date-offset-get" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>date_offset_get</refname> - <refpurpose>Retourne le décalage de l'heure avancée</refpurpose> + <refpurpose>&Alias; <methodname>DateTime::getOffset</methodname></refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>int</type><methodname>date_offset_get</methodname> - <methodparam><type>DateTime</type><parameter>object</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>int</type><methodname>DateTime::getOffset</methodname> - <void/> - </methodsynopsis> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &date.datetime.description; - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; <para> - Retourne le décalage de l'heure avancée en cas de succès ou &false; en cas - d'échec. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title>Compare les positions entre l'heure d'été et l'heure d'hiver</title> - <programlisting role="php"> -<![CDATA[ -<?php -date_default_timezone_set('Europe/London'); - -$winter = new DateTime('2008-12-25 14:25:41'); -$summer = new DateTime('2008-07-14 14:25:41'); - -echo $winter->getOffset(); // Position de l'hiver : 0 -echo $summer->getOffset(); // Position de l'été : 3600 = 1 heure -?> -]]> - </programlisting> - </example> + &info.function.alias; <methodname>DateTime::getOffset</methodname> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/date-time-set.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-fr/reference/datetime/functions/date-time-set.xml diff -u phpdoc-fr/reference/datetime/functions/date-time-set.xml:1.4 phpdoc-fr/reference/datetime/functions/date-time-set.xml:1.5 --- phpdoc-fr/reference/datetime/functions/date-time-set.xml:1.4 Sun Dec 7 20:13:55 2008 +++ phpdoc-fr/reference/datetime/functions/date-time-set.xml Wed Jan 7 20:50:49 2009 @@ -1,119 +1,18 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.date-time-set" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>date_time_set</refname> - <refpurpose>Fixe le temps</refpurpose> + <refpurpose>&Alias; <methodname>DateTime::setTime</methodname></refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>void</type><methodname>date_time_set</methodname> - <methodparam><type>DateTime</type><parameter>object</parameter></methodparam> - <methodparam><type>int</type><parameter>hour</parameter></methodparam> - <methodparam><type>int</type><parameter>minute</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>second</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>DateTime::setTime</methodname> - <methodparam><type>int</type><parameter>hour</parameter></methodparam> - <methodparam><type>int</type><parameter>minute</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>second</parameter></methodparam> - </methodsynopsis> - <para> - Réinitialise le temps courant d'un objet DateTime à un temps différent. - </para> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &date.datetime.description; - <varlistentry> - <term><parameter>hour</parameter></term> - <listitem> - <para> - Heure du temps. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>minute</parameter></term> - <listitem> - <para> - Minute du temps. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>second</parameter></term> - <listitem> - <para> - Seconde du temps. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Retourne &null; en cas de succès ou &false; en cas d'échec. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title>Modification du temps d'un objet DateTime</title> - <programlisting role="php"> -<![CDATA[ -<?php -date_default_timezone_set('Europe/London'); - -$datetime = new DateTime('2008-08-03 12:35:23'); -echo $datetime->format('Y-m-d H:i:s') . "\n"; - -$datetime->setTime(14, 55, 24); -echo $datetime->format('Y-m-d H:i:s') . "\n"; - -// Attention : Ne pas incrémenter l'heure ! -// Car l'heure a déjà été définie (14) - voir date_modify() -$datetime->setTime($datetime->format('H'), $datetime->format('n') + 6); -echo $datetime->format('Y-m-d H:i:s') . "\n"; - -// Incrément du jour, car le jour n'a pas été défini pour le moment -$datetime->setTime($datetime->format('H') + 12, $datetime->format('n')); -echo $datetime->format('Y-m-d H:i:s') . "\n"; -?> -]]> - </programlisting> - &example.outputs; - <screen> -<![CDATA[ -2008-08-03 12:35:23 -2008-08-03 14:55:24 -2008-08-03 14:14:00 -2008-08-04 02:08:00 -]]> - </screen> - </example> - </para> - </refsect1> - - <refsect1 role="seealso"> - &reftitle.seealso; <para> - <simplelist> - <member><function>date_date_set</function></member> - </simplelist> + &info.function.alias; <methodname>DateTime::setTime</methodname> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/date-timezone-get.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-fr/reference/datetime/functions/date-timezone-get.xml diff -u phpdoc-fr/reference/datetime/functions/date-timezone-get.xml:1.6 phpdoc-fr/reference/datetime/functions/date-timezone-get.xml:1.7 --- phpdoc-fr/reference/datetime/functions/date-timezone-get.xml:1.6 Sat Dec 27 14:51:39 2008 +++ phpdoc-fr/reference/datetime/functions/date-timezone-get.xml Wed Jan 7 20:50:49 2009 @@ -1,80 +1,17 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.date-timezone-get" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>date_timezone_get</refname> - <refpurpose>Retourne le fuseau horaire relatif au DateTime donné</refpurpose> + <refpurpose>&Alias; <methodname>DateTime::getTimezone</methodname></refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>DateTimeZone</type><methodname>date_timezone_get</methodname> - <methodparam><type>DateTime</type><parameter>object</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>DateTimeZone</type><methodname>DateTime::getTimezone</methodname> - <void/> - </methodsynopsis> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &date.datetime.description; - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Retourne un objet DateTimeZone en cas de succès ou &false; en cas d'échec. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title>Définition et récupération d'objets DateTimeZone</title> - <programlisting role="php"> -<![CDATA[ -<?php -date_default_timezone_set('Europe/London'); - -$datetime = new DateTime('2008-08-03 12:35:23'); -echo $datetime->getTimezone()->getName() . "\n"; - -$datetime = new DateTime('2008-08-03 12:35:23'); -$la_time = new DateTimeZone('America/Los_Angeles'); -$datetime->setTimezone($la_time); -echo $datetime->getTimezone()->getName(); -?> -]]> - </programlisting> - &example.outputs; - <screen> -<![CDATA[ -Europe/London -America/Los_Angeles -]]> - </screen> - </example> - </para> - </refsect1> - <refsect1 role="seealso"> - &reftitle.seealso; - <para> - <simplelist> - <member><function>date_timezone_set</function></member> - <member><function>timezone_open</function></member> - </simplelist> - </para> + &info.function.alias; <methodname>DateTime::getTimezone</methodname> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/date-timezone-set.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-fr/reference/datetime/functions/date-timezone-set.xml diff -u phpdoc-fr/reference/datetime/functions/date-timezone-set.xml:1.5 phpdoc-fr/reference/datetime/functions/date-timezone-set.xml:1.6 --- phpdoc-fr/reference/datetime/functions/date-timezone-set.xml:1.5 Sun Dec 7 20:13:55 2008 +++ phpdoc-fr/reference/datetime/functions/date-timezone-set.xml Wed Jan 7 20:50:49 2009 @@ -1,89 +1,17 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.date-timezone-set" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>date_timezone_set</refname> - <refpurpose>Fixe le fuseau horaire pour l'objet DateTime</refpurpose> + <refpurpose>&Alias; <methodname>DateTime::setTimezone</methodname></refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>void</type><methodname>date_timezone_set</methodname> - <methodparam><type>DateTime</type><parameter>object</parameter></methodparam> - <methodparam><type>DateTimeZone</type><parameter>timezone</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>DateTime::setTimezone</methodname> - <methodparam><type>DateTimeZone</type><parameter>timezone</parameter></methodparam> - </methodsynopsis> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &date.datetime.description; - <varlistentry> - <term><parameter>timezone</parameter></term> - <listitem> - <para> - Fuseau horaire désiré. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Retourne &null; en cas de succès ou &false; en cas d'échec. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title>Définition et récupération d'objets DateTimeZone</title> - <programlisting role="php"> -<![CDATA[ -<?php -date_default_timezone_set('Europe/London'); - -$datetime = new DateTime('2008-08-03 12:35:23'); -echo $datetime->getTimezone()->getName() . "\n"; - -$datetime = new DateTime('2008-08-03 12:35:23'); -$la_time = new DateTimeZone('America/Los_Angeles'); -$datetime->setTimezone($la_time); -echo $datetime->getTimezone()->getName(); -?> -]]> - </programlisting> - &example.outputs; - <screen> -<![CDATA[ -Europe/London -America/Los_Angeles -]]> - </screen> - </example> - </para> - </refsect1> - - <refsect1 role="seealso"> - &reftitle.seealso; - <para> - <simplelist> - <member><function>date_timezone_get</function></member> - <member><function>timezone_open</function></member> - </simplelist> - </para> + + &info.function.alias; <methodname>DateTime::setTimezone</methodname> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/timezone-abbreviations-list.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-fr/reference/datetime/functions/timezone-abbreviations-list.xml diff -u phpdoc-fr/reference/datetime/functions/timezone-abbreviations-list.xml:1.5 phpdoc-fr/reference/datetime/functions/timezone-abbreviations-list.xml:1.6 --- phpdoc-fr/reference/datetime/functions/timezone-abbreviations-list.xml:1.5 Tue Oct 9 21:29:43 2007 +++ phpdoc-fr/reference/datetime/functions/timezone-abbreviations-list.xml Wed Jan 7 20:50:49 2009 @@ -1,93 +1,17 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.timezone-abbreviations-list" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>timezone_abbreviations_list</refname> - <refpurpose>Retourne un tableau associatif contenant l'heure avancée, - décalage et le nom du fuseau horaire</refpurpose> + <refpurpose>&Alias; <methodname>DateTimeZone::listAbbreviations</methodname></refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>array</type><methodname>timezone_abbreviations_list</methodname> - <void/> - </methodsynopsis> - <methodsynopsis> - <type>array</type><methodname>DateTimeZone::listAbbreviations</methodname> - <void/> - </methodsynopsis> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Retourne un tableau en cas de succès ou &false; en cas d'échec. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title>Exemple avec <function>timezone_abbreviations_list</function></title> - <programlisting role="php"> -<![CDATA[ -<?php -$timezone_abbreviations = DateTimeZone::listAbbreviations(); -print_r($timezone_abbreviations["acst"]); -?> -]]> - </programlisting> - &example.outputs.similar; - <screen> -<![CDATA[ -Array -( - [0] => Array - ( - [dst] => 1 - [offset] => -14400 - [timezone_id] => America/Porto_Acre - ) - - [1] => Array - ( - [dst] => 1 - [offset] => -14400 - [timezone_id] => America/Eirunepe - ) - - [2] => Array - ( - [dst] => 1 - [offset] => -14400 - [timezone_id] => America/Rio_Branco - ) - - [3] => Array - ( - [dst] => 1 - [offset] => -14400 - [timezone_id] => Brazil/Acre - ) - -) -]]> - </screen> - </example> - </para> - </refsect1> - <refsect1 role="seealso"> - &reftitle.seealso; - <para> - <simplelist> - <member><function>timezone_identifiers_list</function></member> - </simplelist> - </para> + &info.function.alias; <methodname>DateTimeZone::listAbbreviations</methodname> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/timezone-identifiers-list.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-fr/reference/datetime/functions/timezone-identifiers-list.xml diff -u phpdoc-fr/reference/datetime/functions/timezone-identifiers-list.xml:1.6 phpdoc-fr/reference/datetime/functions/timezone-identifiers-list.xml:1.7 --- phpdoc-fr/reference/datetime/functions/timezone-identifiers-list.xml:1.6 Sun Dec 7 20:13:55 2008 +++ phpdoc-fr/reference/datetime/functions/timezone-identifiers-list.xml Wed Jan 7 20:50:49 2009 @@ -1,96 +1,18 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.timezone-identifiers-list" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>timezone_identifiers_list</refname> - <refpurpose>Retourne un tableau indexé numériquement avec tous les identifiants des fuseaux horaires</refpurpose> + <refpurpose>&Alias; <methodname>DateTimeZone::listIdentifiers</methodname></refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>array</type><methodname>timezone_identifiers_list</methodname> - <methodparam><type>int</type><parameter>what</parameter></methodparam> - <methodparam><type>string</type><parameter>option</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>array</type><methodname>DateTimeZone::listIdentifiers</methodname> - <methodparam><type>int</type><parameter>what</parameter></methodparam> - <methodparam><type>string</type><parameter>country</parameter></methodparam> - </methodsynopsis> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &date.datetime.description; - <varlistentry> - <term><parameter>what</parameter></term> - <listitem> - <para> - Une constante <classname>DateTimeZone</classname> et par défaut, - <constant>DateTimeZone::ALL</constant>. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>country</parameter></term> - <listitem> - <para> - Le code pays, sur 2 lettres, compatible - ISO 3166-1. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Retourne un tableau en cas de succès ou &false; en cas d'échec. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title>Exemple avec <function>timezone_identifiers_list</function></title> - <programlisting role="php"> -<![CDATA[ -<?php -$timezone_identifiers = DateTimeZone::listIdentifiers(); -for ($i=0; $i < 5; $i++) { - echo "$timezone_identifiers[$i]\n"; -} -?> -]]> - </programlisting> - &example.outputs.similar; - <screen> -<![CDATA[ -Africa/Abidjan -Africa/Accra -Africa/Addis_Ababa -Africa/Algiers -Africa/Asmera -]]> - </screen> - </example> - </para> - </refsect1> - - <refsect1 role="seealso"> - &reftitle.seealso; <para> - <simplelist> - <member><function>timezone_abbreviations_list</function></member> - </simplelist> + &info.function.alias; <methodname>DateTimeZone::listIdentifiers</methodname> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/timezone-name-get.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-fr/reference/datetime/functions/timezone-name-get.xml diff -u phpdoc-fr/reference/datetime/functions/timezone-name-get.xml:1.4 phpdoc-fr/reference/datetime/functions/timezone-name-get.xml:1.5 --- phpdoc-fr/reference/datetime/functions/timezone-name-get.xml:1.4 Sun Dec 7 20:13:55 2008 +++ phpdoc-fr/reference/datetime/functions/timezone-name-get.xml Wed Jan 7 20:50:49 2009 @@ -1,44 +1,24 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.timezone-name-get" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>timezone_name_get</refname> - <refpurpose>Retourne le nom du fuseau horaire</refpurpose> + <refpurpose>&Alias; <methodname>DateTimeZone::getName</methodname></refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>string</type><methodname>timezone_name_get</methodname> - <methodparam><type>DateTimeZone</type><parameter>object</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>string</type><methodname>DateTimeZone::getName</methodname> - <void/> - </methodsynopsis> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &date.datetimezone.description; - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; <para> - Retourne le nom du fuseau horaire en cas de succès ou &false; en cas - d'échec. + &info.function.alias; <methodname>DateTimeZone::getName</methodname> </para> </refsect1> </refentry> + <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/timezone-offset-get.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-fr/reference/datetime/functions/timezone-offset-get.xml diff -u phpdoc-fr/reference/datetime/functions/timezone-offset-get.xml:1.6 phpdoc-fr/reference/datetime/functions/timezone-offset-get.xml:1.7 --- phpdoc-fr/reference/datetime/functions/timezone-offset-get.xml:1.6 Sun Dec 7 20:13:55 2008 +++ phpdoc-fr/reference/datetime/functions/timezone-offset-get.xml Wed Jan 7 20:50:49 2009 @@ -1,86 +1,18 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.timezone-offset-get" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>timezone_offset_get</refname> - <refpurpose>Retourne le décalage du fuseau horaire</refpurpose> + <refpurpose>&Alias; <methodname>DateTimeZone::getOffset</methodname></refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>int</type><methodname>timezone_offset_get</methodname> - <methodparam><type>DateTimeZone</type><parameter>object</parameter></methodparam> - <methodparam><type>DateTime</type><parameter>datetime</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>int</type><methodname>DateTimeZone::getOffset</methodname> - <methodparam><type>DateTime</type><parameter>datetime</parameter></methodparam> - </methodsynopsis> - <para> - Cette fonction retourne le décalage horaire depuis GMT pour la date/heure - spécifiée dans le paramètre <parameter>datetime</parameter>. - Le décalage horaire depuis GMT est calculé avec les informations depuis le - fuseau horaire contenues dans l'objet DateTime utilisé. - </para> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &date.datetimezone.description; - <varlistentry> - <term><parameter>datetime</parameter></term> - <listitem> - <para> - DateTime qui contient la date/heure pour calculer le décalage horaire. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Retourne le décalage du fuseau horaire en seconde en cas de succès ou - &false; en cas d'échec. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; <para> - <example> - <title>Exemple avec <function>timezone_offset_get</function></title> - <programlisting role="php"> -<![CDATA[ -<?php -// Création de deux objets de fuseau horaire, un pour Taipei (Taiwan) et un pour -// Tokyo (Japon) -$dateTimeZoneTaipei = new DateTimeZone("Asia/Taipei"); -$dateTimeZoneJapan = new DateTimeZone("Asia/Tokyo"); - -// Création de deux objets DateTime qui contiendront le même timestamp Unix, mais -// avec des fuseaux horaires différents attachés. -$dateTimeTaipei = new DateTime("now", $dateTimeZoneTaipei); -$dateTimeJapan = new DateTime("now", $dateTimeZoneJapan); - -// Calcul le décalage horaire depuis GMT pour la date/heure contenue dans l'objet $dateTimeTaipei, -// mais en utilisant les règles du fuseau horaire définies pour Tokyo -// ($dateTimeZoneJapan). -$timeOffset = $dateTimeZoneJapan->getOffset($dateTimeTaipei); - -// Devrait afficher int(32400) (pour les dates après Sat Sep 8 01:00:00 1951 JST). -var_dump($timeOffset); -?> -]]> - </programlisting> - </example> + &info.function.alias; <methodname>DateTimeZone::getOffset</methodname> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/timezone-transitions-get.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-fr/reference/datetime/functions/timezone-transitions-get.xml diff -u phpdoc-fr/reference/datetime/functions/timezone-transitions-get.xml:1.4 phpdoc-fr/reference/datetime/functions/timezone-transitions-get.xml:1.5 --- phpdoc-fr/reference/datetime/functions/timezone-transitions-get.xml:1.4 Sun Dec 7 20:13:55 2008 +++ phpdoc-fr/reference/datetime/functions/timezone-transitions-get.xml Wed Jan 7 20:50:49 2009 @@ -1,69 +1,18 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.timezone-transitions-get" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>timezone_transitions_get</refname> - <refpurpose>Retourne toutes les transitions pour le fuseau horaire</refpurpose> + <refpurpose>&Alias; <methodname>DateTimeZone::getTransitions</methodname></refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>array</type><methodname>timezone_transitions_get</methodname> - <methodparam><type>DateTimeZone</type><parameter>object</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>array</type><methodname>DateTimeZone::getTransitions</methodname> - <void/> - </methodsynopsis> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &date.datetimezone.description; - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Retourne un tableau indexé numériquement contenant un tableau associatif - avec toutes les transitions en cas de succès ou &false; en cas d'échec. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; <para> - <example> - <title>Exemple avec <function>timezone_transitions_get</function></title> - <programlisting role="php"> -<![CDATA[ -<?php -$timezone = new DateTimeZone("CET"); -print_r(reset($timezone->getTransitions())); -?> -]]> - </programlisting> - &example.outputs.similar; - <screen> -<![CDATA[ -Array -( - [ts] => -1693706400 - [time] => 1916-04-30T22:00:00+0000 - [offset] => 7200 - [isdst] => 1 - [abbr] => CEST -) -]]> - </screen> - </example> + &info.function.alias; <methodname>DateTimeZone::getTransitions</methodname> </para> </refsect1>
http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/book.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-fr/reference/datetime/book.xml diff -u phpdoc-fr/reference/datetime/book.xml:1.4 phpdoc-fr/reference/datetime/book.xml:1.5 --- phpdoc-fr/reference/datetime/book.xml:1.4 Sat May 31 07:07:35 2008 +++ phpdoc-fr/reference/datetime/book.xml Wed Jan 7 20:50:48 2009 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <!-- Purpose: calendar --> <!-- Membership: core --> @@ -39,7 +39,12 @@ &reference.datetime.setup; &reference.datetime.constants; &reference.datetime.timezones; - <!-- FIXME: Apparently this extension defines a class.. --> + + &reference.datetime.datetime; + &reference.datetime.datetimezone; + &reference.datetime.dateinterval; + &reference.datetime.dateperiod; + &reference.datetime.reference; </book> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/constants.xml?r1=1.16&r2=1.17&diff_format=u Index: phpdoc-fr/reference/datetime/constants.xml diff -u phpdoc-fr/reference/datetime/constants.xml:1.16 phpdoc-fr/reference/datetime/constants.xml:1.17 --- phpdoc-fr/reference/datetime/constants.xml:1.16 Sat Jun 21 20:51:29 2008 +++ phpdoc-fr/reference/datetime/constants.xml Wed Jan 7 20:50:48 2009 @@ -1,141 +1,19 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.16 $ --> -<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.17 $ --> +<!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <appendix xml:id="datetime.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; <para> - Les constantes suivantes sont définies depuis PHP 5.1.1 et offrent une - représentation standard des dates, qui peut être utilisée avec toutes les fonctions + Les constantes <link linkend="datetime.constants.types"><literal>DATE_</literal> + sont définies depuis PHP 5.1.1 et offrent une représentation standard + des dates, qui peut être utilisée avec toutes les fonctions de formatage de date (comme <function>date</function>). </para> - <variablelist> - <varlistentry> - <term> - <constant>DATE_ATOM</constant> - (&string;) - </term> - <listitem> - <simpara> - Atom (exemple : 2005-08-15T15:52:01+00:00) - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term> - <constant>DATE_COOKIE</constant> - (&string;) - </term> - <listitem> - <simpara> - Cookies HTTP (exemple : Monday, 15-Aug-05 15:52:01 UTC) - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term> - <constant>DATE_ISO8601</constant> - (&string;) - </term> - <listitem> - <simpara> - ISO-8601 (exemple : 2005-08-15T15:52:01+0000) - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term> - <constant>DATE_RFC822</constant> - (&string;) - </term> - <listitem> - <simpara> - RFC 822 (exemple : Mon, 15 Aug 05 15:52:01 +0000) - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term> - <constant>DATE_RFC850</constant> - (&string;) - </term> - <listitem> - <simpara> - RFC 850 (exemple : Monday, 15-Aug-05 15:52:01 UTC) - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term> - <constant>DATE_RFC1036</constant> - (&string;) - </term> - <listitem> - <simpara> - RFC 1036 (exemple : Mon, 15 Aug 05 15:52:01 +0000) - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term> - <constant>DATE_RFC1123</constant> - (&string;) - </term> - <listitem> - <simpara> - RFC 1123 (exemple : Mon, 15 Aug 2005 15:52:01 +0000) - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term> - <constant>DATE_RFC2822</constant> - (&string;) - </term> - <listitem> - <simpara> - RFC 2822 (Mon, 15 Aug 2005 15:52:01 +0000) - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term> - <constant>DATE_RFC3339</constant> - (<type>string</type>) - </term> - <listitem> - <simpara> - Identique à <constant>DATE_ATOM</constant> (depuis PHP 5.1.3) - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term> - <constant>DATE_RSS</constant> - (&string;) - </term> - <listitem> - <simpara> - RSS (Mon, 15 Aug 2005 15:52:01 +0000) - </simpara> - </listitem> - </varlistentry> - <varlistentry> - <term> - <constant>DATE_W3C</constant> - (&string;) - </term> - <listitem> - <simpara> - World Wide Web Consortium (W3C) (exemple : 2005-08-15T15:52:01+00:00) - </simpara> - </listitem> - </varlistentry> - </variablelist> <para> - Les constantes suivantes existent depuis PHP 5.1.2 et spécifient un format retourné par - les fonctions <function>date_sunrise</function> et + Les constantes suivantes existent depuis PHP 5.1.2 et spécifient un + format retourné par les fonctions <function>date_sunrise</function> et <function>date_sunset</function>. </para> <variablelist> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/date-create.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-fr/reference/datetime/functions/date-create.xml diff -u phpdoc-fr/reference/datetime/functions/date-create.xml:1.5 phpdoc-fr/reference/datetime/functions/date-create.xml:1.6 --- phpdoc-fr/reference/datetime/functions/date-create.xml:1.5 Sun Nov 30 22:01:12 2008 +++ phpdoc-fr/reference/datetime/functions/date-create.xml Wed Jan 7 20:50:49 2009 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.date-create" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -15,11 +15,6 @@ <methodparam choice="opt"><type>string</type><parameter>time</parameter></methodparam> <methodparam choice="opt"><type>DateTimeZone</type><parameter>timezone</parameter></methodparam> </methodsynopsis> - <methodsynopsis> - <type>DateTime</type><methodname>DateTime::__construct</methodname> - <methodparam choice="opt"><type>string</type><parameter>time</parameter></methodparam> - <methodparam choice="opt"><type>DateTimeZone</type><parameter>timezone</parameter></methodparam> - </methodsynopsis> </refsect1> <refsect1 role="parameters"> @@ -39,7 +34,7 @@ <term><parameter>timezone</parameter></term> <listitem> <para> - Fuseau horaire du temps. + Fuseau horaire. </para> </listitem> </varlistentry> @@ -50,7 +45,7 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Retourne un objet DateTime en cas de succès ou &false; en cas d'échec. + Retourne un objet DateTime en cas de succès, ou &false; en cas d'échec. </para> </refsect1> @@ -58,23 +53,8 @@ &reftitle.examples; <para> <example> - <title>Style orienté objet</title> - <programlisting role="php"> -<![CDATA[ -<?php -date_default_timezone_set('Europe/London'); - -$datetime = new DateTime('2008-08-03 14:52:10'); -echo $datetime->format(DATE_ATOM); -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Style procédural</title> - <programlisting role="php"> + <title>Exemple avec <function>date_create</function></title> +<programlisting role="php"> <![CDATA[ <?php date_default_timezone_set('Europe/London'); http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/date-date-set.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-fr/reference/datetime/functions/date-date-set.xml diff -u phpdoc-fr/reference/datetime/functions/date-date-set.xml:1.4 phpdoc-fr/reference/datetime/functions/date-date-set.xml:1.5 --- phpdoc-fr/reference/datetime/functions/date-date-set.xml:1.4 Sun Nov 30 22:01:12 2008 +++ phpdoc-fr/reference/datetime/functions/date-date-set.xml Wed Jan 7 20:50:49 2009 @@ -1,124 +1,18 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.date-date-set" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>date_date_set</refname> - <refpurpose>Fixe la date</refpurpose> + <refpurpose>&Alias; <methodname>DateTime::setDate</methodname></refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>void</type><methodname>date_date_set</methodname> - <methodparam><type>DateTime</type><parameter>object</parameter></methodparam> - <methodparam><type>int</type><parameter>year</parameter></methodparam> - <methodparam><type>int</type><parameter>month</parameter></methodparam> - <methodparam><type>int</type><parameter>day</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>DateTime::setDate</methodname> - <methodparam><type>int</type><parameter>year</parameter></methodparam> - <methodparam><type>int</type><parameter>month</parameter></methodparam> - <methodparam><type>int</type><parameter>day</parameter></methodparam> - </methodsynopsis> - <para> - Fixe la date courante de l'objet DateTime à une date différente. - </para> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &date.datetime.description; - <varlistentry> - <term><parameter>year</parameter></term> - <listitem> - <para> - Année de la date. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>month</parameter></term> - <listitem> - <para> - Mois de la date. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>day</parameter></term> - <listitem> - <para> - Jour de la date. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Retourne &null; en cas de succès ou &false; en cas d'échec. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title>Style orienté objet</title> - <programlisting role="php"> -<![CDATA[ -<?php -date_default_timezone_set('Europe/London'); - -$datetime = new DateTime('2008-08-03 14:52:10'); -$datetime->setDate(2008, 10, 12); - -echo $datetime->format(DATE_RFC2822); -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Style procédural</title> - <programlisting role="php"> -<![CDATA[ -<?php -date_default_timezone_set('Europe/London'); - -$datetime = date_create('2008-08-03 14:52:10'); -date_date_set($datetime, 2008, 10, 12); - -echo date_format($datetime, DATE_RFC2822); -?> -]]> - </programlisting> - &example.outputs; - <screen> -<![CDATA[ -Sun, 12 Oct 2008 14:52:10 +0100 -]]> - </screen> - </example> - </para> - </refsect1> - - <refsect1 role="seealso"> - &reftitle.seealso; <para> - <simplelist> - <member><function>date_isodate_set</function></member> - <member><function>date_time_set</function></member> - </simplelist> + &info.function.alias; <methodname>DateTime::setDate</methodname> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/date-format.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-fr/reference/datetime/functions/date-format.xml diff -u phpdoc-fr/reference/datetime/functions/date-format.xml:1.4 phpdoc-fr/reference/datetime/functions/date-format.xml:1.5 --- phpdoc-fr/reference/datetime/functions/date-format.xml:1.4 Sun Dec 7 20:13:55 2008 +++ phpdoc-fr/reference/datetime/functions/date-format.xml Wed Jan 7 20:50:49 2009 @@ -1,100 +1,18 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.date-format" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>date_format</refname> - <refpurpose>Retourne la date mis en forme dans le format donné</refpurpose> + <refpurpose>&Alias; <methodname>DateTime::format</methodname></refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>string</type><methodname>date_format</methodname> - <methodparam><type>DateTime</type><parameter>object</parameter></methodparam> - <methodparam><type>string</type><parameter>format</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>string</type><methodname>DateTime::format</methodname> - <methodparam><type>string</type><parameter>format</parameter></methodparam> - </methodsynopsis> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &date.datetime.description; - <varlistentry> - <term><parameter>format</parameter></term> - <listitem> - <para> - Format accepté par <function>date</function>. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Retourne une date mise en forme en cas de succès ou &false; en cas d'échec. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title>Affichage de la date et de l'heure, de façon procédurale</title> - <programlisting role="php"> -<![CDATA[ -<?php -date_default_timezone_set('Europe/London'); - -$datetime = date_create('2008-08-03 14:52:10'); -echo date_format($datetime, 'jS, F Y') . "\n"; -echo date_format($datetime, DATE_ATOM); -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Affichage de la date et de l'heure, de façon orientée objet</title> - <programlisting role="php"> -<![CDATA[ -<?php -date_default_timezone_set('Europe/London'); - -$datetime = new DateTime('2008-08-03 14:52:10'); -echo $datetime->format('jS, F Y') . "\n"; -echo $datetime->format(DATE_ATOM); -?> -?> -]]> - </programlisting> - &example.outputs; - <screen> -<![CDATA[ -3rd, August 2008 -2008-08-03T14:52:10+01:00 -]]> - </screen> - </example> - </para> - </refsect1> - - <refsect1 role="seealso"> - &reftitle.seealso; <para> - <simplelist> - <member><function>date</function></member> - </simplelist> + &info.function.alias; <methodname>DateTime::format</methodname> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/date-isodate-set.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-fr/reference/datetime/functions/date-isodate-set.xml diff -u phpdoc-fr/reference/datetime/functions/date-isodate-set.xml:1.4 phpdoc-fr/reference/datetime/functions/date-isodate-set.xml:1.5 --- phpdoc-fr/reference/datetime/functions/date-isodate-set.xml:1.4 Sun Dec 7 20:13:55 2008 +++ phpdoc-fr/reference/datetime/functions/date-isodate-set.xml Wed Jan 7 20:50:49 2009 @@ -1,119 +1,18 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.date-isodate-set" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>date_isodate_set</refname> - <refpurpose>Fixe la date ISO</refpurpose> + <refpurpose>&Alias; <methodname>DateTime::setISODate</methodname></refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>void</type><methodname>date_isodate_set</methodname> - <methodparam><type>DateTime</type><parameter>object</parameter></methodparam> - <methodparam><type>int</type><parameter>year</parameter></methodparam> - <methodparam><type>int</type><parameter>week</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>day</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>DateTime::setISODate</methodname> - <methodparam><type>int</type><parameter>year</parameter></methodparam> - <methodparam><type>int</type><parameter>week</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>day</parameter></methodparam> - </methodsynopsis> - <para> - Définit une date suivant le standard ISO 8601, en utilisant la position de la - semaine et du jour, plutôt qu'en spécifiant une date. - </para> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &date.datetime.description; - <varlistentry> - <term><parameter>year</parameter></term> - <listitem> - <para> - Année de la date. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>week</parameter></term> - <listitem> - <para> - Semaine de la date. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>day</parameter></term> - <listitem> - <para> - Position du jour par rapport au premier jour de la semaine. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Retourne &null; en cas de succès ou &false; en cas d'échec. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title>Recherche de la date depuis un numéro de semaine et de jour</title> - <programlisting role="php"> -<![CDATA[ -<?php -date_default_timezone_set('Europe/London'); - -$datetime = new DateTime(); - -// Position depuis le début de la semaine 2 (7) = 5 -$datetime->setISODate(2008, 2, 5); // Le jour 5 de la semaine 2 de l'année 2008 correspond au 11 Janvier. - -// Position depuis le début de la semaine 2 (7) = 10 -$datetime->setISODate(2008, 2, 10); // Le jour 10 de la semaine 2 de l'année 2008 correspond au 16 Janvier. -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Recherche du mois correspondant à une semaine</title> - <programlisting role="php"> -<![CDATA[ -<?php -date_default_timezone_set('Europe/London'); - -$datetime = date_create(); -date_isodate_set($datetime, 2008, 6); // La semaine 6 de l'année 2008 est en Février. -?> -]]> - </programlisting> - </example> - </para> - </refsect1> - - <refsect1 role="seealso"> - &reftitle.seealso; <para> - <simplelist> - <member><function>date_date_set</function></member> - </simplelist> + &info.function.alias; <methodname>DateTime::setISODate</methodname> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/date-modify.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-fr/reference/datetime/functions/date-modify.xml diff -u phpdoc-fr/reference/datetime/functions/date-modify.xml:1.4 phpdoc-fr/reference/datetime/functions/date-modify.xml:1.5 --- phpdoc-fr/reference/datetime/functions/date-modify.xml:1.4 Sun Dec 7 20:13:55 2008 +++ phpdoc-fr/reference/datetime/functions/date-modify.xml Wed Jan 7 20:50:49 2009 @@ -1,85 +1,18 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.date-modify" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>date_modify</refname> - <refpurpose>Modifie le timestamp</refpurpose> + <refpurpose>&Alias; <methodname>DateTime::modify</methodname></refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>void</type><methodname>date_modify</methodname> - <methodparam><type>DateTime</type><parameter>object</parameter></methodparam> - <methodparam><type>string</type><parameter>modify</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>DateTime::modify</methodname> - <methodparam><type>string</type><parameter>modify</parameter></methodparam> - </methodsynopsis> - <para> - Modifie le timestamp d'un objet DateTime par incrément ou décrément, dans un format - accepté par la fonction <function>strtotime</function>. - </para> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &date.datetime.description; - <varlistentry> - <term><parameter>modify</parameter></term> - <listitem> - <para> - Une &string; dans le format relatif accepté par - <function>strtotime</function>. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Retourne &null; en cas de succès ou &false; en cas d'échec. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title>Exemple avec <function>date_modify</function></title> - <programlisting role="php"> -<![CDATA[ -<?php -$date = new DateTime("2006-12-12"); -$date->modify("+1 day"); -echo $date->format("Y-m-d"); -?> -]]> - </programlisting> - &example.outputs; - <screen> -<![CDATA[ -2006-12-13 -]]> - </screen> - </example> - </para> - </refsect1> - - <refsect1 role="seealso"> - &reftitle.seealso; <para> - <simplelist> - <member><function>strtotime</function></member> - </simplelist> + &info.function.alias; <methodname>DateTime::modify</methodname> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/date-offset-get.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-fr/reference/datetime/functions/date-offset-get.xml diff -u phpdoc-fr/reference/datetime/functions/date-offset-get.xml:1.4 phpdoc-fr/reference/datetime/functions/date-offset-get.xml:1.5 --- phpdoc-fr/reference/datetime/functions/date-offset-get.xml:1.4 Sun Dec 7 20:13:55 2008 +++ phpdoc-fr/reference/datetime/functions/date-offset-get.xml Wed Jan 7 20:50:49 2009 @@ -1,61 +1,18 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="function.date-offset-get" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>date_offset_get</refname> - <refpurpose>Retourne le décalage de l'heure avancée</refpurpose> + <refpurpose>&Alias; <methodname>DateTime::getOffset</methodname></refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>int</type><methodname>date_offset_get</methodname> - <methodparam><type>DateTime</type><parameter>object</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>int</type><methodname>DateTime::getOffset</methodname> - <void/> - </methodsynopsis> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &date.datetime.description; - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; <para> - Retourne le décalage de l'heure avancée en cas de succès ou &false; en cas - d'échec. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title>Compare les positions entre l'heure d'été et l'heure d'hiver</title> - <programlisting role="php"> -<![CDATA[ -<?php -date_default_timezone_set('Europe/London'); - -$winter = new DateTime('2008-12-25 14:25:41'); -$summer = new DateTime('2008-07-14 14:25:41'); - -echo $winter->getOffset(); // Position de l'hiver : 0 -echo $summer->getOffset(); // Position de l'été : 3600 = 1 heure -?> -]]> - </programlisting> - </example> + &info.function.alias; <methodname>DateTime::getOffset</methodname> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/date-time-set.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-fr/reference/datetime/functions/date-time-set.xml diff -u phpdoc-fr/reference/datetime/functions/date-time-set.xml:1.4 phpdoc-fr/reference/datetime/functions/date-time-set.xml:1.5 --- phpdoc-fr/reference/datetime/functions/date-time-set.xml:1.4 Sun Dec 7 20:13:55 2008 +++ phpdoc-fr/reference/datetime/functions/date-time-set.xml Wed Jan 7 20:50:49 2009 @@ -1,119 +1,18 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.date-time-set" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>date_time_set</refname> - <refpurpose>Fixe le temps</refpurpose> + <refpurpose>&Alias; <methodname>DateTime::setTime</methodname></refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>void</type><methodname>date_time_set</methodname> - <methodparam><type>DateTime</type><parameter>object</parameter></methodparam> - <methodparam><type>int</type><parameter>hour</parameter></methodparam> - <methodparam><type>int</type><parameter>minute</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>second</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>DateTime::setTime</methodname> - <methodparam><type>int</type><parameter>hour</parameter></methodparam> - <methodparam><type>int</type><parameter>minute</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>second</parameter></methodparam> - </methodsynopsis> - <para> - Réinitialise le temps courant d'un objet DateTime à un temps différent. - </para> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &date.datetime.description; - <varlistentry> - <term><parameter>hour</parameter></term> - <listitem> - <para> - Heure du temps. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>minute</parameter></term> - <listitem> - <para> - Minute du temps. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>second</parameter></term> - <listitem> - <para> - Seconde du temps. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Retourne &null; en cas de succès ou &false; en cas d'échec. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title>Modification du temps d'un objet DateTime</title> - <programlisting role="php"> -<![CDATA[ -<?php -date_default_timezone_set('Europe/London'); - -$datetime = new DateTime('2008-08-03 12:35:23'); -echo $datetime->format('Y-m-d H:i:s') . "\n"; - -$datetime->setTime(14, 55, 24); -echo $datetime->format('Y-m-d H:i:s') . "\n"; - -// Attention : Ne pas incrémenter l'heure ! -// Car l'heure a déjà été définie (14) - voir date_modify() -$datetime->setTime($datetime->format('H'), $datetime->format('n') + 6); -echo $datetime->format('Y-m-d H:i:s') . "\n"; - -// Incrément du jour, car le jour n'a pas été défini pour le moment -$datetime->setTime($datetime->format('H') + 12, $datetime->format('n')); -echo $datetime->format('Y-m-d H:i:s') . "\n"; -?> -]]> - </programlisting> - &example.outputs; - <screen> -<![CDATA[ -2008-08-03 12:35:23 -2008-08-03 14:55:24 -2008-08-03 14:14:00 -2008-08-04 02:08:00 -]]> - </screen> - </example> - </para> - </refsect1> - - <refsect1 role="seealso"> - &reftitle.seealso; <para> - <simplelist> - <member><function>date_date_set</function></member> - </simplelist> + &info.function.alias; <methodname>DateTime::setTime</methodname> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/date-timezone-get.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-fr/reference/datetime/functions/date-timezone-get.xml diff -u phpdoc-fr/reference/datetime/functions/date-timezone-get.xml:1.6 phpdoc-fr/reference/datetime/functions/date-timezone-get.xml:1.7 --- phpdoc-fr/reference/datetime/functions/date-timezone-get.xml:1.6 Sat Dec 27 14:51:39 2008 +++ phpdoc-fr/reference/datetime/functions/date-timezone-get.xml Wed Jan 7 20:50:49 2009 @@ -1,80 +1,17 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.date-timezone-get" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>date_timezone_get</refname> - <refpurpose>Retourne le fuseau horaire relatif au DateTime donné</refpurpose> + <refpurpose>&Alias; <methodname>DateTime::getTimezone</methodname></refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>DateTimeZone</type><methodname>date_timezone_get</methodname> - <methodparam><type>DateTime</type><parameter>object</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>DateTimeZone</type><methodname>DateTime::getTimezone</methodname> - <void/> - </methodsynopsis> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &date.datetime.description; - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Retourne un objet DateTimeZone en cas de succès ou &false; en cas d'échec. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title>Définition et récupération d'objets DateTimeZone</title> - <programlisting role="php"> -<![CDATA[ -<?php -date_default_timezone_set('Europe/London'); - -$datetime = new DateTime('2008-08-03 12:35:23'); -echo $datetime->getTimezone()->getName() . "\n"; - -$datetime = new DateTime('2008-08-03 12:35:23'); -$la_time = new DateTimeZone('America/Los_Angeles'); -$datetime->setTimezone($la_time); -echo $datetime->getTimezone()->getName(); -?> -]]> - </programlisting> - &example.outputs; - <screen> -<![CDATA[ -Europe/London -America/Los_Angeles -]]> - </screen> - </example> - </para> - </refsect1> - <refsect1 role="seealso"> - &reftitle.seealso; - <para> - <simplelist> - <member><function>date_timezone_set</function></member> - <member><function>timezone_open</function></member> - </simplelist> - </para> + &info.function.alias; <methodname>DateTime::getTimezone</methodname> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/date-timezone-set.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-fr/reference/datetime/functions/date-timezone-set.xml diff -u phpdoc-fr/reference/datetime/functions/date-timezone-set.xml:1.5 phpdoc-fr/reference/datetime/functions/date-timezone-set.xml:1.6 --- phpdoc-fr/reference/datetime/functions/date-timezone-set.xml:1.5 Sun Dec 7 20:13:55 2008 +++ phpdoc-fr/reference/datetime/functions/date-timezone-set.xml Wed Jan 7 20:50:49 2009 @@ -1,89 +1,17 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.date-timezone-set" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>date_timezone_set</refname> - <refpurpose>Fixe le fuseau horaire pour l'objet DateTime</refpurpose> + <refpurpose>&Alias; <methodname>DateTime::setTimezone</methodname></refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>void</type><methodname>date_timezone_set</methodname> - <methodparam><type>DateTime</type><parameter>object</parameter></methodparam> - <methodparam><type>DateTimeZone</type><parameter>timezone</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>DateTime::setTimezone</methodname> - <methodparam><type>DateTimeZone</type><parameter>timezone</parameter></methodparam> - </methodsynopsis> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &date.datetime.description; - <varlistentry> - <term><parameter>timezone</parameter></term> - <listitem> - <para> - Fuseau horaire désiré. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Retourne &null; en cas de succès ou &false; en cas d'échec. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title>Définition et récupération d'objets DateTimeZone</title> - <programlisting role="php"> -<![CDATA[ -<?php -date_default_timezone_set('Europe/London'); - -$datetime = new DateTime('2008-08-03 12:35:23'); -echo $datetime->getTimezone()->getName() . "\n"; - -$datetime = new DateTime('2008-08-03 12:35:23'); -$la_time = new DateTimeZone('America/Los_Angeles'); -$datetime->setTimezone($la_time); -echo $datetime->getTimezone()->getName(); -?> -]]> - </programlisting> - &example.outputs; - <screen> -<![CDATA[ -Europe/London -America/Los_Angeles -]]> - </screen> - </example> - </para> - </refsect1> - - <refsect1 role="seealso"> - &reftitle.seealso; - <para> - <simplelist> - <member><function>date_timezone_get</function></member> - <member><function>timezone_open</function></member> - </simplelist> - </para> + + &info.function.alias; <methodname>DateTime::setTimezone</methodname> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/timezone-abbreviations-list.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-fr/reference/datetime/functions/timezone-abbreviations-list.xml diff -u phpdoc-fr/reference/datetime/functions/timezone-abbreviations-list.xml:1.5 phpdoc-fr/reference/datetime/functions/timezone-abbreviations-list.xml:1.6 --- phpdoc-fr/reference/datetime/functions/timezone-abbreviations-list.xml:1.5 Tue Oct 9 21:29:43 2007 +++ phpdoc-fr/reference/datetime/functions/timezone-abbreviations-list.xml Wed Jan 7 20:50:49 2009 @@ -1,93 +1,17 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.timezone-abbreviations-list" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>timezone_abbreviations_list</refname> - <refpurpose>Retourne un tableau associatif contenant l'heure avancée, - décalage et le nom du fuseau horaire</refpurpose> + <refpurpose>&Alias; <methodname>DateTimeZone::listAbbreviations</methodname></refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>array</type><methodname>timezone_abbreviations_list</methodname> - <void/> - </methodsynopsis> - <methodsynopsis> - <type>array</type><methodname>DateTimeZone::listAbbreviations</methodname> - <void/> - </methodsynopsis> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Retourne un tableau en cas de succès ou &false; en cas d'échec. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title>Exemple avec <function>timezone_abbreviations_list</function></title> - <programlisting role="php"> -<![CDATA[ -<?php -$timezone_abbreviations = DateTimeZone::listAbbreviations(); -print_r($timezone_abbreviations["acst"]); -?> -]]> - </programlisting> - &example.outputs.similar; - <screen> -<![CDATA[ -Array -( - [0] => Array - ( - [dst] => 1 - [offset] => -14400 - [timezone_id] => America/Porto_Acre - ) - - [1] => Array - ( - [dst] => 1 - [offset] => -14400 - [timezone_id] => America/Eirunepe - ) - - [2] => Array - ( - [dst] => 1 - [offset] => -14400 - [timezone_id] => America/Rio_Branco - ) - - [3] => Array - ( - [dst] => 1 - [offset] => -14400 - [timezone_id] => Brazil/Acre - ) - -) -]]> - </screen> - </example> - </para> - </refsect1> - <refsect1 role="seealso"> - &reftitle.seealso; - <para> - <simplelist> - <member><function>timezone_identifiers_list</function></member> - </simplelist> - </para> + &info.function.alias; <methodname>DateTimeZone::listAbbreviations</methodname> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/timezone-identifiers-list.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-fr/reference/datetime/functions/timezone-identifiers-list.xml diff -u phpdoc-fr/reference/datetime/functions/timezone-identifiers-list.xml:1.6 phpdoc-fr/reference/datetime/functions/timezone-identifiers-list.xml:1.7 --- phpdoc-fr/reference/datetime/functions/timezone-identifiers-list.xml:1.6 Sun Dec 7 20:13:55 2008 +++ phpdoc-fr/reference/datetime/functions/timezone-identifiers-list.xml Wed Jan 7 20:50:49 2009 @@ -1,96 +1,18 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.timezone-identifiers-list" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>timezone_identifiers_list</refname> - <refpurpose>Retourne un tableau indexé numériquement avec tous les identifiants des fuseaux horaires</refpurpose> + <refpurpose>&Alias; <methodname>DateTimeZone::listIdentifiers</methodname></refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>array</type><methodname>timezone_identifiers_list</methodname> - <methodparam><type>int</type><parameter>what</parameter></methodparam> - <methodparam><type>string</type><parameter>option</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>array</type><methodname>DateTimeZone::listIdentifiers</methodname> - <methodparam><type>int</type><parameter>what</parameter></methodparam> - <methodparam><type>string</type><parameter>country</parameter></methodparam> - </methodsynopsis> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &date.datetime.description; - <varlistentry> - <term><parameter>what</parameter></term> - <listitem> - <para> - Une constante <classname>DateTimeZone</classname> et par défaut, - <constant>DateTimeZone::ALL</constant>. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>country</parameter></term> - <listitem> - <para> - Le code pays, sur 2 lettres, compatible - ISO 3166-1. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Retourne un tableau en cas de succès ou &false; en cas d'échec. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title>Exemple avec <function>timezone_identifiers_list</function></title> - <programlisting role="php"> -<![CDATA[ -<?php -$timezone_identifiers = DateTimeZone::listIdentifiers(); -for ($i=0; $i < 5; $i++) { - echo "$timezone_identifiers[$i]\n"; -} -?> -]]> - </programlisting> - &example.outputs.similar; - <screen> -<![CDATA[ -Africa/Abidjan -Africa/Accra -Africa/Addis_Ababa -Africa/Algiers -Africa/Asmera -]]> - </screen> - </example> - </para> - </refsect1> - - <refsect1 role="seealso"> - &reftitle.seealso; <para> - <simplelist> - <member><function>timezone_abbreviations_list</function></member> - </simplelist> + &info.function.alias; <methodname>DateTimeZone::listIdentifiers</methodname> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/timezone-name-get.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-fr/reference/datetime/functions/timezone-name-get.xml diff -u phpdoc-fr/reference/datetime/functions/timezone-name-get.xml:1.4 phpdoc-fr/reference/datetime/functions/timezone-name-get.xml:1.5 --- phpdoc-fr/reference/datetime/functions/timezone-name-get.xml:1.4 Sun Dec 7 20:13:55 2008 +++ phpdoc-fr/reference/datetime/functions/timezone-name-get.xml Wed Jan 7 20:50:49 2009 @@ -1,44 +1,24 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.timezone-name-get" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>timezone_name_get</refname> - <refpurpose>Retourne le nom du fuseau horaire</refpurpose> + <refpurpose>&Alias; <methodname>DateTimeZone::getName</methodname></refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>string</type><methodname>timezone_name_get</methodname> - <methodparam><type>DateTimeZone</type><parameter>object</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>string</type><methodname>DateTimeZone::getName</methodname> - <void/> - </methodsynopsis> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &date.datetimezone.description; - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; <para> - Retourne le nom du fuseau horaire en cas de succès ou &false; en cas - d'échec. + &info.function.alias; <methodname>DateTimeZone::getName</methodname> </para> </refsect1> </refentry> + <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/timezone-offset-get.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-fr/reference/datetime/functions/timezone-offset-get.xml diff -u phpdoc-fr/reference/datetime/functions/timezone-offset-get.xml:1.6 phpdoc-fr/reference/datetime/functions/timezone-offset-get.xml:1.7 --- phpdoc-fr/reference/datetime/functions/timezone-offset-get.xml:1.6 Sun Dec 7 20:13:55 2008 +++ phpdoc-fr/reference/datetime/functions/timezone-offset-get.xml Wed Jan 7 20:50:49 2009 @@ -1,86 +1,18 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.timezone-offset-get" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>timezone_offset_get</refname> - <refpurpose>Retourne le décalage du fuseau horaire</refpurpose> + <refpurpose>&Alias; <methodname>DateTimeZone::getOffset</methodname></refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>int</type><methodname>timezone_offset_get</methodname> - <methodparam><type>DateTimeZone</type><parameter>object</parameter></methodparam> - <methodparam><type>DateTime</type><parameter>datetime</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>int</type><methodname>DateTimeZone::getOffset</methodname> - <methodparam><type>DateTime</type><parameter>datetime</parameter></methodparam> - </methodsynopsis> - <para> - Cette fonction retourne le décalage horaire depuis GMT pour la date/heure - spécifiée dans le paramètre <parameter>datetime</parameter>. - Le décalage horaire depuis GMT est calculé avec les informations depuis le - fuseau horaire contenues dans l'objet DateTime utilisé. - </para> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &date.datetimezone.description; - <varlistentry> - <term><parameter>datetime</parameter></term> - <listitem> - <para> - DateTime qui contient la date/heure pour calculer le décalage horaire. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Retourne le décalage du fuseau horaire en seconde en cas de succès ou - &false; en cas d'échec. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; <para> - <example> - <title>Exemple avec <function>timezone_offset_get</function></title> - <programlisting role="php"> -<![CDATA[ -<?php -// Création de deux objets de fuseau horaire, un pour Taipei (Taiwan) et un pour -// Tokyo (Japon) -$dateTimeZoneTaipei = new DateTimeZone("Asia/Taipei"); -$dateTimeZoneJapan = new DateTimeZone("Asia/Tokyo"); - -// Création de deux objets DateTime qui contiendront le même timestamp Unix, mais -// avec des fuseaux horaires différents attachés. -$dateTimeTaipei = new DateTime("now", $dateTimeZoneTaipei); -$dateTimeJapan = new DateTime("now", $dateTimeZoneJapan); - -// Calcul le décalage horaire depuis GMT pour la date/heure contenue dans l'objet $dateTimeTaipei, -// mais en utilisant les règles du fuseau horaire définies pour Tokyo -// ($dateTimeZoneJapan). -$timeOffset = $dateTimeZoneJapan->getOffset($dateTimeTaipei); - -// Devrait afficher int(32400) (pour les dates après Sat Sep 8 01:00:00 1951 JST). -var_dump($timeOffset); -?> -]]> - </programlisting> - </example> + &info.function.alias; <methodname>DateTimeZone::getOffset</methodname> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/datetime/functions/timezone-transitions-get.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-fr/reference/datetime/functions/timezone-transitions-get.xml diff -u phpdoc-fr/reference/datetime/functions/timezone-transitions-get.xml:1.4 phpdoc-fr/reference/datetime/functions/timezone-transitions-get.xml:1.5 --- phpdoc-fr/reference/datetime/functions/timezone-transitions-get.xml:1.4 Sun Dec 7 20:13:55 2008 +++ phpdoc-fr/reference/datetime/functions/timezone-transitions-get.xml Wed Jan 7 20:50:49 2009 @@ -1,69 +1,18 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.timezone-transitions-get" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>timezone_transitions_get</refname> - <refpurpose>Retourne toutes les transitions pour le fuseau horaire</refpurpose> + <refpurpose>&Alias; <methodname>DateTimeZone::getTransitions</methodname></refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <methodsynopsis> - <type>array</type><methodname>timezone_transitions_get</methodname> - <methodparam><type>DateTimeZone</type><parameter>object</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>array</type><methodname>DateTimeZone::getTransitions</methodname> - <void/> - </methodsynopsis> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &date.datetimezone.description; - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - Retourne un tableau indexé numériquement contenant un tableau associatif - avec toutes les transitions en cas de succès ou &false; en cas d'échec. - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; <para> - <example> - <title>Exemple avec <function>timezone_transitions_get</function></title> - <programlisting role="php"> -<![CDATA[ -<?php -$timezone = new DateTimeZone("CET"); -print_r(reset($timezone->getTransitions())); -?> -]]> - </programlisting> - &example.outputs.similar; - <screen> -<![CDATA[ -Array -( - [ts] => -1693706400 - [time] => 1916-04-30T22:00:00+0000 - [offset] => 7200 - [isdst] => 1 - [abbr] => CEST -) -]]> - </screen> - </example> + &info.function.alias; <methodname>DateTimeZone::getTransitions</methodname> </para> </refsect1>