date_sun_info
spatie/fork
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