note 129804 added to function.strtotime

From: Date: Mon, 14 Oct 2024 18:46:57 +0000
Subject: note 129804 added to function.strtotime
Groups: php.notes 
Request: Send a blank email to php-notes+get-221593@lists.php.net to get a copy of this message
Not sure why, but <?php echo strtotime("+2 hours"), "\n"; echo strtotime("+2 hrs"), "\n"; echo strtotime("+2 hourss"), "\n"; ?> are returning +2 hours, -2 hours, +8 hours. The latter two should be errors instead. ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.84.18 (proxied: 68.199.122.141) ---- Manual Page -- https://php.net/manual/en/function.strtotime.php Edit -- https://main.php.net/note/edit/129804 Del: integrated -- https://main.php.net/note/delete/129804/integrated Del: useless -- https://main.php.net/note/delete/129804/useless Del: bad code -- https://main.php.net/note/delete/129804/bad+code Del: spam -- https://main.php.net/note/delete/129804/spam Del: non-english -- https://main.php.net/note/delete/129804/non-english Del: in docs -- https://main.php.net/note/delete/129804/in+docs Del: other reasons-- https://main.php.net/note/delete/129804 Reject -- https://main.php.net/note/reject/129804 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#221593) next »