SplFileInfo::getMTime

(PHP 5 >= 5.1.2, PHP 7)

SplFileInfo::getMTimeGets the last modified time

说锟斤拷

public SplFileInfo::getMTime ( void ) : int

Returns the time when the contents of the file were changed. The time returned is a Unix timestamp.

锟斤拷锟斤拷

锟剿猴拷锟斤拷没锟叫诧拷锟斤拷锟斤拷

锟斤拷锟斤拷值

Returns the last modified time for the file, in a Unix timestamp.

锟轿硷拷

  • filemtime() - 取锟斤拷锟侥硷拷锟睫革拷时锟斤拷