|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-01-19 16:08 UTC] TomSoftware at gmx dot de
[2004-01-19 18:47 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 15:00:01 2025 UTC |
Description: ------------ The command time() and the microtime() command return a different value. It seems to be one day different (60s * 60 * 24 = 86400). Perhaps it's a Time zone problem (Germany +1h but not +1Day). Regards Thomas Reproduce code: --------------- <?PHP echo time() ."<br>"; list($usec, $sec) = explode(" ",microtime()); echo $sec ."<br>"; echo (time() - $sec) /60 /60 /24; //-- = 1 Day ?> Expected result: ---------------- time() == microtime() Actual result: -------------- time() == (microtime()+86400)