<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.splfileinfo.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'splfileinfo.getctime.php',
    1 => 'SplFileInfo::getCTime',
    2 => 'Lit la date de modification du fichier',
  ),
  'up' => 
  array (
    0 => 'class.splfileinfo.php',
    1 => 'SplFileInfo',
  ),
  'prev' => 
  array (
    0 => 'splfileinfo.getbasename.php',
    1 => 'SplFileInfo::getBasename',
  ),
  'next' => 
  array (
    0 => 'splfileinfo.getextension.php',
    1 => 'SplFileInfo::getExtension',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/spl/splfileinfo/getctime.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="splfileinfo.getctime" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SplFileInfo::getCTime</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.1.2, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">SplFileInfo::getCTime</span> &mdash; <span class="dc-title">Lit la date de modification du fichier</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-splfileinfo.getctime-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>SplFileInfo::getCTime</strong></span>(): <span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Retourne la date de modification du fichier. La date est au format timestamp Unix.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-splfileinfo.getctime-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">Cette fonction ne contient aucun paramètre.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-splfileinfo.getctime-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   La date de dernier changement, sous forme de timestamp Unix en cas de succès ou <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> si une erreur survient.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-splfileinfo.getctime-errors">
  <h3 class="title">Erreurs / Exceptions</h3>
  <p class="para">
   Émet une exception <span class="classname"><a href="class.runtimeexception.php" class="classname">RuntimeException</a></span> en cas d&#039;erreur.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-splfileinfo.getctime-examples">
  <h3 class="title">Exemples</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Exemple #1 Exemple avec <span class="methodname"><strong>SplFileInfo::getCTime()</strong></span></strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$info </span><span style="color: #007700">= new </span><span style="color: #0000BB">SplFileInfo</span><span style="color: #007700">(</span><span style="color: #DD0000">'example.jpg'</span><span style="color: #007700">);<br />echo </span><span style="color: #DD0000">'Dernière modification : ' </span><span style="color: #007700">. </span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">'g:i a'</span><span style="color: #007700">, </span><span style="color: #0000BB">$info</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getCTime</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>Résultat de l&#039;exemple ci-dessus est similaire à :</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Dernière modification : 1:49 pm</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-splfileinfo.getctime-seealso">
  <h3 class="title">Voir aussi</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.filectime.php" class="function" rel="rdfs-seeAlso">filectime()</a> - Renvoie la date de derni&egrave;re modification de l'inode d'un fichier</span></li>
    <li><span class="methodname"><a href="splfileinfo.getatime.php" class="methodname" rel="rdfs-seeAlso">SplFileInfo::getATime()</a> - Lit la date de dernier acc&egrave;s au fichier</span></li>
    <li><span class="methodname"><a href="splfileinfo.getmtime.php" class="methodname" rel="rdfs-seeAlso">SplFileInfo::getMTime()</a> - Lit la date de derni&egrave;re modification</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>