Sorting it all Out Michael Kaplan's random stuff of dubious value Be sure to read the disclaimer here first!
So yesterday in The only way to be impressed by Microsoft is to ignore calendars, I pointed out some real limitations in the calendaring support on Windows.
And there are some serious flaws there.
Now as a part of that, I talked about the wide amount of variation between the different types of calendars.
I talked about the years with 354 days in them.
And the years with 355 days in them.
And also the years with 384 days in them.
And of course, the years with 385 days in them.
But in all of that discussion, I never pointed out the number of days in the Microsoft implementation of the "Thai Buddhist" calendar.
And no one called me on it, either. Lucky me....
Well, I'll tell you.
Apparently, while Windows was wise enough to call this calendar CAL_THAI while it was thinking about the Thai Solar calendar (used since the end of the 1800s for most civil matters), the .Net Framework has been calling this the ThaiBuddhistCalendar class since it began its life in the early days of this century. Despite the fact that it has pretty much no connection whatsoever to the Buddhist Calendar that makes up the Thai Lunar (aka Thai Buddhist) calendar used throughout various parts of Southast Asia.
I guess no one really noticed that one before....
Though perhaps it would make a nice KB article now!
And perhaps some fixes in .Net in the future?
I suppose it's just a name. But sort of an embarrassing one. How'd we miss that one?
I'll bet they were wishing they had some constants they could deprecate and replace with the right ones, huh? Win32 has its advantages! :-)
Don't worry: you can still make it work by redefining how many hours there are in a day! ;-)
Changing every year? Ouch!
Sure! This way Microsoft will be ahead of the pack when we colonize Mars! Programmers have been far too lazy in assuming that their software will only run on Earth. Also, everyone assumes that time only runs forwards. At this rate, Raymond's time machine will have to run on some other operating system that works with non-linear time! :-P
After The only way to be impressed by Microsoft is to ignore calendars and The "Thai Buddhist" calendar
It was not too long ago (by some scales of time and duration, at least!) that the following question