32bit vs 64bit - 32bit can't handle 2100 in strtotime?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I would like to note that I am aware of that 32 bit systems will not
work after 2038. But does that mean that they can not do simple date
conversion?

<?php
    $now = date('Y-m-d H:i:s', time());
    $future = "2100-01-01 01:01:01";
    $now_stt = strtotime($now);
    $future_stt = strtotime($future);
    var_dump($now);
    var_dump($now_stt);
    var_dump($future);
    var_dump($future_stt);
?>

32-bit system

string(19) "2011-06-27 09:17:10" int(1309159030) string(19)
"2100-01-01 01:01:01" bool(false)


64-bit system

string(19) "2011-06-27 09:18:28" int(1309159108) string(19)
"2100-01-01 01:01:01" int(4102444861)




-- 
Best regards,
Michal

http://eventhorizon.pl/
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux