cvs: phpdoc-fr /reference/datetime/functions strptime.xml

From: Date: Mon, 25 Oct 2004 16:26:54 +0000
Subject: cvs: phpdoc-fr /reference/datetime/functions strptime.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-3535@lists.php.net to get a copy of this message
dams Mon Oct 25 12:26:54 2004 EDT Added files: /phpdoc-fr/reference/datetime/functions strptime.xml Log: initial translation http://cvs.php.net/co.php/phpdoc-fr/reference/datetime/functions/strptime.xml?r=1.1&p=1 Index: phpdoc-fr/reference/datetime/functions/strptime.xml +++ phpdoc-fr/reference/datetime/functions/strptime.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: dams Status: ready --> <refentry id="function.strptime"> <refnamediv> <refname>strptime</refname> <refpurpose> Analyse une date générée par <function>strftime</function> </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>array</type><methodname>strptime</methodname> <methodparam><type>string</type><parameter>timestamp</parameter></methodparam> <methodparam><type>string</type><parameter>format</parameter></methodparam> </methodsynopsis> <para> <function>strptime</function> retourne un tableau après avoir analysé <parameter>timestamp</parameter>, ou &false; en cas d'erreur. </para> <para> Les noms des mois et jours de la semaine dépendent de la configuration locale, choisie avec <function>setlocale</function> (LC_TIME). </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>timestamp</parameter> (<type>string</type>)</term> <listitem> <para> Un timestamp (e.g. retourné par <function>strftime</function>) </para> </listitem> </varlistentry> <varlistentry> <term><parameter>format</parameter> (<type>string</type>)</term> <listitem> <para> Le format utilisé par <parameter>timestamp</parameter> (e.g. le même que celui qui a été utilisé par <function>strftime</function>). </para> <para> Pour plus d'informations sur les spécificateurs de formats, voyez la fonction <function>strftime</function>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne un tableau, ou &false; en cas d'erreur. </para> <para> <table> <title>Les paramètres suivants sont retournés dans le tableau</title> <tgroup cols="2"> <thead> <row> <entry>Paramètre</entry> <entry>Description</entry> </row> </thead> <tbody> <row> <entry>tm_sec</entry> <entry>Secondes après la minute (0-61)</entry> </row> <row> <entry>tm_min</entry> <entry>Minutes après l'heure (0-59)</entry> </row> <row> <entry>tm_hour</entry> <entry>Heure depuis minuit (0-23)</entry> </row> <row> <entry>tm_mday</entry> <entry>Jour du mois (1-31)</entry> </row> <row> <entry>tm_mon</entry> <entry>Mois depuis janvier (0-11)</entry> </row> <row> <entry>tm_year</entry> <entry>Années depuis 1900</entry> </row> <row> <entry>tm_wday</entry> <entry>Jours depuis dimanche (0-6)</entry> </row> <row> <entry>tm_yday</entry> <entry>Jours depuis le 1er janvier (0-365)</entry> </row> <row> <entry>unparsed</entry> <entry>La partie de <parameter>timestamp</parameter> qui n'a pas été reconnue par l'analyseur avec le <parameter>format</parameter> spécifié.</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Exemple avec <function>strptime</function></title> <programlisting role="php"> <![CDATA[ <?php $format = '%d/%m/%Y %H:%M:%S'; $strf = strftime($format); echo "$strf\n"; print_r(strptime($strf, $format)); ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ 03/10/2004 15:54:19 Array ( [tm_sec] => 19 [tm_min] => 54 [tm_hour] => 15 [tm_mday] => 3 [tm_mon] => 9 [tm_year] => 104 [tm_wday] => 0 [tm_yday] => 276 [unparsed] => ) ]]> </screen> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>strftime</function></member> </simplelist> </para> &note.no-windows; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->

« previous php.doc.fr (#3535) next »