4 ms·
Why does GitHub say 40 years ago when 1983 is 39 years ago?
by mseepgood 5y ago
Why does GitHub say 40 years ago when 1983 is 39 years ago?
- potamic 5y agoWow! They added a markdown formatted code of conduct 40 years ago!!
- colejohnson66 5y agoThey even reference "Windows Store app package directories and files"[0]. Very futurist thinking! [0]: https://github.com/microsoft/GW-BASIC/blob/edf82c2ebf6bfe099c2054e0ae125c3efe5769c4/.gitignore#L207 https://github.com/microsoft/GW-BASIC/blob/edf82c2ebf6bfe099...
- banana_giraffe 5y agoBecause the relative date function that powers that label rounds to the nearest year (it also treats 360 days as a year): timeAgoFromMs(ms) { const sec = Math.round(ms / 1000); const min = Math.round(sec / 60); const hr = Math.round(min / 60); const day = Math.round(hr / 24); const month = Math.round(day / 30); const year = Math.round(month / 12); From https://github.githubassets.com/assets/javascript/node_modules/@github/time-elements/dist/index.js https://github.githubassets.com/assets/javascript/node_modul...