Syntax:string Imagick::getReleaseDate (void)
Parameters:This function takes no parameters.
Return Value:This function returns a string value containing the release date.
Exceptions:This function throws an ImagickException on error.The following programs illustrate the
Imagick::getReleaseDate() functionin PHP:
Program 1:
// Create a new imagick object
$imagick
=
new
Imagick();
// Get the release date
$releaseDate
=
$imagick
-> getReleaseDate();
echo
$releaseDate
;
?>
Output:2017-05-23
Program 2:
// Create a new imagick object
$imagick
=
new
Imagick();
// Get the release date
$releaseDate
=
$imagick
-> getReleaseDate();
echo
date
(
"F j, Y"
,
strtotime
(
$releaseDate
));
?>
Output:May 23, 2017
Link: https://www.php.net/manual/en/imagick.getreleasedate.php