src/MFileInfo.php
public function getLastModified(): \DateTime
    {
        if ($this->caching == false) {
            return \DateTime::createFromFormat("F d Y H:i:s.", date("F d Y H:i:s.", filemtime($this->getAbsoluteFilePath())));
        }

        if ($this->lastModified == null) {
            $this->lastModified = \DateTime::createFromFormat("F d Y H:i:s.", date("F d Y H:i:s.", filemtime($this->getAbsoluteFilePath())));
        }

        return $this->lastModified;
    }
public function getLastModified(): \DateTime
    {
        if ($this->caching == false) {
            return \DateTime::createFromFormat("F d Y H:i:s.", date("F d Y H:i:s.", filemtime($this->getAbsoluteFilePath())));
        }

        if ($this->lastModified == null) {
            $this->lastModified = \DateTime::createFromFormat("F d Y H:i:s.", date("F d Y H:i:s.", filemtime($this->getAbsoluteFilePath())));
        }

        return $this->lastModified;
    }
public function getLastModified ( ) : \ DateTime { if ( $ this -> caching == false ) { return \ DateTime :: createFromFormat ( "F d Y H:i:s." , date ( "F d Y H:i:s." , filemtime ( $ this -> getAbsoluteFilePath ( ) ) ) ) ; } if ( $ this -> lastModified == null ) { $ this -> lastModified = \ DateTime :: createFromFormat ( "F d Y H:i:s." , date ( "F d Y H:i:s." , filemtime ( $ this -> getAbsoluteFilePath ( ) ) ) ) ; } return $ this -> lastModified ; }
Returns the date and time when the file was last modified.

@return \DateTime
Returns the date and time when the file was last modified .