jack: (Default)
From: [personal profile] jack
I vaguely remembered this but hadn't realised it was still true.

What I hadn't realised is that Excel can't represent dates before Jan 1900 at all. It represents dates as number of days since 1900, and apparently it still does. So it's not much different saying it can't represent dates before Mar 1900.

That's why changing the leap year in 1900 would screw up later dates. I'm not sure it's *impossible* to change that. Eg the sheet could have metadata saying which date system it uses, and it could be old-style 1900 (with fake leap year), old-style 1904, or new-style 1900 (with correctly no leap year, and knowing about negative numbers).

Date: 2026-03-16 03:24 pm (UTC)
juan_gandhi: (Default)
From: [personal profile] juan_gandhi
It's not Excel, it's the cultural level of many American C programmers.
Edited Date: 2026-03-16 03:25 pm (UTC)
channelpenguin: (Default)
From: [personal profile] channelpenguin
didnt it also at one time not do later than 2035? Or maybe still? I cant recall...
jack: (Default)
From: [personal profile] jack
Now I looked up what google sheets does and I have no idea.

It seems like in Excel you can literally type in a number and change the cell to a date and see what date it thinks it is. I'm not sure I can believe this, but it seems like "1" is "1 Jan 1900", "0" is "0 Jan 1900", and -1 doesn't display.

Google sheets seems to represent dates in a very similar way except that for some unholy reason, it seems like "2" is "1 Jan 1900", 1 is "31 Dec 1899", and 0 is "30 Dec 1899". And it does use negative numbers to represent older dates. It seems to get leap years correct. I assume it uses gregorian dates indefinitely into the past, ignoring any calendar changes etc. But it seems that 2-693,500.00" is "Apr/4/0001". "-693,600.00" is "Dec/25/0000" (which doesn't exist in regular calendars). And "-694,000.00" is "Nov/21/00-1"!

March 2026

S M T W T F S
1 2 3 4 56 7
8 9 10 11 12 13 14
15 161718192021
22232425262728
293031    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Mar. 16th, 2026 07:02 pm
Powered by Dreamwidth Studios