Hi,

BACKGROUND
=================

:- Ive read the date function..

http://nz.php.net/date

:- I'm familiar with the putenv("TZ=Pacific/Auckland"); function (to
change timezones)

The date page (above) - also advises a
date_default_timezone_set('UTC'); function etc...


QUERY
=============

I'm wondering, Is there a way / method of changing a time-zone within
the actual "date" function itself ?

Normally - I only have 1 timezone per page.. - However, I'm designing
a new page which has multiple timezones shown at the same time...


Is it "ok" to do something like



putenv("TZ=Pacific/Auckland");
$today1 = date("Ymd H:i");
echo .... (whatever)


putenv("TZ=Timezone2");
$today1 = date("Ymd H:i");
echo .... (whatever)

putenv("TZ=Timezone3");
$today1 = date("Ymd H:i");
echo .... (whatever)

putenv("TZ=Timezone4");
$today1 = date("Ymd H:i");
echo .... (whatever)


Or is there a better / more-efficient method ?



I do not currently know (yet) - But i can probably google a list of
the (correct) timezone codes

Thanks...

-- 
G
NZ community groups - [EMAIL PROTECTED]
Freecycle Auckland :-
http://groups.yahoo.com/group/AucklandFreecycle/

Reply via email to