note 87090 deleted from function.strptime by danbrown

From: Date: Wed, 19 Nov 2008 14:40:49 +0000
Subject: note 87090 deleted from function.strptime by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-146715@lists.php.net to get a copy of this message
Note Submitter: Savageman ---- Thanks for having rewrite strptime() on Windows. I just want to notice there is a problem (function returns false) when the year is out of the range 1970-2038, because you are using mktime(). A very simple solution is to replace the "year" parameter by : $aResult['tm_year']+1900-28*floor((($aResult['tm_year']-100)/28)) The desired result will be generated, as of days of the week are the same every 28 years.

« previous php.notes (#146715) next »