note 82604 added to function.gmmktime
| From: | Greg at osu1 dot php dot net | Date: | Thu, 17 Apr 2008 21:19:57 +0000 |
| Subject: | note 82604 added to function.gmmktime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-138431@lists.php.net to get a copy of this message | ||
In addition to GLEN's post on DEC 5th 2007
(Just a note for others)
The results for the three time types Glen listed under "returns" all returned the exact
same timestamp
- 1196812966
Using those three functions will only make the exact same timestamp if the server the code is
executed on IS in GMT timezone.
'mktime()' and 'time()' will both return the timestamp for your server time, and
will both be the same as eachother.
gmmktime will return a GMT timestamp.
So if run on a server that is NOT in the GMT timezone then gmmktime will return a different
timestamp to the other two.
----
Server IP: 87.124.64.96
Probable Submitter: 86.2.24.122
----
Manual Page -- http://www.php.net/manual/en/function.gmmktime.php
Edit -- https://master.php.net/note/edit/82604
Del: integrated -- https://master.php.net/note/delete/82604/integrated
Del: useless -- https://master.php.net/note/delete/82604/useless
Del: bad code -- https://master.php.net/note/delete/82604/bad+code
Del: spam -- https://master.php.net/note/delete/82604/spam
Del: non-english -- https://master.php.net/note/delete/82604/non-english
Del: in docs -- https://master.php.net/note/delete/82604/in+docs
Del: other reasons-- https://master.php.net/note/delete/82604
Reject -- https://master.php.net/note/reject/82604
Search -- https://master.php.net/manage/user-notes.php