note 29882 deleted from function.gmmktime by sniper

From: Date: Tue, 04 Nov 2003 13:12:23 +0000
Subject: note 29882 deleted from function.gmmktime by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-59885@lists.php.net to get a copy of this message
Note Submitter: patrick ---- 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

« previous php.notes (#59885) next »