downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SplFileInfo::getExtension> <SplFileInfo::getBasename
[edit] Last updated: Fri, 25 May 2012

view this page in

SplFileInfo::getCTime

(PHP 5 >= 5.1.2)

SplFileInfo::getCTimeLit la date de modification du fichier

Description

public int SplFileInfo::getCTime ( void )

Retourne la date de modification du fichier. La date est au format timestamp Unix.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

La date de dernier changement, sous forme de timestamp Unix.

Erreurs / Exceptions

Émet une exception RunTimeException en cas d'erreur.

Exemples

Exemple #1 Exemple avec SplFileInfo::getCTime()

<?php
$info 
= new SplFileInfo(__FILE__);
echo 
'Dernière modification : ' date('g:i a'$info->getCTime());
?>

L'exemple ci-dessus va afficher quelque chose de similaire à :

Dernière modification : 1:49 pm

Voir aussi

  • filectime() - Renvoie la date de dernier accès à un inode



add a note add a note User Contributed Notes SplFileInfo::getCTime
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites