Bug #10145 Updated: strtime("") result?

From: Date: Sun, 29 Apr 2001 15:49:33 +0000
Subject: Bug #10145 Updated: strtime("") result?
Groups: php.dev 
Request: Send a blank email to php-dev+get-52933@lists.php.net to get a copy of this message
ID: 10145 Updated by: derick Reported By: colin@easydns.com Old-Status: Open Status: Closed Bug Type: Date/time related PHP Version: 4.0 Latest CVS (03/04/2001) Assigned To: Comments: I added an error of level E_NOTICE for this. Derick Previous Comments: --------------------------------------------------------------------------- [2001-04-03 15:57:26] colin@easydns.com strtotime("") returns the timestamp for midnight on the current date. I suppose if you think about it a bit, it makes sense (since the modification you are making to the current date is empty), but I would suggest that it should return either a warning or nothing. A lot of people (judging from the manual notes) use strtotime() to parse an existing date string, not to do a "+30 days" modification to it. For them, the strtotime("") result is not intuitive, I think. Perhaps the confusion could be fixed by having one function to parse date/time strings and one to do the "+X days" modification? --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10145&edit=2

« previous php.dev (#52933) next »