date_sunset(PHP 5) date_sunset — Returns time of sunset for a given day and location Описание
mixed date_sunset
( int $timestamp
[, int $format
[, float $latitude
[, float $longitude
[, float $zenith
[, float $gmt_offset
]]]]] )
date_sunset() returns the sunset time for a given day (specified as a timestamp ) and location. Список параметров
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() Список изменений
Возвращаемые значенияReturns the sunset time in a specified format on success, or FALSE on failure. Примеры
Пример #1 date_sunset() example
<?phpРезультатом выполнения данного примера будет что-то подобное:
|
|
|
| © 2009 Тест скорости интернета | Boont.Ru |