|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-10 15:35 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 12:00:01 2025 UTC |
Description: ------------ Functions date_sunset() and date_sunrise() return incorrect timestamps. Reproduce code: --------------- $sunrise = date_sunrise(time(),SUNFUNCS_RET_TIMESTAMP); $sunset = date_sunset(time(),SUNFUNCS_RET_TIMESTAMP); $day_length = $sunset - $sunrise; echo($day_length); //This line shows number of minutes, not seconds. echo date("Y m d G:i:s", $sunrise); //This line shows incorrect time.