Use date_sun_info() to Get Sun Information

Use date_sun_info() to Get Sun Information

The date_sun_info() function returns an array with information about sunset, sunrise, and twilight. This is useful for astronomical calculations.

← Back to Tips List