note 91854 added to function.date

From: Date: Mon, 29 Jun 2009 13:37:39 +0000
Subject: note 91854 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-157664@lists.php.net to get a copy of this message
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; ---- Server IP: 212.124.37.9 Probable Submitter: 91.2.61.86 ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- https://master.php.net/note/edit/91854 Del: integrated -- https://master.php.net/note/delete/91854/integrated Del: useless -- https://master.php.net/note/delete/91854/useless Del: bad code -- https://master.php.net/note/delete/91854/bad+code Del: spam -- https://master.php.net/note/delete/91854/spam Del: non-english -- https://master.php.net/note/delete/91854/non-english Del: in docs -- https://master.php.net/note/delete/91854/in+docs Del: other reasons-- https://master.php.net/note/delete/91854 Reject -- https://master.php.net/note/reject/91854 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#157664) next »