Re: About date & time...

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

 




----- Original Message ----- From: "tedd" <tedd@xxxxxxxxxxxx>
To: <php-general@xxxxxxxxxxxxx>; "Gustav Wiberg" <gustav@xxxxxxxxxxxxxx>
Sent: Tuesday, February 28, 2006 11:34 PM
Subject: Re:  About date & time...


Gustav:

I'm a swede, and I we use hours 0 - 24.

Well... I don't know what I am, but non sum qualis eram.

In any event, you want military time -- simple enough -- just change the h to H, like so:

  echo("Time: " . date('H\:\ i\:\ s') . "<br/>" );

You can find more code examples at:

http://www.weberdev.com/AdvancedSearch.php?searchtype=title&search=date&Submit1.x=0&Submit1.y=0

Also, you need to review the php manual regarding date() -- it's a super function that has lot's of formatting symbols.

tedd

--
--------------------------------------------------------------------------------
http://sperling.com

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

Yes, thanx! I've totally missed the part about 12/24-h setting... :-)

/G

--
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