|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-29 09:11 UTC] sniper@php.net
[2005-10-08 15:45 UTC] derick@php.net
[2005-10-08 16:31 UTC] derick@php.net
[2005-10-08 16:31 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 13:00:01 2025 UTC |
Description: ------------ strtotime() should be able to parse "midnight" and "noon". Reproduce code: --------------- echo strtotime("midnight"); echo strtotime("noon"); Expected result: ---------------- echo strtotime("midnight"); should print the time stamp for the next midnight (midnight tomorrow). echo strtotime("noon"); should print the time stamp for the next noon (noon today/tomorrow depending on the current time). echo strtotime("12:00 am"); echo strtotime("12 am"); echo strtotime("12:00 pm"); echo strtotime("12 pm"); all do the correct things. Actual result: -------------- echo strtotime("midnight"); returns -1. echo strtotime("noon"); returns -1.