On Sun, 12 Jan 2003, Matthew Simon Cavalletto wrote:
> 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.
from/to_epoch, maybe.
from/to_julian (or rata_die, I think), definitely, since without that it's
not interoperable with anything else.
strftime, unlikely, since it's an interface largely defined by C. What
does %m return for Discordian calendars? Same for strptime.
I think the shareable parts will be small enough that it isn't worth
having an extra layer of abstraction just for this.
-dave
/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/