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

search for in the

SplFileInfo::getFileInfo> <SplFileInfo::getBasename
Last updated: Fri, 13 Nov 2009

view this page in

SplFileInfo::getCTime

(PHP 5 >= 5.1.2)

SplFileInfo::getCTimeinode 変更時刻を取得する

説明

public int SplFileInfo::getCTime ( void )

ファイルの inode が変更された時刻を返します。返される時刻は Unix タイムスタンプ形式です。

パラメータ

この関数にはパラメータはありません。

返り値

最終変更時刻を Unix タイムスタンプで返します。

エラー / 例外

エラー時に RunTimeException をスローします。

例1 SplFileInfo::getCTime() の例

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

上の例の出力は、 たとえば以下のようになります。

Last changed at 1:49 pm

参考

  • filectime() - ファイルの inode 変更時刻を取得する



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

SplFileInfo::getFileInfo> <SplFileInfo::getBasename
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites