/** * @return System\Date * (non-PHPdoc) * @see Phine/Framework/Database/Interfaces/IDatabaseType#FromDBString($value) */ function FromDBString($value) { if ($value === null) { return null; } return System\Date::FromTimeStamp((int) $value); }
/** * Gets the last modified date of the file or folder * @param string $path * @return Date Returns null if file doesn't exit or info is not accessible */ static function GetLastModified($path) { $ts = @\filemtime($path); if ($ts !== false) { return Date::FromTimeStamp($ts); } return null; }