Reply to post: Re: My scripts are not Y2.1K compliant

Remember the 1980s? Oversized shoulder pads, Metal Mickey and... sticky keyboards?

Bill Gray

Re: My scripts are not Y2.1K compliant

I revised some code a few months back to handle years beyond the range of +/-231 years. It should now be good for about 1016 years, safely after all red dwarfs have cooled, though not long enough to work after proton decay and black hole evaporation dismantles the universe.

(I'd like to claim that this was to set a record in planning ahead, but it's not. The code in question is used for astronomy, and the universe is more than 231 years old and will be around for much more than another 231 years. The "usual" date libraries that either don't work before the years 1582 (Gregorian switchover), 1 (no zero/negative years), or -4712 (start of the Julian Day system), and/or fail after 2099 or 2999 or 9999, are not suitable for the purpose.)

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