- L00
- |
- Exalted Mythic Member
- gamertag: [none]
- user homepage:
I'd guess that somewhere a bit closer to the metal than C# is, the dates involved are actually Unix time stamps. That's a single integer that is (almost) defined by how many seconds have passed since midnight on January 1, 1970. In Unix time each day is 86,400 seconds. That's not always actually the case because of leap seconds that scientists use just to mess with us, but that's what Unix time assumes.
So when a function is used that adds one year to a date, that probably eventually translates the date into Unix time, then adds 31,536,000 seconds onto that Unix time stamp, and wherever that ends up, I'll guess that's when the ban expires.