|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-12-22 10:38 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
-Package: Math related
+Package: Date/time related
[2020-12-22 10:38 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 12:00:01 2025 UTC |
Description: ------------ <?php $start = strtotime('2020-03-08'); $end = strtotime('2020-03-09'); echo (($end - $start) / 24 / 60 / 60); // https://sandbox.onlinephpfunctions.com/code/fff39352ad15de4414a53383499d02056f53bb22 Test script: --------------- <?php $start = strtotime('2020-03-08'); $end = strtotime('2020-03-09'); echo (($end - $start) / 24 / 60 / 60); Expected result: ---------------- 1 Actual result: -------------- 0.95833333333333