- Original Message -
From: "Marcus Gnaß" <[EMAIL PROTECTED]>
To: "Gustav Wiberg" <[EMAIL PROTECTED]>
Sent: Wednesday, March 01, 2006 5:24 PM
Subject: Re: [PHP] About date & time...
Gustav Wiberg schrieb:
function currenttime() {
$t
- Original Message -
From: "tedd" <[EMAIL PROTECTED]>
To: ; "Gustav Wiberg" <[EMAIL PROTECTED]>
Sent: Tuesday, February 28, 2006 11:34 PM
Subject: Re: [PHP] About date & time...
Gustav:
I'm a swede, and I we use hours 0 - 24.
Well... I
- Original Message -
From: "Grant Young" <[EMAIL PROTECTED]>
To:
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, February 28, 2006 11:25 PM
Subject: Re: [PHP] About date & time...
Hi Gustav.
I'm a swede, and I we use hours 0 - 24.
8 pm = 20 for us.
9 pm =
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') . "" );
You can find more code examples at:
http://www.
Hi Gustav.
I'm a swede, and I we use hours 0 - 24.
8 pm = 20 for us.
9 pm = 21 for us
10 pm = 22...
and so on...
But with date()-function there is 10 pm that shows (and I want 22 to
show instead)
I'm using PHP 4.0.3...
Do I have to use getdate() then? (getdate()-function showed 22...)
- Original Message -
From: "tedd" <[EMAIL PROTECTED]>
To: ; "Gustav Wiberg" <[EMAIL PROTECTED]>
Sent: Tuesday, February 28, 2006 4:17 PM
Subject: Re: [PHP] About date & time...
>Thanx for your input about date & time...
Here's some f
- Original Message -
From: "tedd" <[EMAIL PROTECTED]>
To: ; "Gustav Wiberg" <[EMAIL PROTECTED]>
Sent: Tuesday, February 28, 2006 4:17 PM
Subject: Re: [PHP] About date & time...
>Thanx for your input about date & time...
Here's some f
Thanx for your input about date & time...
Here's some functions that worked for me after some searching...
function currenttime() {
-snip- lot's of code.
Hi Gustav:
Not meaning to embarrass, but your code could be shortened
considerably by using date(), like so:
Your lengthy -- function
I don't understand! Why don't u use date function and just format it as
u want?
Andy
Gustav Wiberg wrote:
Hi
Thanx for your input about date & time...
Here's some functions that worked for me after some searching...
function currenttime() {
$today = getdate();
$ithours = $today["hours"];
Hi
Thanx for your input about date & time...
Here's some functions that worked for me after some searching...
function currenttime() {
$today = getdate();
$ithours = $today["hours"];
if (intval($ithours)<10) {
$ithours = "0" . $ithours;
}
$itminutes = $today["minutes"];
if (intval($ithours
10 matches
Mail list logo