Re: strftime silliness

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Apr 10th, 2012 at 10:40pm, Tim Streater <tim@xxxxxxxxxxxxxxxx> wrote: 

> I want to format a date/time using a 12 hour representation of the time part.
> I can do this with, say, "%d %b %Y %l:%M %p", where the first time format
> specifier is the lower-case L. But, this gives me a leading space in the case
> that the hour is less than 12. I don't want this space. Anyone know of an
> simple way to avoid it? There appears to be no specifier to do this. Of
> course, I can call strftime twice, once for the date portion and once for the
> time portion, trimming the latter, but that seems clumsy.

OK belay that, sorry: I'm using the wrong function (shouldn't code this late at night).

--
Cheers  --  Tim

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux