SplFileInfo::getMTime

(PHP 5 >= 5.1.2, PHP 7, PHP 8)

SplFileInfo::getMTime最終変更時刻を取得する

説明

public SplFileInfo::getMTime(): int

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

パラメータ

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

返り値

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

参考

  • filemtime() - ファイルの更新時刻を取得する

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top