<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Gets the last modified time</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="splfileinfo.getlinktarget.html">SplFileInfo::getLinkTarget</a></div> <div class="next" style="text-align: right; float: right;"><a href="splfileinfo.getowner.html">SplFileInfo::getOwner</a></div> <div class="up"><a href="class.splfileinfo.html">SplFileInfo</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="splfileinfo.getmtime" class="refentry"> <div class="refnamediv"> <h1 class="refname">SplFileInfo::getMTime</h1> <p class="verinfo">(PHP 5 >= 5.1.2)</p><p class="refpurpose"><span class="refname">SplFileInfo::getMTime</span> — <span class="dc-title">Gets the last modified time</span></p> </div> <div class="refsect1 description" id="refsect1-splfileinfo.getmtime-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">int</span> <span class="methodname"><strong>SplFileInfo::getMTime</strong></span> ( <span class="methodparam">void</span> )</div> <p class="para rdfs-comment"> Returns the time when the contents of the file were changed. The time returned is a Unix timestamp. </p> </div> <div class="refsect1 parameters" id="refsect1-splfileinfo.getmtime-parameters"> <h3 class="title">Parameters</h3> <p class="para">This function has no parameters.</p> </div> <div class="refsect1 returnvalues" id="refsect1-splfileinfo.getmtime-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns the last modified time for the file, in a Unix timestamp. </p> </div> <div class="refsect1 seealso" id="refsect1-splfileinfo.getmtime-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="function"><a href="function.filemtime.html" class="function" rel="rdfs-seeAlso">filemtime()</a> - Gets file modification time</span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="splfileinfo.getlinktarget.html">SplFileInfo::getLinkTarget</a></div> <div class="next" style="text-align: right; float: right;"><a href="splfileinfo.getowner.html">SplFileInfo::getOwner</a></div> <div class="up"><a href="class.splfileinfo.html">SplFileInfo</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>