note 35595 rejected from function.strtotime by vincent

From: Date: Sun, 07 Sep 2003 16:53:03 +0000
Subject: note 35595 rejected from function.strtotime by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-55582@lists.php.net to get a copy of this message
Note Submitter: sellam@vintage.org ---- This function apparently does not work correctly if you have just a date and month in that order. For example: "September 1998" or "09/1998" returns 1234944022 while "September 1, 1998" returns 904633221 and "September 30, 1998" returns 907138821. I tried analyzing (briefly) the difference between the outputs of different date sets and it was not consistent, so I can't tell what's going on. I did a little experimenting and found that the value "September 1998" returns the same thing as the value "February 18, 2009". Odd? Without further investigation I would say yes. Also, I'm finding (on my installation at least) the function works through the following timestamp: 2038-01-18 19:13:45 After that it returns -1.

« previous php.notes (#55582) next »