Re: Formatting time :/
| From: | Richard Lynch | Date: | Wed, 03 Jan 2007 01:09:37 +0000 |
| Subject: | Re: Formatting time :/ | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-246398@lists.php.net to get a copy of this message | ||
If it is stored in a database, you may want to convert within your query:
MySQL: date_format
Postgresql: to_char
If it's just in a text file, PHP's date() function should do it:
http://php.net/date
I dunno if there's a nifty constant for the format you want, but you
could always mess with mktime and date to get what you want.
http://php.net/mktime
On Tue, January 2, 2007 6:39 am, Steven Macintyre wrote:
> Hi all,
>
> I am unable to find out how to do this ... or what the format is
> "called"
> bar zulu format
>
> I have standard 00:00:00 time stored ... and wish to display it as
> 00h00 ...
> has anyone done this with php ... can you point me to right page etc
> ...
>
> What is that format called?
>
>
>
> Kind Regards,
>
>
> Steven Macintyre
> http://steven.macintyre.name
> --
>
> http://www.friends4friends.co.za
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?