RE: Simple Time Question

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

 



On Thu, 2004-10-21 at 13:00, Robert Cummings wrote:
> On Thu, 2004-10-21 at 12:25, Ford, Mike wrote:
> > To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm
> > 
> > 
> > 
> > On 21 October 2004 15:49, 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. 
> > 
> > time() returns a UNIX timestamp which, by definition, is always in GMT.
> 
> No it isn't. It goes by your machine's clock.

Hmm I could be wrong. Seems the date function adds the timezone modifier
according to the comments on php.net for the time() function.

Apologies,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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