date_sun_info

  • (PHP 5 >= 5.1.2, PHP 7)
  • Returns an array with information about sunset/sunrise and twilight begin/end