Reply to post: Re: Why

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

J.G.Harston Silver badge

Re: Why

Two bytes is enough to fit 65536 short ints, no need to squeeze two extra characters in, just change the internal interpertation of those two bytes. Instead of year=1900+(byte1 AND 15)*10+(byte2 AND 15) change it to year=byte1+byte2*256

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