View Full Version : date > O

01-11-2004, 04:07 AM
checking the date() function (http://www.php.net/manual/en/function.date.php), i have found the O (Difference to Greenwich time (GMT) in hours) thing, but it dosn't explain how to use it.

any help?

01-11-2004, 04:09 AM
mmm... what i meant.

can i use O to change the time zone by using date?

01-11-2004, 04:37 AM
If you use the following on a server here in Virginia, USA (GMT -5):

echo date("O");

the output (to the screen) is this:


does that help?

01-11-2004, 02:30 PM
i find that

gmdate('d/m/y g:ia',time()+($offset*3600));

works for me, where offset it the number of hours from GMT.

01-11-2004, 08:28 PM
oh thanks a lot ReadMe text file! (lol)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum