date_sun_info
brefphp/bref
Supported Versions: PHP 5 >= 5.1.2, PHP 7, PHP 8
Returns an array with information about sunset/sunrise and twilight begin/end
<?php date_sun_info
(
int $timestamp
,
float $latitude
,
float $longitude
): array