|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-06-14 17:21 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 05:00:01 2025 UTC |
Description: ------------ In PHP5-RC2 and RC3 when I try to add time to a time stamp with strtotime I receive improper results. Reproduce code: --------------- <? for ($i = 0; $i < 4; $i++) { $mytime = strtotime ($i); echo "<br> $mytime - " . strtotime("+1 minutes", $mytime); } ?> Expected result: ---------------- 1086566400 - 1086566460 1086570000 - 1086570060 1086573600 - 1086573660 1086577200 - 1086577260 Actual result: -------------- 1086566400 - 1086566460 1086570000 - 1086566460 1086573600 - 1086566460 1086577200 - 1086566460