note 106795 added to function.time

From: Date: Tue, 06 Dec 2011 22:51:21 +0000
Subject: note 106795 added to function.time
Groups: php.notes 
Request: Send a blank email to php-notes+get-184964@lists.php.net to get a copy of this message
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..." ---- Server IP: 69.147.83.197 Probable Submitter: 190.173.175.203 ---- Manual Page -- http://www.php.net/manual/en/function.time.php Edit -- https://master.php.net/note/edit/106795 Del: integrated -- https://master.php.net/note/delete/106795/integrated Del: useless -- https://master.php.net/note/delete/106795/useless Del: bad code -- https://master.php.net/note/delete/106795/bad+code Del: spam -- https://master.php.net/note/delete/106795/spam Del: non-english -- https://master.php.net/note/delete/106795/non-english Del: in docs -- https://master.php.net/note/delete/106795/in+docs Del: other reasons-- https://master.php.net/note/delete/106795 Reject -- https://master.php.net/note/reject/106795 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#184964) next »