note 91854 deleted from function.date by danbrown

From: Date: Mon, 29 Jun 2009 14:21:12 +0000
Subject: note 91854 deleted from function.date by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-157665@lists.php.net to get a copy of this message
Note Submitter: swagner at ets-online dot de ---- a little upadte for the function dateParseFromFormat: if you want to add AM/PM-functionality to the code you need another case. Just add this one to the function: case 'a': if ($aDatePart[$key] == "PM"){ $aDataRet['hour'] += 12; } break;

« previous php.notes (#157665) next »