code/filesystem/stream/abstract.php
public function getTime($time = self::TIME_MODIFIED)
    {
        $result = false;
        $info = $this->getInfo();

        if(isset($info[$time])) {
            $result = new \DateTime('@'.$info[$time]);
        }

        return $result;
    }
public function getTime($time = self::TIME_MODIFIED)
    {
        $result = false;
        $info = $this->getInfo();

        if(isset($info[$time])) {
            $result = new \DateTime('@'.$info[$time]);
        }

        return $result;
    }
public function getTime ( $ time = self :: TIME_MODIFIED ) { $ result = false ; $ info = $ this -> getInfo ( ) ; if ( isset ( $ info [ $ time ] ) ) { $ result = new \ DateTime ( '@' . $ info [ $ time ] ) ; } return $ result ; }
Get the streams last modified, last accessed or created time.

@param string $time One of the TIME_* constants
@return \DateTime|false A DateTime object or FALSE if the time could not be found
Get the streams last modified last accessed or created time .