date_sunrise
Opis
mixed date_sunrise ( int timestamp [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]] )
date_sunrise() returns the sunrise time for a given
day (specified as a timestamp
) and location.
Parametry
timestamp
The
timestamp
of the day from which the sunrise 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.
Błędy/Wyjątki
Każde wywołanie do funkcji date/time spowoduje wygenerowanie E_NOTICE
jeśli strefa czasowa jest nieprawidłowa, lub/i wiadomość E_STRICT
jeśli użyto ustawień systemu lub zmiennej środowiskowej TZ
.
Patrz także date_default_timezone_set()
Przykłady
Poprzedni | Spis treści | Następny |
date_sun_info | Początek rozdziału |