Manuel PHP

SplFileInfo::getCTime

(PHP 5 >= 5.1.2)

SplFileInfo::getCTimeGets the inode change time

Description

public int SplFileInfo::getCTime ( void )

Returns the inode change time for the file. The time returned is a Unix timestamp.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

The last change time, in a Unix timestamp.

Erreurs / Exceptions

Throws RunTimeException on error.

Exemples

Exemple #1 SplFileInfo::getCTime() example

  1. <?php
  2. $info = new SplFileInfo(__FILE__);  
  3. echo 'Last changed at ' . date('g:i a', $info->getCTime());  
  4. ?> 

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

Last changed at 1:49 pm

Voir aussi


Remonter Remonter
L'éditeur javascript - CSS - Gentoo - Tutoriaux PHP - Tutoriels PHP - Bretagne - php - Moto - Kit graphique