SplFileInfo
PHP Manual

SplFileInfo::getCTime

(PHP 5 >= 5.1.2)

SplFileInfo::getCTimeGets the inode change time

Opis

public int SplFileInfo::getCTime ( void )

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

Parametry

Ta funkcja nie posiada parametrów.

Zwracane wartości

The last change time, in a Unix timestamp.

Błędy/Wyjątki

Throws RunTimeException on error.

Przykłady

Przykład #1 SplFileInfo::getCTime() example

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

Powyższy przykład wyświetli coś podobnego do:

Last changed at 1:49 pm

Zobacz też:


SplFileInfo
PHP Manual