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

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

 



Once upon a time, Michał Piotrowski <mkkp4x4@xxxxxxxxx> said:
> 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?

Not if that "simple" date conversion uses the system time_t functions
(which most of the common functions do).  If you need to handle dates
outside the range of 1970-2038, you'll need to use alternate functions
that can handle the expected date range (and I don't know if such exist
in PHP; you may have to code them yourself).

Portable code should not assume system date routines can handle dates
outside 1970-2038; you shouldn't depend on 64 bit systems having larger
time_t (I don't think they all do).
-- 
Chris Adams <cmadams@xxxxxxxxxx>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.
-- 
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