RE: [PHP] Simple Time Question

From: Date: Thu, 21 Oct 2004 17:00:38 +0000
Subject: RE: [PHP] Simple Time Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-200010@lists.php.net to get a copy of this message
On Thu, 2004-10-21 at 12:25, Ford, Mike wrote: > To view the terms under which this email is distributed, please go to ö > ki}Ç4^9 GÇXäy~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. Cheers, 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. | `------------------------------------------------------------'

« previous php.general (#200010) next »