SplFileInfo
PHP Manual

SplFileInfo::getCTime

(PHP 5 >= 5.1.2)

SplFileInfo::getCTimeGets the inode change time

Descripción

public int SplFileInfo::getCTime ( void )

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

Parámetros

Esta función no tiene parámetros.

Valores devueltos

The last change time, in a Unix timestamp.

Errores/Excepciones

Throws RunTimeException on error.

Ejemplos

Example #1 SplFileInfo::getCTime() example

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

El resultado del ejemplo sería algo similar a:

Last changed at 1:49 pm

Ver también


SplFileInfo
PHP Manual