On Sunday, January 12, 2003, at 05:55  PM, Dave Rolsky wrote:

On Sun, 12 Jan 2003, David Wheeler wrote:
The advantage is that the interface is exactly the same regardless of calendaring system, and we deal with the issues of allowing DateTime to return different calendar types right now, up front.
[...] I really don't see the point of this. Other calendaring systems will have different APIs, that may or may not resemble the API that's most appropriate for the Gregorian calendar. For example, see Rich Bowen's Date::Discordian on CPAN.
But in fact the Discordian calendar is a lot like the Gregorian calendar -- they have years, months ("seasons"), and days. Likewise the Hebrew calendar, and the Mayan. (The overlapping Tzolkin and Haab cycles in the Mayan calendar are reminiscent of the month and week cycles in the Gregorian calendar.)

If the DateTime framework is sufficiently open and inviting, we have the opportunity to encourage convergence of modules supporting those calendars -- obviously, there'll be portions of the API that differ from calendar to calendar, but we can still share a common core interface of methods like from/to_epoch, from/to_julian, strftime, strptime, etc.

-Simon



Reply via email to