date_sunset() returns the sunset time for a given
day (specified as a timestamp
) and location.
timestamp
The timestamp
of the day from which the sunset
time is taken.
format
latitude
Defaults to North, pass in a negative value for South. See also: date.default_latitude
longitude
Defaults to East, pass in a negative value for West. See also: date.default_longitude
zenith
Default: date.sunrise_zenith
gmtoffset
Specified in hours.
Every call to a date/time function will generate a E_NOTICE
if the time zone is not valid, and/or a E_STRICT message
if using the system settings or the TZ
environment
variable. See also date_default_timezone_set()
Returns the sunset time in a specified format
on
success, or FALSE on failure.
Пред. | Начало | След. |
date_sunrise | Уровень выше | date_time_set |