Re: Simple Time Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
* 503.351.4730  | blog.planetargon.com
* PHP/PostgreSQL Hosting & Development
****************************************/

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux