|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-06-08 14:16 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 15:00:01 2025 UTC |
Description: ------------ It seems date counts the days of a given year wrong. Reproduce code: --------------- <? $mk=mktime(0, 0, 0, 1, 1, date('Y')); $dayofyear = date("z", $mk); echo $dayofyear; ?> Expected result: ---------------- 1 Actual result: -------------- 0