Easy Tutorial
❮ Php Imagecolorstotal Func Ftp Raw ❯

PHP date_sun_info() Function

PHP Date/Time Reference Manual

Example

Returns information about sunrise/sunset and twilight start/twilight end for January 1, 2013, at latitude 31.7667, longitude 35.2333:


Definition and Usage

The date_sun_info() function returns an array containing information about sunrise/sunset and twilight start/twilight end for a specified date and location.

Tip: See the date_sunrise() function, which returns the sunrise time for a specified date and location.

Tip: See the date_sunset() function, which returns the sunset time for a specified date and location.

Syntax

Parameter Description
timestamp Required. Specifies the timestamp.
latitude Required. Specifies the latitude.
longitude Required. Specifies the longitude.

Technical Details

Return Value: Returns an array if successful, FALSE if failed.
PHP Version: 5.1.2+
--- ---
❮ Php Imagecolorstotal Func Ftp Raw ❯