Re: [PHP] About date & time...

2006-03-01 Thread Gustav Wiberg
- 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

Re: [PHP] About date & time...

2006-02-28 Thread Gustav Wiberg
- 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

Re: [PHP] About date & time...

2006-02-28 Thread Gustav Wiberg
- 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 =

Re: [PHP] About date & time...

2006-02-28 Thread tedd
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.

Re: [PHP] About date & time...

2006-02-28 Thread Grant Young
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...)

Re: [PHP] About date & time...

2006-02-28 Thread Gustav Wiberg
- 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

Re: [PHP] About date & time...

2006-02-28 Thread Gustav Wiberg
- 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

Re: [PHP] About date & time...

2006-02-28 Thread tedd
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

Re: [PHP] About date & time...

2006-02-28 Thread Andrei
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"];

[PHP] About date & time...

2006-02-28 Thread Gustav Wiberg
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