date_sun_info
reactphp/event-loop
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