Harold Yarmouth wrote:
> Joshua Cranmer wrote:
>> Nice to know that you're so culturally sensitive in ignoring
>
> "Cultural sensitivity" is neither here nor there. "Cultural sensitivity"
> is not a major concern of programming language or API design. It may be
> a concern of application user-interface design, but that's a whole
> different kettle of fish.
I was referring to "cultural sensitivity" to be polite in suggesting
"You have an arrogant Anglo-Amerocentric viewpoint." There are countries
who use non-Gregorian calendars for civil purposes, by requiring that
the API dictate everything in Gregorian, you've essentially said "screw
you" to said countries.
> Which means using the plain-Jane Gregorian calendar under the hood in
> Date and other business objects related to dates, with DateFormat or
> other similar classes providing translations into locale-specific
> representations.
When viewed pedantically, the typical fiscal calendar is not even the
same as the civil Gregorian calendar in place in most countries: March
1, 2009 is in the same fiscal year as November 2, 2008. So if I'm doing
calculations on a fiscal calendar, it should tell me that the two are in
the same year, right?
Note that time is near-impossible to determine good APIs for since the
human concept of time is not even consistent, let alone the technical
muck designed to make it saner for human use.
--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth
|