note 82191 added to function.date

From: Date: Mon, 31 Mar 2008 13:18:51 +0000
Subject: note 82191 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-137785@lists.php.net to get a copy of this message
I would like to see a "short-hand" way to display am/pm in PHP. instead of g:ia, which would give you something like: 8:29pm i would like to see something that can produce this 8:29p (notice the pm has been shortened) i much prefer dates like that, although some might see it trivial. does anyone know an easy way to do this.... without adding a lot of extra work and more functions to a script? ---- Server IP: 209.41.74.194 Probable Submitter: 67.170.160.167 ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- https://master.php.net/note/edit/82191 Del: integrated -- https://master.php.net/note/delete/82191/integrated Del: useless -- https://master.php.net/note/delete/82191/useless Del: bad code -- https://master.php.net/note/delete/82191/bad+code Del: spam -- https://master.php.net/note/delete/82191/spam Del: non-english -- https://master.php.net/note/delete/82191/non-english Del: in docs -- https://master.php.net/note/delete/82191/in+docs Del: other reasons-- https://master.php.net/note/delete/82191 Reject -- https://master.php.net/note/reject/82191 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#137785) next »