note 82190 added to function.date

From: Date: Mon, 31 Mar 2008 13:18:39 +0000
Subject: note 82190 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-137784@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/82190 Del: integrated -- https://master.php.net/note/delete/82190/integrated Del: useless -- https://master.php.net/note/delete/82190/useless Del: bad code -- https://master.php.net/note/delete/82190/bad+code Del: spam -- https://master.php.net/note/delete/82190/spam Del: non-english -- https://master.php.net/note/delete/82190/non-english Del: in docs -- https://master.php.net/note/delete/82190/in+docs Del: other reasons-- https://master.php.net/note/delete/82190 Reject -- https://master.php.net/note/reject/82190 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#137784) next »