note 80361 added to ref.datetime

From: Date: Fri, 11 Jan 2008 20:20:33 +0000
Subject: note 80361 added to ref.datetime
Groups: php.notes 
Request: Send a blank email to php-notes+get-135034@lists.php.net to get a copy of this message
Hi baroto, You are right, I see what you mean. I do not know how to explain what I was expecting but I figure the results do make sense. I am sorry for any confusion that I may have caused. Actually, I can give it a try. What I expected is that all of the ..._total variables would return the total amounts so (months = 12 * years + number of single months) and the variables like years, months and days would return the amounts of full years, full months and full days (within this month not taking into account any days between last months date and this date). But looking at the code that expectation does not make sense and indeed the code and the results are fine. Thanks and once more stoicnluv thanks for your code! Dave ---- Server IP: 213.249.64.162 Probable Submitter: 77.249.204.67 ---- Manual Page -- http://www.php.net/manual/en/ref.datetime.php Edit -- https://master.php.net/note/edit/80361 Del: integrated -- https://master.php.net/note/delete/80361/integrated Del: useless -- https://master.php.net/note/delete/80361/useless Del: bad code -- https://master.php.net/note/delete/80361/bad+code Del: spam -- https://master.php.net/note/delete/80361/spam Del: non-english -- https://master.php.net/note/delete/80361/non-english Del: in docs -- https://master.php.net/note/delete/80361/in+docs Del: other reasons-- https://master.php.net/note/delete/80361 Reject -- https://master.php.net/note/reject/80361 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#135034) next »