SplFileInfo
PHP 手册

SplFileInfo::getCTime

(PHP 5 >= 5.1.2)

SplFileInfo::getCTimeGets the inode change time

说明

public int SplFileInfo::getCTime ( void )

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

参数

This function has no parameters.

返回值

The last change time, in a Unix timestamp.

错误/异常

Throws RunTimeException on error.

范例

Example #1 SplFileInfo::getCTime() example

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

上例的输出类似于:

Last changed at 1:49 pm

参见


SplFileInfo
PHP 手册