2 ms·
> What exactly motivates one to use two-digit years instead of four-digit ones inside your application For a lot of very old legacy applications, RAM and data
by dragonwriter 7y ago
> What exactly motivates one to use two-digit years instead of four-digit ones inside your application
For a lot of very old legacy applications, RAM and data interchange size. For a lot of the Y2K remediation of those apps, not requiring every component that sees a date in a data structure to change, so instead just the date processing pieces consume new library functions that use a sliding rather than fixed interpretation of two digit years or some similar stopgap that allows two digit format to remain.
For newer code, well, that's how the developer is used to writing dates by hand and they have a library available that seems to do something reasonable thing with two-digit dates, and, look, he simple unit tests they wrote passed, so it must be okay.