PHP » PYTHON |
login |
register |
about
|
date_sunset(PHP 5) date_sunset — Returns time of sunset for a given day and location Description
mixed date_sunset
( int $timestamp
[, int $format= SUNFUNCS_RET_STRING
[, float $latitude= ini_get("date.default_latitude")
[, float $longitude= ini_get("date.default_longitude")
[, float $zenith= ini_get("date.sunset_zenith")
[, float $gmt_offset= 0
]]]]] )
date_sunset() returns the sunset time for a given day (specified as a timestamp ) and location. Parameters
Errors/ExceptionsEvery 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() Changelog
Return ValuesReturns the sunset time in a specified format on success, or FALSE on failure. Examples
Example #1 date_sunset() example
<?php The above example will output something similar to: Mon Dec 20 2004, sunset time : 18:13
|
more
Recently updated
more
Most requested
more
Last requests
|