Reply to post: Re: Remember Y2K?

Reliable system was so reliable, no one noticed its licence had expired... until it was too late

John Brown (no body) Silver badge

Re: Remember Y2K?

"To be fair, the two bytes that you saved by only using two digit years was frequently important in the early days of microprocessors and memory sizes of 4K (including OS)."

Why would a 2 digit year need 2 bytes? You can store -32768 to +32767 in two bytes. That should cover for most date eventualities. Day and month and year will fit nicely in a pair or bytes. At least that's how dates were stored on the video rental shop application I wrote to run on a 48KB TRS-80 back in the day. This had no chance of being used beyond 2000 so I used 4 bits for month, 5 bits for day, 4 bits for year and the remaining bits for status flags rented/not rented, overdue. (I thought a 16 year lifespan for this app was being a bit generous)

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

Biting the hand that feeds IT © 1998–2019