Reply to post: Re: 2038

Y2K quick-fix crick? 1920s come roaring back after mystery blip at UK's vehicle licensing agency

Paul Crawford Silver badge

Re: 2038

Maybe, but currently most 32-bit Linux time code breaks on negative value

time_t was never intended for date manipulation (though it ended up that way). Some 32-bit time_t libraries I have tested do work for negative time_t, others are broken (probably as a sanity-check as that is not a supported operation). In most cases what matters for code is getting the current time correctly, and interpreting file time stamps, etc.

If you need to work pre 1970 and post 2038 there is no simple 32-bit integer solution possible and then you have to make 64-bit changes, recompile, test, etc..

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

SUBSCRIBE TO OUR WEEKLY TECH NEWSLETTER

Biting the hand that feeds IT © 1998–2020