note 25524 deleted from function.date by spic

From: Date: Thu, 26 Sep 2002 19:27:21 +0000
Subject: note 25524 deleted from function.date by spic
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-37300@lists.php.net to get a copy of this message
I was surprised to discover that the date function doesn't support am & pm in Associated Press style, i.e.: a.m. and p.m. (see http://www.usu.edu/communic/faculty/sweeney/ap.htm) - so I wrote a little function that might be useful to some: function APtime($ampm) { if ($ampm == "am") { $ampm = "a.m."; } else { $ampm = "p.m."; }; return $ampm; };

« previous php.notes (#37300) next »