|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-02-22 21:26 UTC] rasmus@php.net
-Status: Open
+Status: Not a bug
[2015-02-22 21:26 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 16:00:02 2025 UTC |
Description: ------------ $total_seconds = strtotime("2015-04-00 00:00:00") - strtotime("2015-03-00 00:00:00"); This code shows that $total_seconds = 2674800 (This is False) True answer is 2678400 ($total_seconds + 3600) And the Same problem is in another month $total_seconds2 = strtotime("2015-11-00 00:00:00") - strtotime("2015-10-00 00:00:00"); This code shows $total_seconds2 = 2682000 (This is False) True answer is 2678400 ($total_seconds - 3600) This problem is in between March-April && Sep-Oct in Many years. Like 2011,2012,2013,2014 etc. Test script: --------------- <?php $total_seconds = strtotime("2015-04-00 00:00:00") - strtotime("2015-03-00 00:00:00"); echo $total_seconds; echo "<br>"; $total_seconds2 = strtotime("2015-11-00 00:00:00") - strtotime("2015-10-00 00:00:00"); echo $total_seconds2; ?>