> Hi Rick! Long time no see....
>
[quoted text clipped - 28 lines]
> >
> > - rick cameron
"rick cameron" <rick.cameron@decisionscrystal.com> wrote...
> #1 - It's too bad that this is one of the places where the .NET Framework
> designers decided to limit themselves to what is supported by the O/S,
> rather than providing an extended implementation that fill out the model to
> its logical conclusion. A scenario where this would be really useful is when
> software is running on a server and must format a time according to the
> conventions appropriate for a remote client - including time zone.
Well, I understand what you are saying here, and I was not on on the team
that did this but I think it probably was not based so much on being "as
limited as the OS" for no reason, so much as that is what the implementation
was doing. Note that they do extend it some, and it ends up causing
confusion when the OS and the Framework give two different answers....
> #2 - The DateTime class already supports dates that go back before the
> earliest date that can be represented in any of the Win32 and Ole formats.
> It goes back to well before the introduction of the Gregorian calendar
> (which happened around 1750). But it stops, rather arbitrarily, at 1 Jan 1
> CE. If you're going back that far, why not support dates BCE up to the limit
> of the implementation?
Well, again I am not on that team so I cannot really explain why. I doubt
the reasons are arbitrary, though.... FWIW.
> This limitation makes it impossible to work with dates before year 3761 in
> the Hebrew calendar. (Actually, the .NET implementation of the Hebrew
> calendar is even more limited - it only works with dates between years 5343
> and 6000).
Ok, now this is a more reasonable scenario and seems like a much more
glaring limitation. I will ask after this one....
> The implementation of DateTime and of date formatting code obviously extends
> what's available in Win32 or Ole - so why impose these arbitrary limits?
As I said I don't think they are arbitrary limits, but when I have not even
seen the code I cannot guess as to the reasoning and/or logic. If I would
have to guess I would hazard a speculation that perhaps the code was a port
of the oleaut code and the limitation is based on the way that the algorithm
was moved over. But I do not know for sure....

Signature
MichKa [MS]
NLS Collation/Locale/Keyboard Development
Globalization Infrastructure and Font Technologies
This posting is provided "AS IS" with
no warranties, and confers no rights.