note 29882 added to function.gmmktime
| From: | patrick at rack1 dot php dot net | Date: | Thu, 27 Feb 2003 13:44:39 +0000 |
| Subject: | note 29882 added to function.gmmktime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44613@lists.php.net to get a copy of this message | ||
WINDOWS CAVEAT:
gmmktime() looks to be the perfect solution for all timestamp/DST/timezone/calendar problems because
it returns a 'straight' timeline [the one at GMT]. The timeline will in fact have no
'gaps' or 'overlaps' as generated by DST changes which is the good part of the
deal.
BUT: expect gmmktime to return bogus on all windows platforms except those located in the GMT zone
itself. All other systems will have the timeline offset by the own timezone. To test confomity, run:
gmmktime(0,0,0,1,1,1970); which MUST return 0
anything else is bogus [the message "Warning: Windows does not support negative values for this
function" included]!!
Workarounds:
- use Linux
- set your system to GMT
last tested on 4.3.0
--
http://www.php.net/manual/en/function.gmmktime.php
http://master.php.net/manage/user-notes.php?action=edit+29882
http://master.php.net/manage/user-notes.php?action=delete+29882
http://master.php.net/manage/user-notes.php?action=reject+29882