note 85746 added to function.mktime
| From: | domi at lab-9 dot com | Date: | Tue, 16 Sep 2008 07:27:25 +0000 |
| Subject: | note 85746 added to function.mktime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-144437@lists.php.net to get a copy of this message | ||
[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.
----
Server IP: 192.35.244.50
Probable Submitter: 81.223.54.114
----
Manual Page -- http://www.php.net/manual/en/function.mktime.php
Edit -- https://master.php.net/note/edit/85746
Del: integrated -- https://master.php.net/note/delete/85746/integrated
Del: useless -- https://master.php.net/note/delete/85746/useless
Del: bad code -- https://master.php.net/note/delete/85746/bad+code
Del: spam -- https://master.php.net/note/delete/85746/spam
Del: non-english -- https://master.php.net/note/delete/85746/non-english
Del: in docs -- https://master.php.net/note/delete/85746/in+docs
Del: other reasons-- https://master.php.net/note/delete/85746
Reject -- https://master.php.net/note/reject/85746
Search -- https://master.php.net/manage/user-notes.php