|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-04-05 05:59 UTC] ab@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 14:00:01 2025 UTC |
<? $birthdate = mktime(0, 0, 0, 1, 1, 2001); // should give 82 days old - correct $CurDate = mktime(0,0,0,3,24,2001); printf("<BR>".date("z", $CurDate - $birthdate ) ." days old"); // should give 83 days old - correct $CurDate = mktime(0,0,0,3,25,2001); printf("<BR>".date("z", $CurDate - $birthdate ) ." days old"); // should give 84 days old - instead gives 83 $CurDate = mktime(0,0,0,3,26,2001); printf("<BR>".date("z", $CurDate - $birthdate ) ." days old"); // should give 85 days old - instead gives 84 $CurDate = mktime(0,0,0,3,27,2001); printf("<BR>".date("z", $CurDate - $birthdate ) ." days old"); ?>