cvs: phpdoc-fr /reference/datetime reference.xml /reference/datetime/functions date.xml getdate.xml gmdate.xml gmmktime.xml gmstrftime.xml
microtime.xml mktime.xml strftime.xml strtotime.xml
| From: | Damien Seguy | Date: | Tue, 03 Dec 2002 21:25:56 +0000 |
| Subject: | cvs: phpdoc-fr /reference/datetime reference.xml /reference/datetime/functions date.xml getdate.xml gmdate.xml gmmktime.xml gmstrftime.xml microtime.xml mktime.xml strftime.xml strtotime.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-136@lists.php.net to get a copy of this message | ||
dams Tue Dec 3 16:25:56 2002 EDT
Modified files:
/phpdoc-fr/reference/datetime reference.xml
/phpdoc-fr/reference/datetime/functions date.xml getdate.xml
gmdate.xml gmmktime.xml
gmstrftime.xml
microtime.xml mktime.xml
strftime.xml strtotime.xml
Log:
keep up with banana split
Index: phpdoc-fr/reference/datetime/reference.xml diff -u phpdoc-fr/reference/datetime/reference.xml:1.2 phpdoc-fr/reference/datetime/reference.xml:1.3 --- phpdoc-fr/reference/datetime/reference.xml:1.2 Mon Apr 15 20:53:05 2002 +++ phpdoc-fr/reference/datetime/reference.xml Tue Dec 3 16:25:55 2002 @@ -1,8 +1,55 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <reference id="ref.datetime"> <title>Dates et heures</title> <titleabbrev>Date/heure</titleabbrev> + + <partintro> + <section id="datetime.intro"> + &reftitle.intro; + <para> + Ces fonctions vous permettent de manipuler la date et l'heure sur + le serveur qui exécute PHP. Vous pouvez utiliser ces fonctions pour + formater la date et l'heure de nombreuses façons. + </para> + <note> + <simpara> + N'oubliez pas que ces fonctions dépendent de la configuration + locale de votre serveur. Faites notamment attention aux + changements d'heure d'hiver et d'été, ainsi qu'aux années + bissextiles. + </simpara> + </note> + + </section> + + <section id="datetime.required"> + &reftitle.required; + &no.requirement; + </section> + + <section id="datetime.installation"> + &reftitle.install; + &no.install; + </section> + + <section id="datetime.runtime"> + &reftitle.runtime; + &no.config; + </section> + + <section id="datetime.resources"> + &reftitle.resources; + &no.resource; + </section> + + <section id="datetime.constants"> + &reftitle.constants; + &no.constants; + </section> + + </partintro> + &reference.datetime.functions; Index: phpdoc-fr/reference/datetime/functions/date.xml diff -u phpdoc-fr/reference/datetime/functions/date.xml:1.1 phpdoc-fr/reference/datetime/functions/date.xml:1.2 --- phpdoc-fr/reference/datetime/functions/date.xml:1.1 Sun Apr 14 20:23:55 2002 +++ phpdoc-fr/reference/datetime/functions/date.xml Tue Dec 3 16:25:55 2002 @@ -206,10 +206,12 @@ <example> <title>Exemple avec <function>date</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php echo (date("l dS of F Y h:i:s A")); echo ("Le 14 Juillet 2002 tombe un " . date("l", mktime(0,0,0,7,14,2002))); -?> +?> +]]> </programlisting> </example> </para> @@ -220,11 +222,13 @@ <example> <title>Protection des caractères avec <function>date</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php echo date("l \\t\h\e jS"); // affiche 'Saturday the 8th' // \t représente une tabulation -?> +?> +]]> </programlisting> </example> </para> @@ -237,11 +241,13 @@ Exemples avec <function>date</function> et <function>mktime</function> </title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $demain = mktime(0,0,0,date("m") ,date("d") + 1,date("Y") ); $le_mois_dernier = mktime(0,0,0,date("m")-1,date("d") ,date("Y") ); $l_an_prochain = mktime(0,0,0,date("m"), date("d") ,date("Y") + 1); -?> +?> +]]> </programlisting> </example> </para> @@ -266,7 +272,8 @@ <example> <title>Formatage avec <function>date</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php /* Aujourd'hui, le 12 Mars 2001, 10:16:18 pm */ $aujourdhui = date("F j, Y, g:i a"); // March 12, 2001, 10:16 pm $aujourdhui = date("m.d.y"); // 03.12.01 @@ -280,7 +287,8 @@ // notation française $aujourdhui = date("d/m/y"); // 12/03/01 $aujourdhui = date("d/m/Y"); // 12/03/2001 -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/datetime/functions/getdate.xml diff -u phpdoc-fr/reference/datetime/functions/getdate.xml:1.1 phpdoc-fr/reference/datetime/functions/getdate.xml:1.2 --- phpdoc-fr/reference/datetime/functions/getdate.xml:1.1 Sun Apr 14 20:23:55 2002 +++ phpdoc-fr/reference/datetime/functions/getdate.xml Tue Dec 3 16:25:55 2002 @@ -72,13 +72,15 @@ <example> <title>Exemple avec <function>getdate</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $aujourdhui = getdate(); $mois = $aujourdhui['month']; $mjour = $aujourdhui['mday']; $annee = $aujourdhui['year']; echo "$mjour/$mois/$annee"; -?> +?> +]]> </programlisting> </example> </refsect1> Index: phpdoc-fr/reference/datetime/functions/gmdate.xml diff -u phpdoc-fr/reference/datetime/functions/gmdate.xml:1.1 phpdoc-fr/reference/datetime/functions/gmdate.xml:1.2 --- phpdoc-fr/reference/datetime/functions/gmdate.xml:1.1 Sun Apr 14 20:23:55 2002 +++ phpdoc-fr/reference/datetime/functions/gmdate.xml Tue Dec 3 16:25:55 2002 @@ -21,10 +21,12 @@ <example> <title>Exemple avec <function>gmdate</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php echo date("M d Y H:i:s", mktime(0,0,0,1,1,1998)); echo gmdate("M d Y H:i:s", mktime(0,0,0,1,1,1998)); -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/datetime/functions/gmmktime.xml diff -u phpdoc-fr/reference/datetime/functions/gmmktime.xml:1.1 phpdoc-fr/reference/datetime/functions/gmmktime.xml:1.2 --- phpdoc-fr/reference/datetime/functions/gmmktime.xml:1.1 Sun Apr 14 20:23:55 2002 +++ phpdoc-fr/reference/datetime/functions/gmmktime.xml Tue Dec 3 16:25:55 2002 @@ -19,7 +19,8 @@ <methodparam choice="opt"><type>int</type><parameter>is_dst</parameter></methodparam> </methodsynopsis> <para> - Identique à <function>mktime</function> hormis le fait que + <methodname>gmmktime</methodname> est identique à + <function>mktime</function> hormis le fait que les paramètres passés sont GMT. </para> </refsect1> Index: phpdoc-fr/reference/datetime/functions/gmstrftime.xml diff -u phpdoc-fr/reference/datetime/functions/gmstrftime.xml:1.1 phpdoc-fr/reference/datetime/functions/gmstrftime.xml:1.2 --- phpdoc-fr/reference/datetime/functions/gmstrftime.xml:1.1 Sun Apr 14 20:23:55 2002 +++ phpdoc-fr/reference/datetime/functions/gmstrftime.xml Tue Dec 3 16:25:55 2002 @@ -25,11 +25,13 @@ <example> <title>Exemple avec <function>gmstrftime</function></title> <programlisting role="php"> -<?php - setlocale('LC_TIME', 'en_US'); +<![CDATA[ +<?php + setlocale(LC_TIME, 'en_US'); echo strftime("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n"; echo gmstrftime("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n"; -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/datetime/functions/microtime.xml diff -u phpdoc-fr/reference/datetime/functions/microtime.xml:1.1 phpdoc-fr/reference/datetime/functions/microtime.xml:1.2 --- phpdoc-fr/reference/datetime/functions/microtime.xml:1.1 Sun Apr 14 20:23:55 2002 +++ phpdoc-fr/reference/datetime/functions/microtime.xml Tue Dec 3 16:25:55 2002 @@ -27,19 +27,21 @@ <example> <title>Exemple avec <function>microtime</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php function getmicrotime(){ list($usec, $sec) = explode(" ",microtime()); return ((float)$usec + (float)$sec); } $time_start = getmicrotime(); - for ($i=0; $i < 1000; $i++){ + for ($i=0; $i > 1000; $i++){ //ne rien faire, pendant un millier de fois... } $time_end = getmicrotime(); $time = $time_end - $time_start; echo "Rien fait durant $time secondes"; -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/datetime/functions/mktime.xml diff -u phpdoc-fr/reference/datetime/functions/mktime.xml:1.2 phpdoc-fr/reference/datetime/functions/mktime.xml:1.3 --- phpdoc-fr/reference/datetime/functions/mktime.xml:1.2 Wed Sep 4 11:17:17 2002 +++ phpdoc-fr/reference/datetime/functions/mktime.xml Tue Dec 3 16:25:55 2002 @@ -57,12 +57,14 @@ <example> <title>Exemple <function>mktime</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php echo date("M-d-Y", mktime (0,0,0,12,32,1997)); echo date("M-d-Y", mktime (0,0,0,13,1,1997)); echo date("M-d-Y", mktime (0,0,0,1,1,1998)); echo date("M-d-Y", mktime (0,0,0,1,1,98)); -?> +?> +]]> </programlisting> </example> <parameter>year</parameter> peut prendre deux ou quatre chiffres, @@ -80,12 +82,14 @@ <example> <title>Dernier jour du mois</title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $lastday = mktime (0,0,0,3,0,2000); echo strftime ("Le dernier jour de Février 2000 est: %d", $lastday); $lastday = mktime (0,0,0,4,-31,2000); echo strftime ("Le dernier jour de Février 2000 est: %d", $lastday); -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/datetime/functions/strftime.xml diff -u phpdoc-fr/reference/datetime/functions/strftime.xml:1.1 phpdoc-fr/reference/datetime/functions/strftime.xml:1.2 --- phpdoc-fr/reference/datetime/functions/strftime.xml:1.1 Sun Apr 14 20:23:56 2002 +++ phpdoc-fr/reference/datetime/functions/strftime.xml Tue Dec 3 16:25:55 2002 @@ -221,16 +221,18 @@ <example> <title>Exemple <function>strftime</function></title> <programlisting role="php"> -<?php - setlocale ("LC_TIME", "C"); +<![CDATA[ +<?php + setlocale (LC_TIME, "C"); print(strftime("%A en Finlandais est ")); - setlocale ("LC_TIME", "fi"); + setlocale (LC_TIME, "fi"); print(strftime("%A, en Français ")); - setlocale ("LC_TIME", "fr"); + setlocale (LC_TIME, "fr"); print(strftime("%A est en Allemand ")); - setlocale ("LC_TIME", "de"); + setlocale (LC_TIME, "de"); print(strftime("%A.\n")); -?> +?> +]]> </programlisting> </example> Cet exemple ne fonctionnera que si vous avez les configurations respectives Index: phpdoc-fr/reference/datetime/functions/strtotime.xml diff -u phpdoc-fr/reference/datetime/functions/strtotime.xml:1.1 phpdoc-fr/reference/datetime/functions/strtotime.xml:1.2 --- phpdoc-fr/reference/datetime/functions/strtotime.xml:1.1 Sun Apr 14 20:23:56 2002 +++ phpdoc-fr/reference/datetime/functions/strtotime.xml Tue Dec 3 16:25:55 2002 @@ -22,14 +22,16 @@ <example> <title>Exemple avec <function>strtotime</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php // l'exemple n'est pas traduit, car cela ne fonctionne qu'en anglais echo strtotime("now") . "\n"; echo strtotime("10 September 2000") . "\n"; echo strtotime("+1 day") . "\n"; echo strtotime("+1 week") . "\n"; echo strtotime("+1 week 2 days 4 hours 2 seconds")."\n"; -?> +?> +]]> </programlisting> </example> </para>
Index: phpdoc-fr/reference/datetime/reference.xml diff -u phpdoc-fr/reference/datetime/reference.xml:1.2 phpdoc-fr/reference/datetime/reference.xml:1.3 --- phpdoc-fr/reference/datetime/reference.xml:1.2 Mon Apr 15 20:53:05 2002 +++ phpdoc-fr/reference/datetime/reference.xml Tue Dec 3 16:25:55 2002 @@ -1,8 +1,55 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <reference id="ref.datetime"> <title>Dates et heures</title> <titleabbrev>Date/heure</titleabbrev> + + <partintro> + <section id="datetime.intro"> + &reftitle.intro; + <para> + Ces fonctions vous permettent de manipuler la date et l'heure sur + le serveur qui exécute PHP. Vous pouvez utiliser ces fonctions pour + formater la date et l'heure de nombreuses façons. + </para> + <note> + <simpara> + N'oubliez pas que ces fonctions dépendent de la configuration + locale de votre serveur. Faites notamment attention aux + changements d'heure d'hiver et d'été, ainsi qu'aux années + bissextiles. + </simpara> + </note> + + </section> + + <section id="datetime.required"> + &reftitle.required; + &no.requirement; + </section> + + <section id="datetime.installation"> + &reftitle.install; + &no.install; + </section> + + <section id="datetime.runtime"> + &reftitle.runtime; + &no.config; + </section> + + <section id="datetime.resources"> + &reftitle.resources; + &no.resource; + </section> + + <section id="datetime.constants"> + &reftitle.constants; + &no.constants; + </section> + + </partintro> + &reference.datetime.functions; Index: phpdoc-fr/reference/datetime/functions/date.xml diff -u phpdoc-fr/reference/datetime/functions/date.xml:1.1 phpdoc-fr/reference/datetime/functions/date.xml:1.2 --- phpdoc-fr/reference/datetime/functions/date.xml:1.1 Sun Apr 14 20:23:55 2002 +++ phpdoc-fr/reference/datetime/functions/date.xml Tue Dec 3 16:25:55 2002 @@ -206,10 +206,12 @@ <example> <title>Exemple avec <function>date</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php echo (date("l dS of F Y h:i:s A")); echo ("Le 14 Juillet 2002 tombe un " . date("l", mktime(0,0,0,7,14,2002))); -?> +?> +]]> </programlisting> </example> </para> @@ -220,11 +222,13 @@ <example> <title>Protection des caractères avec <function>date</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php echo date("l \\t\h\e jS"); // affiche 'Saturday the 8th' // \t représente une tabulation -?> +?> +]]> </programlisting> </example> </para> @@ -237,11 +241,13 @@ Exemples avec <function>date</function> et <function>mktime</function> </title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $demain = mktime(0,0,0,date("m") ,date("d") + 1,date("Y") ); $le_mois_dernier = mktime(0,0,0,date("m")-1,date("d") ,date("Y") ); $l_an_prochain = mktime(0,0,0,date("m"), date("d") ,date("Y") + 1); -?> +?> +]]> </programlisting> </example> </para> @@ -266,7 +272,8 @@ <example> <title>Formatage avec <function>date</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php /* Aujourd'hui, le 12 Mars 2001, 10:16:18 pm */ $aujourdhui = date("F j, Y, g:i a"); // March 12, 2001, 10:16 pm $aujourdhui = date("m.d.y"); // 03.12.01 @@ -280,7 +287,8 @@ // notation française $aujourdhui = date("d/m/y"); // 12/03/01 $aujourdhui = date("d/m/Y"); // 12/03/2001 -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/datetime/functions/getdate.xml diff -u phpdoc-fr/reference/datetime/functions/getdate.xml:1.1 phpdoc-fr/reference/datetime/functions/getdate.xml:1.2 --- phpdoc-fr/reference/datetime/functions/getdate.xml:1.1 Sun Apr 14 20:23:55 2002 +++ phpdoc-fr/reference/datetime/functions/getdate.xml Tue Dec 3 16:25:55 2002 @@ -72,13 +72,15 @@ <example> <title>Exemple avec <function>getdate</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $aujourdhui = getdate(); $mois = $aujourdhui['month']; $mjour = $aujourdhui['mday']; $annee = $aujourdhui['year']; echo "$mjour/$mois/$annee"; -?> +?> +]]> </programlisting> </example> </refsect1> Index: phpdoc-fr/reference/datetime/functions/gmdate.xml diff -u phpdoc-fr/reference/datetime/functions/gmdate.xml:1.1 phpdoc-fr/reference/datetime/functions/gmdate.xml:1.2 --- phpdoc-fr/reference/datetime/functions/gmdate.xml:1.1 Sun Apr 14 20:23:55 2002 +++ phpdoc-fr/reference/datetime/functions/gmdate.xml Tue Dec 3 16:25:55 2002 @@ -21,10 +21,12 @@ <example> <title>Exemple avec <function>gmdate</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php echo date("M d Y H:i:s", mktime(0,0,0,1,1,1998)); echo gmdate("M d Y H:i:s", mktime(0,0,0,1,1,1998)); -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/datetime/functions/gmmktime.xml diff -u phpdoc-fr/reference/datetime/functions/gmmktime.xml:1.1 phpdoc-fr/reference/datetime/functions/gmmktime.xml:1.2 --- phpdoc-fr/reference/datetime/functions/gmmktime.xml:1.1 Sun Apr 14 20:23:55 2002 +++ phpdoc-fr/reference/datetime/functions/gmmktime.xml Tue Dec 3 16:25:55 2002 @@ -19,7 +19,8 @@ <methodparam choice="opt"><type>int</type><parameter>is_dst</parameter></methodparam> </methodsynopsis> <para> - Identique à <function>mktime</function> hormis le fait que + <methodname>gmmktime</methodname> est identique à + <function>mktime</function> hormis le fait que les paramètres passés sont GMT. </para> </refsect1> Index: phpdoc-fr/reference/datetime/functions/gmstrftime.xml diff -u phpdoc-fr/reference/datetime/functions/gmstrftime.xml:1.1 phpdoc-fr/reference/datetime/functions/gmstrftime.xml:1.2 --- phpdoc-fr/reference/datetime/functions/gmstrftime.xml:1.1 Sun Apr 14 20:23:55 2002 +++ phpdoc-fr/reference/datetime/functions/gmstrftime.xml Tue Dec 3 16:25:55 2002 @@ -25,11 +25,13 @@ <example> <title>Exemple avec <function>gmstrftime</function></title> <programlisting role="php"> -<?php - setlocale('LC_TIME', 'en_US'); +<![CDATA[ +<?php + setlocale(LC_TIME, 'en_US'); echo strftime("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n"; echo gmstrftime("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n"; -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/datetime/functions/microtime.xml diff -u phpdoc-fr/reference/datetime/functions/microtime.xml:1.1 phpdoc-fr/reference/datetime/functions/microtime.xml:1.2 --- phpdoc-fr/reference/datetime/functions/microtime.xml:1.1 Sun Apr 14 20:23:55 2002 +++ phpdoc-fr/reference/datetime/functions/microtime.xml Tue Dec 3 16:25:55 2002 @@ -27,19 +27,21 @@ <example> <title>Exemple avec <function>microtime</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php function getmicrotime(){ list($usec, $sec) = explode(" ",microtime()); return ((float)$usec + (float)$sec); } $time_start = getmicrotime(); - for ($i=0; $i < 1000; $i++){ + for ($i=0; $i > 1000; $i++){ //ne rien faire, pendant un millier de fois... } $time_end = getmicrotime(); $time = $time_end - $time_start; echo "Rien fait durant $time secondes"; -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/datetime/functions/mktime.xml diff -u phpdoc-fr/reference/datetime/functions/mktime.xml:1.2 phpdoc-fr/reference/datetime/functions/mktime.xml:1.3 --- phpdoc-fr/reference/datetime/functions/mktime.xml:1.2 Wed Sep 4 11:17:17 2002 +++ phpdoc-fr/reference/datetime/functions/mktime.xml Tue Dec 3 16:25:55 2002 @@ -57,12 +57,14 @@ <example> <title>Exemple <function>mktime</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php echo date("M-d-Y", mktime (0,0,0,12,32,1997)); echo date("M-d-Y", mktime (0,0,0,13,1,1997)); echo date("M-d-Y", mktime (0,0,0,1,1,1998)); echo date("M-d-Y", mktime (0,0,0,1,1,98)); -?> +?> +]]> </programlisting> </example> <parameter>year</parameter> peut prendre deux ou quatre chiffres, @@ -80,12 +82,14 @@ <example> <title>Dernier jour du mois</title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $lastday = mktime (0,0,0,3,0,2000); echo strftime ("Le dernier jour de Février 2000 est: %d", $lastday); $lastday = mktime (0,0,0,4,-31,2000); echo strftime ("Le dernier jour de Février 2000 est: %d", $lastday); -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/datetime/functions/strftime.xml diff -u phpdoc-fr/reference/datetime/functions/strftime.xml:1.1 phpdoc-fr/reference/datetime/functions/strftime.xml:1.2 --- phpdoc-fr/reference/datetime/functions/strftime.xml:1.1 Sun Apr 14 20:23:56 2002 +++ phpdoc-fr/reference/datetime/functions/strftime.xml Tue Dec 3 16:25:55 2002 @@ -221,16 +221,18 @@ <example> <title>Exemple <function>strftime</function></title> <programlisting role="php"> -<?php - setlocale ("LC_TIME", "C"); +<![CDATA[ +<?php + setlocale (LC_TIME, "C"); print(strftime("%A en Finlandais est ")); - setlocale ("LC_TIME", "fi"); + setlocale (LC_TIME, "fi"); print(strftime("%A, en Français ")); - setlocale ("LC_TIME", "fr"); + setlocale (LC_TIME, "fr"); print(strftime("%A est en Allemand ")); - setlocale ("LC_TIME", "de"); + setlocale (LC_TIME, "de"); print(strftime("%A.\n")); -?> +?> +]]> </programlisting> </example> Cet exemple ne fonctionnera que si vous avez les configurations respectives Index: phpdoc-fr/reference/datetime/functions/strtotime.xml diff -u phpdoc-fr/reference/datetime/functions/strtotime.xml:1.1 phpdoc-fr/reference/datetime/functions/strtotime.xml:1.2 --- phpdoc-fr/reference/datetime/functions/strtotime.xml:1.1 Sun Apr 14 20:23:56 2002 +++ phpdoc-fr/reference/datetime/functions/strtotime.xml Tue Dec 3 16:25:55 2002 @@ -22,14 +22,16 @@ <example> <title>Exemple avec <function>strtotime</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php // l'exemple n'est pas traduit, car cela ne fonctionne qu'en anglais echo strtotime("now") . "\n"; echo strtotime("10 September 2000") . "\n"; echo strtotime("+1 day") . "\n"; echo strtotime("+1 week") . "\n"; echo strtotime("+1 week 2 days 4 hours 2 seconds")."\n"; -?> +?> +]]> </programlisting> </example> </para>