Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> With the exception of the commits made in 1971, the year was actually 1791, I follow the simple path of ignoring the least significant digit. So 1996 means 196?as I chop off the 19, the year 1000 is implied and then tack on the next two significant digits of the year which is 96 and leaves off the specific year.

What? I have no idea what you mean by this.



It means:

  fakeyear = Math.floor((realyear - 1000) / 10) + 1900
or equivalently

  approxrealyear = (fakeyear - 1900) * 10 + 1000
except that 1791 is represented as 1971 as a special case because it's a nice anagram (it should have been 1979).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: