On 2025-01-19, Amelia A Lewis <amyz...@talsever.com> wrote:
> On Sun, 19 Jan 2025 15:54:43 -0000 (UTC), Stuart Henderson wrote:
>> On 2025-01-19, Janne Johansson <icepic...@gmail.com> wrote:
>>>> I noticed while looking through the headers of zlib that there is
>>>> a time32_t component of it.  Would this mean that on January 19th
>>>> 2038 our .gz's will break?
>>> 
>>> This sounds super easy to test by just setting the clock forward to a
>>> date past that.
>>> Please share your results.
>> 
>> This would be the date to try:
>> 
>> $ date -r `calc 2^32`
>> Sun Feb  7 06:28:16 GMT 2106
>
> Well, yes, but that's just a little bit more!
>
> Amy!

You might like to look at how various data types are stored in memory
and see what data type is used for time_t on a system using 32-bit time_t,
it is not the same as used for the timestamp in the gzip header.

-- 
Please keep replies on the mailing list.

Reply via email to