Re: Simple Time Question
| From: | Robby Russell | Date: | Thu, 21 Oct 2004 15:35:55 +0000 |
| Subject: | Re: Simple Time Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-200004@lists.php.net to get a copy of this message | ||
On Thu, 2004-10-21 at 08:48 -0600, Ben Miller wrote:
> Probably a stupid question, but hopefully has a simple answer. Is there a
> way to get Grenwich Mean time? time() and date() functions that I can see
> only seem to get date/time from the server, which knowing where that is,
> could easily figure out GM time, but.... would rather go the other way.
>
> Thanks.
>
> Ben
>
You can set an environment variable for your project like so:
putenv("TZ=US/Pacific");
just find the proper GMT time zone format..
-Robby
--
/***************************************
* Robby Russell | Owner.Developer.Geek
* PLANET ARGON | www.planetargon.com
* Portland, OR | robby@planetargon.com
* 503.351.4730 | blog.planetargon.com
* PHP/PostgreSQL Hosting & Development
****************************************/
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc