note 85746 deleted from function.mktime by danbrown

From: Date: Tue, 02 Nov 2010 17:20:20 +0000
Subject: note 85746 deleted from function.mktime by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-173692@lists.php.net to get a copy of this message
Note Submitter: domi at lab-9 dot com ---- [quote thomas_corthals at hotmail dot com] It seems mktime() doesn't return negative timestamps on Linux systems with a version of glibc <= 2.3.3. [/quote] Negative timestamps are not supported in any known Windows environment. Therefore only valuations for year in range of [1970..2038] are allowed. Thus you cannot rely that php knows how to handle negative timestamps. If you have valuations with year out of [1970..2038] you may got to think of a alternative implementation using date() and parse variables for yourself OR (which would be much faster) a self-designed class that safely calculates dates out of range.

« previous php.notes (#173692) next »