|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-01-08 16:09 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 14:00:01 2025 UTC |
Description: ------------ $time =time(); $time = $time-$time%86400; echo $time; echo date("Y-m-d H:i:s",$time); 1168249686 1168214400 2007-01-08 08:00:00 Reproduce code: --------------- $time =time(); $time = $time-$time%86400; echo $time; echo date("Y-m-d H:i:s",$time); Expected result: ---------------- 1168249686 1168214400 2007-01-08 00:00:00 Actual result: -------------- 1168249686 1168214400 2007-01-08 08:00:00