cvs: phpdoc /fr/functions datetime.xml

From: Date: Tue, 28 Nov 2000 13:41:26 +0000
Subject: cvs: phpdoc /fr/functions datetime.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969333095@lists.php.net to get a copy of this message
dams Tue Nov 28 05:41:26 2000 EDT Modified files: /phpdoc/fr/functions datetime.xml Log: Added strtotime Index: phpdoc/fr/functions/datetime.xml diff -u phpdoc/fr/functions/datetime.xml:1.3 phpdoc/fr/functions/datetime.xml:1.4 --- phpdoc/fr/functions/datetime.xml:1.3 Mon Nov 20 09:33:41 2000 +++ phpdoc/fr/functions/datetime.xml Tue Nov 28 05:41:26 2000 @@ -924,6 +924,42 @@ </para> </refsect1> </refentry> + <refentry id="function.strtotime"> + <refnamediv> + <refname>strtotime</refname> + <refpurpose> + Transforme un texte anglais en timestamp + </refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>strtotime</function></funcdef> + <paramdef>string <parameter>time</parameter></paramdef> + <paramdef>int + <parameter><optional>now</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>strtotime</function> essaye de lire une date au format + anglais dans la cha&icirc;ne <parameter>time</parameter>, + et de la transformer en timestamp UNIX. + <example> + <title>Exemple avec <function>strtotime</function></title> + <programlisting role="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> + </refsect1> + </refentry> </reference> <!-- Keep this comment at the end of the file Local variables:

« previous php.doc (#969333095) next »