note 106795 deleted from function.time by danbrown

From: Date: Sun, 11 Dec 2011 19:16:07 +0000
Subject: note 106795 deleted from function.time by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-185043@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- In response to these two notes: 1. php/hotblocks/nl 25-Feb-2011 10:40 2. Yi 23-Feb-2011 04:29 The function time() already returns time in UTC. There is no need to convert it to GMT. This link from 2002 explains it with detail: http://www.mail-archive.com/php-general@lists.php.net/msg64176.html "...timestamp is *always in GMT*, it returns the time since 1-Jan-1970 00:00:00, full stop, period, end of story. In other words, timestamps operate in a single timezone, and it's up to anything else that works with a timestamp to do the timezone (and daylight-savings) corrections..."

« previous php.notes (#185043) next »