February 2013
Intermediate to advanced
538 pages
20h 55m
English
date_sunset
mixed date_sunset(inttimestamp[, intformat[, floatlatitude[, floatlongitude[, floatzenith[, floatgmt_offset]]]]])
Returns the time of the sunset for the day in
timestamp; false on failure. The
format parameter determines the format the
time is returned as (with a default of SUNFUNCS_RET_STRING), while the
latitude,
longitude,
zenith, and
gmt_offset parameters provide a specific
location. They default to values given in the PHP configuration
options (php.ini). Parameters
include:
| Returns the value as a string; for example, “19:02” |
| Returns the value as a float; for example, 19.033 |
| Returns the value as a Unix epochal timestamp |
Read now
Unlock full access